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
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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?