Expert Advisors: Simple Expert Advisor based on the Simple Moving Average and ADX - page 2

 

In this code, the author forgot to add a line and that's why the EA opens new positions one after another, respectively the depo will be drained if the price goes in the opposite direction.

void OnTick()
{
if(PositionSelect(_Symbol)) // Exit if the position is already open

return;

}

 
Good afternoon. Interesting idea. how to add trailing stop loss?
 

Thank you so much for your time in creating this helpful article for us!

 The EA works perfectly, I just wanted to know if it was possible to modify this code to allow it to trade synthetic indices like Boom and Crash?