Does anyone have a script that automatically set Buy Stop/Sell stop when an open position (Buy or Sell) has been executed?
Like for example:
1. Buy Order has just been executed via instant order or
pending order. Script will run to have Sell Stop Order below the recent Buy
Executed Buy open position AUD/USD : 0.7860 an
EA will run to set up Stop Order at 0.7800 (manageable via input parameter).
And vice versa
2. Sell Order has just been exceuted via instant order
or pending order. Script will run to have Buy Stop Order above the recent Sell
Sell open position AUD/USD : 0.7850 an EA
will run to set up Buy Order at 0.7890.
Pip interval between the price executed in BUY/SELL open
Can you please convert this script into EA ?