I'd like the ability to place One Triggers the Other (OTO) trades in a certain manner. Let's say the EURUSD was at 1.2050, I want a script (or EA) to place the following orders:
BUY STOP at 1.2060 with Stop Loss (SL) at 1.2050 and Take Profit (TP) at 1.2080.
BUY STOP at 1.2080 with Stop Loss (SL) at 1.2070 and Take Profit (TP) at 1.3000.
BUY STOP at 1.3000 with Stop Loss (SL) at 1.2090 and Take Profit (TP) at 1.3020.
If a BUY STOP order is triggered but gets stopped out, I would like that order to be replaced exactly 1 time. If it gets stopped out again, do nothing.
So my inputs would be:
+ Initial price to place the "stacked" orders. In the example above, it would be 1.2060 as that's the first order.
+ SL distance in pips, 10 in my example.
+ TP distance in pips, 20 in my example.
+ Whether the orders are BUY STOP or SELL STOP orders.
+ Number of orders to place. From my example, it would be 3 BUY STOP orders.
+ Distance apart for each order. From my example, each BUY STOP trigger price is spaced out 20 pips apart.
If someone can deliver on this, there is potential for follow-on work to develop a full fledged EA based on another indicator but I won't go into it now, I'm looking for the above request for the time being.
I use a 5 digit broker, looking forward to hear proposals.
12 freelance font une offre moyenne de $250 pour ce travail
I've been programming OCO orders for a few clients lately, so I'm quite comfortable with my quote on this project. I'm sorry it will take four days, but I've been awarded a couple of contracts today via this site.