Forum

MetaTrader strategy tester produces different results with the same expert advisor

When run three times in a row the same strategy provides different results in total net profit: 1st run: 18.56, 2nd: 12.78, 3rd: 0.72. The difference between the first and last rounds is 25 times. The currency pair , time period and expert advisor settings remain the same (I just clicked “Start”

Can not create a decimal fraction

The following MQL4 code results in the "a" value of zero: double a=1; for (int i=0; i<4; i++) { a=a*0.1; } Print ("a is ",a); Output: "a is 0". Should I make "a" equal to 100000 initially, then the output is "10". How can I get "0.0001" (The pip value :))? Thank you in advance :)