Forum

Automated Testing - Forward Testing Errors

Hi All, I have a set of scripts that run the MT5 terminal automatically in optimization mode and output the result in xml format. I'm able to run the backtest without issues, but automated forward testing(using the script) is generating errors and unable to complete. The odd thing about it is

Do You Know of a Way to Load Live Trade History Into EA During Backtest?

So im writing a EA that will make use of live trade historical during optimization and i thought of writing the results to a csv when running and read during optimization. Option #1: Read the scv during init and write to array? Option #2: Read from a database(sql, etc..) Is there an easier way

Code Protection: New MQL4 language(Build 600+) decompilation protection and other crack techniques.

Hi, I read about the new mql4(Build 600+) and already updated my EAs, now i have a question. How secure is the new protection against crackers and other types of executable cracking and modifying the code. EX: hex editing date of expiration, memory dumps, etc.. How secure is a simple time

Strange OnTester() Result

Until recently i was able to produce useful results from the ontester function but that has changed and i can't explain why. The results are different, while i do get a proper result running the tester i have "0" while optimizing. Please take a look at this picture.. Whats going on

Metatrader 4 Command Line Powershell .ini Startup Example

Hi, I've been unsuccessfully trying to start from powershell command line the terminal.exe program. The .ini file look like this : ; common settings Login=2089020454 Password=7ze45v3u EnableNews=false ; experts settings ExpertsEnable=true ExpertsDllImport=true ExpertsExpImport=true

Print Decimal Number With Defined Number of Characters

Im looking to print the following value :3 as 00003 value :124 as 00124 value :8324 as 08324 in this case it would be 5 characters.. is it possible? Thanks

Sorting .csv file and trimming undesired results.

Hello folks, I have the this sample data in my .csv file: 1,0.31,1.3,2.1 2,1.52,1.1,2.3 3,2.1,1.8.3.1 n+1,n,n,n and i would like to sort the rows on a descending order by the second column keeping the row values intact and then trim the file and keep the first N rows. Any insights, code snippets

Need Help With This Function

Hello, Im having issues with this function and im not able to get the right values for my EA. Im looking to get the the StdDev cross of the upper bollinger band on my ea like the picture bellow: So far i wrote this code but i cant get the upper bollinger band(always return 0) value to compare the

need help with iBandsOnArray()

Hello, Thank you in advance for looking this up. Im looking to get the the StdDev cross of the upper bollinger band on my ea like the picture bellow: So far i wrote this code but i cant get the upper bollinger band(always return 0) value to compare the variables... Could anyone point me in the

Need help with this piece of code, should be simple.

Hello, Thank you in advance for looking this up. Im looking to get the the StdDev cross of the upper bollinger band on my ea like the picture bellow: So far i wrote this code but i cant get the upper bollinger band(always return 0) value to compare the variables... Could anyone point me in the