Forum

EA Backtest Optimisation question

Hi, I just finished a backtesting with optimization using genetic algo . After optimizations finished I saw below log in journal tab. I am a bit confused why a pass could vary so much. I have not manually added conditions to terminate the tester pass in the code. So its baffling. 1. Could it be that

Profitable EAs developer/testers, what optimal threshold values do you believe an EA should have for different metrics in strategy tester optimizer result ?

Hi all This may be more experience based opinion question but knowledge expert's opinion welcome too. Based on your experience(and knowledge), if you have created or backtested a profitable EA (an EA that you have noticed actually was profitable in live market, not just backtest), what values for

MQL5 Question: unable to initialise a 2 dimensional array using existing array variables

Hi Below is the code (for Script) i am trying to compile but i get error. I am not sure why i cant get this syntax to work. enum SBP { SS = 0 , MM = 1 , WW = 2 }; void OnStart () { double aa[ 5 ] = { 1 , 2 , 3 , 4 , 5 }; double bb[ 5 ] = { 6 , 7 , 8 , 9 , 10 };

MQL5 - Unclear about struct variable assignment and change within a function

Hi, in below code, struct LL { double price; } LL x; int OnInit () { x.price = 1 ; abc(1); } void abc( int a) { LL tmpLL; if (a == 1 ) tmpLL = x; tmpLL.price = 2 ; } Q1. In above code after calling abc(1) , inside the function abc, is a new object being created

MQL5 : Can we do late initialisation of array?

i want to do ENUM_TIMEFRAMES xTF; // some logic to set xTF bool listOfIsNewCandle[ 6 ] ; if (someBoolCondition) { if (xTF == PERIOD_M1 ) listOfIsNewCandle = {isNewCandle_6min,isNewCandle_5min,isNewCandle_4min,isNewCandle_3min,isNewCandle_2min, false };

Backtesting - early quiting of agents' run.

While performing optimization of input parameters via backtesting feature in metatrader 5, I wish to use some condition to stop the agents run of a particular combination of input parameter early. On reaching a certain condition while the agent is performing one such run, i wish to quit that run

MQL5 : Header (mqh) file unable to use parent mql file's struct variable

Hi, I have a EA which has a struct defined in it (because there are variables of its type in the EA mql file) and the struct type is being used to declare a variable in the header file too. // within mql EA file struct LLevel { ..... } // within mqh file LLevel expiredLLevel[]; After i include

Re: fetching trade info when position opens/closes, editing csv to update info, matching closed position with its corresponding limit order

Hi all, I want to do the following: -Step 1- catch information about a trade when a position (whether its direct market order or when price hits limit order) opens eg ticket, trade spread, slippage, price requested , price received attribute X value (eg X = 5, this is artificial attribute, not

Where to find source code for mobile (Android) MT5

I want to modify code to add my custom features on chart for risk management cuz no one has done it in last decade (surprised pikachu face). The UI of mobile mT5 to create new orders is highly non intuitive/ non user friendly as you may have realised already from using so many other alternate tools

Best practices for coding MQ5 Indicators

Hi, I just wanted to know if any experienced developer has made post / topic about best practices and patterns about creating I ndicators. Since information about EA/MQL5/Indicator is spread out across forum posts/articles/MQL5 documentation, I thought someone may already have created post about