MQL5.community forex forum for traders and developers

  error  (3)
hi there how can i fix this problem? i just write this code and mql5 tell me: '&&' - operand expected EMA1.mq5 55 86 if(High1>Open1>Close1>Low1 && High1-Open1<=10*Point && Close1-Low1<=10*Point && High1>High2 && Close1>Close2) { }
Hi all Does anyone know a fix to get MT5 to work on Mac OS ±Monterey ? Thanks Clinton
In the good old MT4 we have the fibonacci arc and the elliptic tools, but unfortunately no one of them is really usable, because as we change the x or y axis their lines always change as well. My suggestion is a new tool, the Circle. Which has 2 color parameters, 1 for the outline and 1 for the
Information about artificial intelligence on the MT4 or MT5 platform I need information about the topic of artificial intelligence on the platform Is there a department or team to answer questions
Hi Everyone, I'm facing a problem with my MT5. When I click on button to start an optimisation using a hedge demo account it simply doesn't start. My memory goes to 100%, and my HD working until get full, but the optimisation not start after 1 hour. I'm trying do this optimisation in a dual xeon
This post is about a some weirdly related (I think) bugs that happen when forward testing optimized results. Please read through it all. The first bug is that the displayed results from the top section of backtesting passes in forward tab are wrong. (Highest scoring passes in the backtest category
//+------------------------------------------------------------------+ //| Setka.mq5 | //| Copyright Privalov S.V. | //| https://login.mql5.com/ru/users/Prival |
Hi Team, I am new to VPS hosting. Recently took an EA on rent(1 month) and wanted to test it on my account which is provided with MT4 platform. Now I want to try the same EA but for MT5 platform. I am trying with "Change account" option in "Hosting" tab. It gives me below error : " Failed to move
can this be possible if i have my other app that runs the below code i know this may sound wild but am just asking if there is any info about this u never know, Intent intent = new Intent(Intent.ACTION_VIEW); intent.setPackage( "com.metaquotes.metatrader5" ); // Assuming this is the package name of
Hi, I cloned my SSD containing Windows OS to a newly bought USB drive. MT5 was already installed onto this SSD drive. The clone was sucessful and bootable but after starting MT5 from the newly cloned drive the purchased indicators/libraries failed to load. What could be the issue behind this
Hello guys, I am newbie to trading and wanted to know if there was a way to use to TradingView but for the synthetic indicies provided by the Deriv Broker, their pairs include Volatiity 75, volatility 100, Boom 1000 and the others
We have updated the MQL5.com Chat to further enhance the user conversation experience. Check out the new service interface and updated functions, such as the revised friending logic. Create groups on financial topics, join existing channels, discuss current issues with fellow traders in group chats
Test accounts are real and exist, Test accounts are not real and are not a way fo finessing people
Hello, I have a personal job that i have to provide code of my indicator. I have done (provided code and support custormer to compile code also). Now job state is waiting customer confirm hangout and payment but my customer just silence even through i chat with him. So how to arbitration job when i
The updated version of the MetaTrader 5 platform will be released on Thursday, September 14, 2023. The new version features the balance operation commands allowing traders to deposit and withdraw funds from their trading account directly in the terminal. Integration of payment systems into
  What is your favorite strategy ?  (73   1 2 3 4 5 ... 7 8)
MartingaleGridHedgingScalpingNewsTrendOther ( write in comments )
Since there are restrictions on talking about brokers, I can't share much, but I am looking for something that breaks even. Basically I earn by volumes of trades placed. For every standard lot, I earn $6 for FX pairs / $7 for metals. Indices and others are lower so it'll not be worth my time. I have
Im looking for more alternatives to no SL strategys. Here a few examples of no SL strategys / trade management: grid, martingale, zone recovery or hedging. Im looking for more ideas or examples, smarter aporoaches wich have less risk. I appreciate any idea, the goal is to comapre them all and See
This thread won't be about a question or problem, but rather about the anouncement of the presentation and documentation of an exciting trading concept. I plan to do a series of postings here in order to keep you guys updated. Anybody who has an opinion on the topic, please don't hesitate to comment...
Hello 😊 Do you know of methods like the triple screen but with even more timeframes like 4 or 6 timeframes to optimize inputs for algorithmic trading for example? For those who don't know, let me give you the example of Alexandre Elder's triptych. Thanks in advance for your insights 😊
Discover in 15 Minutes: Watch the Video about Trading Signals in MetaTrader 4 and MetaTrader 5 The most frequently asked questions related to the Signals service will be collected and processed in this topic. The list of questions will be updated from time to time. Soon we will try to give answers
Which strategy is best to close profitable positions
Do you think there is any trading system suitable in all circumstance
I'm contemplating a strategy that involves using multiple signals for trade entry, possibly incorporating up to seven different signals across various currency pairs. The rationale behind considering multiple pairs is to enable the use of a Global Take Profit approach. This means that if the
What strategies and techniques do you recommend for increasing the stability and robustness of automated trading robots in financial markets? Can you share your experiences and insights? In automated trading, maintaining stability and robustness is crucial for long-term success. It would be great
  Trading System by Xard777  (3897   1 2 3 4 5 ... 389 390)
Here is a suggestion for a possible trading system... System one is MT4-Xard777.rar and System two is XARD-BOX.rar Enjoy... All the best Xard777
  Brainwashing System / Asctrend System  (256   1 2 3 4 5 ... 25 26)
This is the thread about Brainwashing system. We will start with original version of this system and will improve it later. ========== Just something about the history. There are 3 famous signals system (manual trading systems based on signal indicators): Asctrend, BrainTrend and Brainwashing. First
Hello Scalpers, I am wondering if scalping can be profitably due to slippage using one of the major CFD brokers out there scalping indices such as the SP500 or the NASDAQ on a 5 seconds timeframe? Any experiences? Also, if one is using BuyStop orders do they really have a chance to be executed at
  Programming tutorials  (174   1 2 3 4 5 ... 17 18)
In our technologically advanced world, programming and computer science have become transformative disciplines that drive innovation and shape society. Programming, as an art form, combines creativity, logic, and problem solving to create elegant and efficient solutions. Fusion of science and
I just started this thread as a continuation of the talking made on this topic (we can read it). Or ...to make it shorter: it was some discussion about forecasting/predicting of the next candle or direction of the movement or market condition evaluation. And it was around standard indiocators in
I have been trading price action for over 14 years and in this YouTube course I am sharing my most important tips and provide a step-by-step approach to mastering any price chart. ►Timestamps: 0:00 Start 2:28 Chapter 1: Candlesticks 15:37 Chapter 2: Chart Patterns 32:51 Chapter 3: Trend Analysis
  Forecast and levels for S&P 500  (474   1 2 3 4 5 ... 47 48)
S&P 500 January-March 2017 Forecast: long-term bullish ranging within the narrow s/r levels for direction W1 price is located far above Ichimoku cloud in the bullish area of the chart. The price is on ranging within the following narrow support/resistance levels for the bullish trend to be resumed...
  Welcome to the new section!  (22   1 2 3)
Inspired by comments and reviews received from MQL5.community members, we have added a new forum section called "Trading stocks, futures, options and other exchange instruments". Share your ideas and trading experience with the website visitors. Reach out to MetaTrader 5 developers if you have...
Forum on trading, automated trading systems and testing trading strategies Press review Sergey Golubev, 2016.12.25 06:50 Hang Seng Index Q1 2017 Forecast (based on the article) "Underlying sentiment surrounding Hong Kong stocks has remained negative with underlying concerns surrounding...
We have Symbols like the S&P500 opening between 09:30 and 16:30, Mon-Fri. -> The Bar Rythm stays constant, because the bar rythm restarts every weekday at 9:30. We have Symbols like the EURUSD (usually) trading non-stop from monday morning till Friday night. -> The
Hi, I have recently started learning MQL5 language and all the tutorials are only focused on Forex market. I have been trading Futures contracts(manually) with <Deleted>. So, my question is If i keep learning Mql5 language, will I be able to develop EA for Futures market(with <Deleted>)? Thank you
Hello all, I have a few questions for anyone with knowledge and/or experience trading futures. Any input would be greatly appreciated. From experience scalping in live market conditions, how does slippage and spread compare to trading CFD in markets such as FX? Is there a notable difference, and
  Forecast and levels for Nikkei  (43   1 2 3 4 5)
Forum on trading, automated trading systems and testing trading strategies Press review Sergey Golubev, 2016.12.24 17:18 Nikkei Q1 2017 Fundamental Forecast: Bullish (based on the article) Fundamental Analysis  "The Bank of Japan has been buying stocks for over two years now. And in September, the...
I want to demo Options board on MT5 but cant find ANY one who offers it? Where can i try the MT5 options board? Who is currently demo/ real trading with MT5 options platform? its ridiculous i cant find ANY information on how to actually do it/ who offers it. Its almost as if it doesnt exist/ noone
  Forecast and levels for Dax Index  (73   1 2 3 4 5 ... 7 8)
Dax Index January-March 2017 Forecast: flat within bullish with key resistance at 11,649 W1 price is located above Ichimoku cloud in the bullish area of the chart. The price broke 11,485 level to above on close weekly bar with 11,649 as a nearest bullish target to re-enter. Thus, the weekly price is...
DJIA January-March 2017 Forecast: long-term bullish; resistance level at 19,987 is the key W1 price is located above Ichimoku cloud in the bullish area of the chart: the price is on testing 19,987 resistance lkevel to above for the primary bullish market condition to be continuing. The price is
  Forecast and levels for CAC 40  (29   1 2 3)
CAC 40 January-March 2017 Forecast: bullish with key resistance at 4924.69 W1 price is located above Ichimoku cloud in the bullish area of the chart. The price broke 4860.85 resistance level to above on close weekly bar with 4924.69 as a nearest bullish target to re-enter. Thus, the weekly price is...
Hi, as you see, I can only connect to Binance-Demo server. how can I connect to my real account on Binance in MT5
  Apple  (44   1 2 3 4 5)
AAPL Technical AnalysisL daily bullsh with 120.35 resistance to be testing for the bullish trend to be resumed Daily share price is located far above 200 SMA in the bullish area of the chart: the price is on testing resistance level at 120.35 to above for the bullsh trend to be continuing. If the
Hi I have this code to close position when reach a specific profit(0.50) e loss(-10) buy when i run strategy tester i get profits like 2,3,4 and losses like -23,-12 Can someone help me, double TargetLoss=- 10 ; double TargetProfit= 0.50 ; double profit= AccountInfoDouble ( ACCOUNT_EQUITY )-
Hi, When I make more MT5 EA backtest with enabled ZigZag indicator filter with same settings on my EA panel, sometimes I get different backtest result. If I made a backtest with same EA settings on same data I must get same backtest result no matter how many times I do it. This is a serious problem
I have looked everywhere but I cannot find an answer to this. When I am testing a bot and looking at the optimization results , in the result column the numbers are different colors. What does that mean/indicate
Hello, I developed an EA (account Netting ) which uses pending orders SellLimi t and BuyLimit instead of MT5 native TakeProfit . The reason for this was to avoid the slippage that occurs when using MT5's TP and SP, since they close market positions and not with book orders. EA Places Orders
Hi all, I'm testing an expert on D1 time frame in which I wrote the following condition to open pending orders request_type = ORDER_TIME_DAY I see that in some cases pending orders are not deleted at the end of the day. What could be the reason? Thank you
Im very new to using MQL5 and Expert Advisors. I have spent a while getting the basic code for a Triple Super trend advisor. At the point im at it buys and sells and closes the position. However, it is extremely slow in doing each action resulting in missing the trend. I really cant understand if it
If you have a good strategy and are willing to share it, I can write an advisor
Hello everyone, I am new, I would like your help with a problem: I am practicing writing a Martingale EA, I want orders to be opened by time instead of points/pips. For example, every 15 minutes an order will be opened, with a maximum of 3 orders. Please help me. Thank you. ( The code below is
account_info is work orders_get not work output No open orders found import MetaTrader5 as mt5 import requests from datetime import datetime # start the platform with initialize() if not mt5.initialize(): print( "initialize() failed, error code =" ,mt5.last_error()) quit() # login to Trade
Hello, I am runing an EA downloaded from internet on my demo account. Now I want to remove/change it's comments by any way. Is this possible
extern int AccountRow = 1 ; extern int DelayMinutes = 2 ; // AccountRow - Your favourites account number // DelayMinutes - Delay in minutes, has to be greater than the chart timeframe #include <WinUser32.mqh> #import "user32.dll" int GetParent( int hWnd); int GetDlgItem( int hDlg, int
Whenever I run it through the strategy tester , the trade always closes on the first candle after opening and then the simulation stops out. First time writing one of these, but any help would be much appreciated. Code is as follows #include <Trade/Trade.mqh> CTrade trade; int OnInit () { Print
Hi, I have a mq5 file importing a .Net DLL, that compiles in MetaEditor. When running it in MT5, it shows errors like this: 2022.02.05 17:49:58.337 MT5NetTest (Test2,M1) function 'MT5Net.SampleMT5::Get1DDouble' not found in 'E:\Apps\MT5\MQL5\Libraries\XMT5Net.dll' Is there a Visual Studio solution
Hi, This code is work on my PC : ZZHandle= iCustom ( NULL , zigzag_filter_timeframe, "Examples\\ZigZag" , Depth, Deviation, Backstep); ArraySetAsSeries (ZZValue, true ); but cant work on VHOST. 2023.09.21 01:48:21.506 NightGrid (XAUUSD,M15) cannot load custom indicator 'Examples\ZigZag' [4802] What
  error in MQ5 EA  (3)
I beg you friends. can somebody guide me on how to fix these 2 errors OnTick function declared with wrong type or/and parameters 0 0 '(' - expressions are not allowed on a global scope RSIvsADX.mq5 26 5 unexpected end of program 1 1
  Everything about RSI  (1459   1 2 3 4 5 ... 145 146)
RSI indicator We are continuing discussion about the indicators. We have the following thread: Parabolic SAR indicator Momentum indicator Stochastic Oscillator Divergence Indicator Now we are talking about RSI. "Technical Analysis from A to Z": Overview The Relative Strength Index ("RSI") is a
Dear Fellows I have created a custom Indicator iVSA, which uses CScanVSA.method to get DataBuffer values. I need to lookback indicator buffers e.g. PreliminarySupply buffer to confirm BuyingClimax in CScanVSA. To achieve this I am using following Method to pass in BufferArrays to the Class. void
Hello forum members, I'm seeking help regarding text alignment displayed on a candlestick chart. I've encountered an issue where the labels are overlapping with the right candlestick and not displaying properly (please refer to the attached image). Upon reviewing my code, I'm struggling to identify
Hi all, I am a beginner and I'm trying to port in MQL5 an indicator I know in Pinescript and MQL4, the G-Channel made by god coder Alex Grover. I think I've done all I had to, but the indicators doesn't work as it should... Here is the code
I am new to MQL5 coding, but found a function called DRAW_FILLING that can be used to fill between lines of indicators (e.g. Bollinger, two emas, etc.). However, the outputs do not look nice when you have two buffers overlapping (e.g. when you want to see two types of Bollinger) because the filling
Hi everyone, Can I draw a rectangle on a Daily time frame and see the same drawing on H4 ? Or do I have to draw 2 different rectangles each on a time frame ? somethink like on this photo : Is there a native solution on the Metatrader software, or do I have to use a paid indicator? Best Reguards
Hi everyone, I am looking in vain for the code of this MESA projective indicator to be placed on the price that draws in the future the length of the cycle; Has anybody worked on that or know where to find it? I am looking for this indicator able to: take advantage of the adaptative cycles from J
I am new on MT5. There is more than 2500 species on MT5. I make an indicator (and EA) including an "Alert" . Is it possible to scan all stocks ( more than 2500) using the indicator to find the one I wanted
Hi I created an indicator that, when executed, draws a Fibonacci tool on the chart. With the help of a button, the display of Fibonacci lines is turned on and off. The problem is that I get the following error at the beginning of the program execution. But by changing the time frame, the indicator
We know that OnTick() will not do anything in MT5 indicator scripts, and MqlTick is a structure based on tick retrieval (historic ticks, not live). I haven't worked with MQL4, but I believe it was possible to work with live ticks in mql4 indicators, but not mql5, is that correct
when signal arrow appear on the chart i want to change chart background color , suggest me how to do it..... //+------------------------------------------------------------------+ //| Indicator: stock-arrow.mq5 |
  TTM Squeeze/BB Squeeze  (149   1 2 3 4 5 ... 14 15)
First of all I want to say Hello to all users, and say sorry for my english. Now I try to describe my problem: I found the bbsqueeze indicator on this forum and I tried to use it in my EA. And now I have a problem becasue I don't know which buffer retruns the values less than 0 (the red posts...
hello, I am looking for free tool which give me alert of indicator which i set, like i have a Hammer identifier indicator when Hammer formed i need alert on screen. Note: Sorry for my poor english
Hello, I'm trying to add a SMA with 20 periods  from 1 hour chart to a 5 minutes chart.   Tried to use the function IndicatorAdd but it didn't work... Any advices? #include <Charts\Chart.mqh>   CChart grafic; int average_handle;//--- input parametrsinput ENUM_TIMEFRAMES   InpTimeFrame=PERIOD_H1; //...
  mouse move  (8)
hi I want to knowif there is a way to change the color of the candle that mouse is on it. some thing like mouse hover.
  Experts: Forex Calculators  (27   1 2 3)
Forex Calculators: Margin Calculator, Point Value Calculator, Profit Calculator and Swap Calculator. Author: amrali
RL algorithms: Libraries based on the article "Random decision forest in reinforcement learning" Author: Maxim Dmitrievsky
Gaussian Bands: StDev Bands with gaussian smoothing Author: zzuegg
New article Migrating from MQL4 to MQL5 is published: Many developers have accumulated a lot of indicators and trading strategies written in MQL4. To use them in Metatrader 5, they should be converted to MQL5. It's not so easy to rewrite all programs in MQL5. It would be much easier to convert them...
  Indicators: ADXm  (2)
ADXm: ADXm - version for MetaTrader 5 Author: Mladen Rakic
Reverse No Repair: The Reverse No Repair indicator can show bullish arrows and bearish arrows. Author: Qianru Gao
EMAVFS: Exponential moving average with a variable smoothing factor. Author: Nikolay Kositsin
Ranged Grid Bot EA with pending orders : The EA created sell/buy limit orders according to: - Grid number of orders - Trading range (computed automatically by uwing weekly highs and lows) - Current price Author: Alessio Fabiani
CSV Exporter : Automatically export csv file Author: Sameer
Check out the new article: Monte Carlo Permutation Tests in MetaTrader 5 . In this article we take a look at how we can conduct permutation tests based on shuffled tick data on any expert advisor using only MetaTrader 5. Obviously after exporting the file, make a note of where it is saved and open
New article MQL5: Create Your Own Indicator is published: By describing creation of True Strength Index, the author shows how to write indicators in MQL5. Author: MetaQuotes
New article Better programmer (Part 05): How to become a faster developer has been published: Every developer wants to be able to write code faster, and being able to code faster and effective is not some kind of special ability that only a few people are born with. It's a skill that can be learned
New article The checks a trading robot must pass before publication in the Market has been published: Before any product is published in the Market, it must undergo compulsory preliminary checks in order to ensure a uniform quality standard. This article considers the most frequent errors made by...
Signals and Probability class : With these classes you can create and test your signals runtime. Author: Peter Mueller
Check out the new article: How to create a simple Multi-Currency Expert Advisor using MQL5 (Part 1): Indicator Signals based on ADX in combination with Parabolic SAR . The Multi-Currency Expert Advisor in this article is Expert Advisor or trading robot that can trade (open orders, close orders and
  MT4 End Of Life  (29   1 2 3)
Hi all I have heard reports that MT4 is soon to become 'End of Life' with no active support or updates. Can anyone explain what the future holds for MT4 and the vast array of millions of ex4 Indicators, Scripts and EA's? Any plans to provide a port or emulator for these to help transition over to
Hello,  Is it possible to add in color transparency to an object?  Eg.  I want to take a rectangle and instead of making it while #ffffff i wanted to make it transparent.     I was wondering if anyone can show me some example code to do this?   Thank you 
I need help from moderator to confirm that this EA is function or not. Because i hire some developer. But this EA is not function at all. i told him to make EA just to be ONE file .mt4 and .mt5 .. He as developer click demo to give testing EA. I already test no function. I add EA file into experts
  Dialog  (1)
Does anyone know how to establish a connection between input and the output? For example, user types in the input box "hello" and on the output the hello appears along with the response from the program like this. User: Hello! Program: Hi
Hello everybody, for a couple of days my terminal window is an external, really small window, when I open it. I can't see much on it and want to reset it (bottom of the window - full length from the bottom left to the bottom right corner) somehow. I tried already a lot of things in the settings but
Hello, is there a way to reset variables automatically after disabling AutoTrading (or after enabling it)? Example: variable = 0 and then it's equal to 1 because of the code. I decide to disable AutoTrading and after one hour I decide to enable AutoTrading. I want the variable to be equal to 0
Hey guys right now I have two servers running on my mt4... I also have 2 EA's. One for each server. How do I make sure that the EA's are exclusive to their servers they are on? I recently saw that one of my EA's was trying to trade with the other server but couldn't due to lack of funds. How do I
Hi, thank you in advance for helping me. I'm new to this. what i want to do is when my ma cross in the 15 minutes the ea will go to another condition which is wait for my another ma cross in the 5 minutes chart then the trade will be closed. my code is working if i only have 1 ma cross but if i need
Hello, I am new to alerts but I need an alert that lets me know my Emma’s cross. I am trying the 13, 21, 55 Ema 8 strategy. Strategy: When 55 is on top/bottom enter trade and hold until 55 is on bottom/top Is there a way to make an alert to alert me when the 55 is above or below all 3 of the other
The MetaTrader 4 platform update will be released on Friday, March 24, 2023. This version provides error fixes and platform stability improvements. The update will be available through the Live Update system
Hello everybody, I hope you are doing great. ***Dear admins, please check this message. I really need your attention.*** Recently I received an Indicator and a template. When I attached the indicator on my chart, the Windows Defender alerts for a treat. I double checked and re attached the indicator
Hi everyone, I am playing around with buttons on the chart and I thought it would be good to have a button that moves the stoploss to breakeven. What I want to do: I want to make an indicator that plots a button on my chart. When I push the button it triggers a script that moves my stop to break...
Hello Forum Members, I'm currently facing a perplexing issue and I'm in search of both answers and potential solutions. I have the MetaTrader 4 application running on my Windows machine, which is equipped with a 4-core CPU. This setup includes a custom expert advisor that operates on all charts
Hi guys, is it somehow possible to change the default creation of an OBJ_FIBO with only 38/50/61 levels? I tried to delete one level by using OBJPROP_LEVELS but this value is always zero after creating an OBJ_FIBO. Any ideas? Maybe I can change the original code from Metaquotes in the library...
Hello, I am trying to solve this puzzle: how to test EA on several pairs same time? EA opens orders on each pair standalone, checks profit/loss every second, finds most negative order on certain pair and closes it with profits from other pairs. No platform, MT4 orMT5, covers single EA working on...