Adding lines of code into the .mq4 &/or .ex4 export files
-
Hello,
I need to add the following two lines of code into the exported files to allow Back Testing to interact with other products I use. Currently I add these lines manually via MT4 metaEditor, but it is a bit of a pain having to do this every time I update an EA. I know there is the Custom MQL4 fuction, but I am not sure if this can be done using that: Is this possible?
- Line 8 add #include <CustomChartingBacktest.mqh>
- Line 304 add if(skipFirstTickOnBacktest()) return;
-
Includes are possible, but via custom blocks.
Here https://fxdreema.com/studio/ there is this field down below http://prntscr.com/89y8i1 where certain things can be added - includes, imports or global variables. But if you try to export .ex4/.ex5 it will probably return an error, because the include file does not exists on the server.The other thing can be made much easily, just put the block "Counter: Pass once" in "on Tick" and connect next blocks after it's second output.