Please can any one help me fix this problem? I'm to build an EA that Opens Buy and Sell Position according to the RS_Step,that means if the Step is 10pips the EA Opens a buy and a Sell trade every 10pips move, I tried writting it but the problem I'm having is : its opens only one buy and one sell instead of opening buy and sell when the currennt price is 10pips greater than the open price or 10pips less than the opening price. Here is the source Code :
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.
Please can any one help me fix this problem? I'm to build an EA that Opens Buy and Sell Position according to the RS_Step,that means if the Step is 10pips the EA Opens a buy and a Sell trade every 10pips move, I tried writting it but the problem I'm having is : its opens only one buy and one sell instead of opening buy and sell when the currennt price is 10pips greater than the open price or 10pips less than the opening price. Here is the source Code :