void function return a value error - martingale

 

Hi


Im trying to add a martingale on this Ea, but the void CalculateMartingale return a value :(


Can someone help?

Files:
genericteste.mq4  169 kb
 
RodrigoMariani :

Hi


Im trying to add a martingale on this Ea, but the void CalculateMartingale return a value :(


Can someone help?

Remove line 1792.

Fix "int Balance;" to "double Balance;" on line 129. 

 
Naguisa Unada:

Remove line 1792.

Fix "int Balance;" to "double Balance;" on line 129. 

Tks for your help!


I did it, but the martingale still not multiplying the lots, only 0.01.

 
"Lots" do not change, because it is called from OnInit () only once at initialization.
I think that originally it was recalculated at around line 1010, but it seems to have been deleted.
But I do not understand detailes without analyzing the whole program.
Reason: