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
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()return;
}
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?