Hey trader and programmer. Need your help. I have an EA that using DCA technique, which is open order more than one BUY/SELL at the same time. It works fine during real live trading. However, during backtesting in Strategy Tester of MT5, the EA only open 1 order, and it won't open new order until
//+------------------------------------------------------------------+ //| Trade_Alert.mq5 | //| Copyright 2024, MetaQuotes Ltd. | //| https://www.mql5.com |
Hi here. I've been looking for information on how to implement conditional genetic/complete optimisation. The closest I could get was to use ParameterSetRange, however this does not satisfy my criteria. So let's assume in my EA, I've got a section for 2 indicators: Indicator A: bool enabledA =
I integrated Python perfectly with Metatrader 5. At my Brazilian broker everything works fine, without delay. I tested it at Forex brokerages ICMarkets, Activ and XM and it doesn't work well. All have a delay of 2 hours (120 minutes). I've done several tests and researches and I can't solve it. I
Hello Everyone, I’ve been working on a Martingale-based Expert Advisor (EA) for the past few weeks, and while the results are promising in certain market conditions, I’m facing challenges with risk management and drawdowns during extended losing streaks. I’m hoping to tap into the collective
Can someone help me with MQL5 coding, I have tried thousand ways to get the profit and deal type from the history for the last 3 deals (last, before the last and the before before-the-last) but always failed. Would be grateful for any help with code
Hello, By using MQL5 language for a trading robot; How can I write commands for RSI and MA lines that are inside RSI indicator settings? and also, for MACD and signal lines which are inside MACD indicator setting? Thank you
bool green= false ; bool red= false ; int openprice6= int ( iOpen ( Symbol (), 10080 , 6 )); int closeprice6= int ( iClose ( Symbol (), 10080 , 6 )); int pre7= int ( iClose ( Symbol (), 10080 , 7 ));
Hello guys, new kid in town A quick one: When running 3 demoaccounts and installing an EA on one of them, it runs on all 3 accounts. Is it possible to run EA on just one of them Thanks /greetings from DK
Greets, Hope someone can shed some light on this question. I must either be missing something, or it just is what it is. I am using OnTradeTransaction() to deal with events. All good, but I'm trying to use the classes (such as CDealInfo , etc) to be as MQL5 idiomatic as possible. The following works
Hello all traders, i m newbies here.. i trader for few years already and i still suck on this. Now i m trying to find the file to download the above subject, non of the link of what so ever i got is correct. can any 1 help me on this. i m really suffering alot late for money issues
Hi, I downloaded EURUSD M1 historical data and imported it on a custom Symbol. When I try to test an EA on it, I get several 10044 errors opening positions. 2018.11.07 19:02:51.499 2017.08.01 15:40:00 failed market buy 0.01 EURUSDh tp: 1.18944 [Only position closing is allowed] 2018.11.07 19:02...
Hello, I am using the WebRequest function in my code and encountering the following errors: ' WebRequest' - no one of the overloads can be applied to the function call When I run the code, it gives an error, and I receive the following message: ' WebRequest' - no one of the overloads can be applied
Hi Team, I have a question regarding the "Profit and Loss by Hours" feature in the backtest results. In the Strategy Tester , is it possible to analyze profit and loss based on specified trade open and close hours? The current graph only shows "Profit and Loss by Hours" without clarifying if it
I want to export all the XAUUSD history to use on a pretty old build. I guess the build num is 3310. I know I should open the symbols window, Create Custom Symbol, then copy from xauusd. What about the entire history? in the bar tab, I request M1 history but it is up to 2024.08.16 not from 2008
When the following Expert is initially attached to a chart, The SpinEdit value 25 is displayed. If the timeframe is changed, the value 25 is no longer displayed. However, clicking the up/down arrows will re-display the value. Changing timeframes again will hide the value. Is there a way to keep the
How am I supposed to interpret this? The charge implies I've used almost 75% of my storage on VPS, yet it is a brand new account running for 2 days. And if so what am I supposed to do about it
There seems to be a bug with the OnTimer event. I'm trying to restart the timer inisde the OnTimer event and the first cycle after the restart is not executed. Let me show you an example: void OnInit () { EventSetTimer ( 2 ); } bool timer_set = false ; void OnTimer () { if (!timer_set) {
Hi everyone, I wanted to ask for your help, as I've been trying to download a file from a presigned AWS S3 url using the WebRequest function, but with no success. I had successfully downloaded a file from another URL of a website I own without any problem, but when trying to do the same for the S3
Hello guys My Terminal shows this pair incurred a short swap of $ -636.00 How would you calculate it in code from the Swap info of this pair, as shown ? Thank you
Can you run tests where you can make changes while running, because you know that making an EA without touching the settings while running is difficult, you could say impossible
Hi everyone, I'm new to programming in MQL5, and I'm trying to create a simple trading robot for the Brazilian market (mini index). My strategy is straightforward, but I’ve been running into issues where the robot doesn't open orders even when the conditions are met. I’d appreciate some guidance
I was testing my EA in visual mode and it seems like (please correct me if I am wrong), that if there is a buy stop order, say on a stock CFD, and price opens the next day beyond the buy stop price, that the tester assumes that the trade was opened AT the stop price, however, I would assume that in
Hi all, I have an EA that has been converted from mql4 to mql5. When I compile the code in MetaEditor I am getting an error that states this implicit conversion from 'number' to 'string' londonv1.mq5 192 28 implicit conversion from 'number' to 'string' londonv1.mq5 259 28 I believe that the issue
It is necessary to avoid a duplicate working of my Expert Advisor in paralel Charts. For ex, if it is already running in EURUSD chart, then if a user loads it into GBPUSD, it should not work but exit. It is because, my EA is not related to only one instrument or one chart, it works with several of
Will the following action consume 1 activation? For example, currently I installed an EA into my local PC, and then migrated to MT5's own VPS with 1 month subscription. Now I want to get another MT5 's own vps with 6 month subscription. Will changing the mt5 vps result in consuming 1 activation
Could anyone make me a ATR trailing stop indicator for the metatrader plattform or simply provide me with the script. When I define my ATR traling stop it's calculated from this common formula: ATR Figure = $0.08 Last Close = $6.78 3 x ATR Stop = $6.78 - ($0.08 x 3) = $6.78 - $0.24 = $6.54 The
Hello guys, I have an EA that reads data from a txt file and opens positions based on them I am testing this in strategy tester, the problem is when I change the name of txt file it still reads the previous file name and it isn't changed. and when I use the same file name and change the data in it
Hi everybody, I need to get the current datetime in a string, possibly in a SQL format (e.g. 2019-04-07 15:37:02). I've tried three methods of MQL5 standard library: TimeCurrent, TimeGMT, TimeLocal but during backtest they all return the same date that is not the actual date. I need to get the...
I have some functions in a script file some of which are visible and callable from within the same script. Others though always throw the compile error -undeclared identifier. I'm assuming that i have something wrong with programmatic flow. Any help would be appreciated - the Copy File Function is

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.