I am kind of new to this and I am tying to get an OrderModify to execute on every new bar. I want to place a BUYSTOP and a SELLSTOP some ticks away from the current price and refresh the Price, StopLoss and TakeProfit on every BarClose. For example if I start by placing a BUYSTOP and a SELLSTOP at +/- 20 pips on the current price. Every time a new bar closes the BUYSTOP and SELLSTOP are to be updated to BUY and SELL at +/- 20 pips from that bars Close.
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.
Hi!
I am kind of new to this and I am tying to get an OrderModify to execute on every new bar. I want to place a BUYSTOP and a SELLSTOP some ticks away from the current price and refresh the Price, StopLoss and TakeProfit on every BarClose. For example if I start by placing a BUYSTOP and a SELLSTOP at +/- 20 pips on the current price. Every time a new bar closes the BUYSTOP and SELLSTOP are to be updated to BUY and SELL at +/- 20 pips from that bars Close.
Best Regards // Tommy