Adapting an existing EA for Binary Options testing

 

I would like to change my EA to use for Binary Options strategy testing.

The idea seemed simple - Open a trade on a new candle and close on a new candle - thisway you could test the ea for 1 minute, 5 minute, 30 minute and even on 1 hour timeframes.

I tried different things but a trade just opens and never closes :(

Maybe one of you guys could investigate and correct my code? Please?

See attached

 
Attached?
 
Forex-ID10T:

I would like to change my EA to use for Binary Options strategy testing.

The idea seemed simple - Open a trade on a new candle and close on a new candle - thisway you could test the ea for 1 minute, 5 minute, 30 minute and even on 1 hour timeframes.

I tried different things but a trade just opens and never closes :(

Maybe one of you guys could investigate and correct my code? Please?

See attached



See Freelance section.