Hi all,
I am after a simple "Set SL to BE" script (not EA) which only sets the SL to BE of the last order executed (ie. if i already have multiple buys/sells running and suddenly decide to scalp, i would like to execute a script with a hotkey which would set the latest position to breakeven, and not interfere with other running orders.
Can something like this be made? I found an "EA" in the sticky thread in this sub-forum (which is attached below), but the problem with an EA is that its running in the background, so all new positions get executed with the EA paramatters.
I would instead, like to have just a script (like this "close all open positions" script) which can be executed with a hotkey!
Could anyone look into coding this and help me out please. Much appreciated.
Thanks.
TD
I am after a simple "Set SL to BE" script (not EA) which only sets the SL to BE of the last order executed (ie. if i already have multiple buys/sells running and suddenly decide to scalp, i would like to execute a script with a hotkey which would set the latest position to breakeven, and not interfere with other running orders.
Can something like this be made? I found an "EA" in the sticky thread in this sub-forum (which is attached below), but the problem with an EA is that its running in the background, so all new positions get executed with the EA paramatters.
I would instead, like to have just a script (like this "close all open positions" script) which can be executed with a hotkey!
Could anyone look into coding this and help me out please. Much appreciated.
Thanks.
TD
Attached File(s)
Set_SL_to_BE.mq4
2 KB
|
3,618 downloads