İş tamamlandı
Şartname
This is what I want , when ever I or another EA places a buy or sell order, the EA should place a hedge order of same lot but one as a limit order and other as a stop order. It should be deployed at a predefined gap. For example: pair :btcusd and current price 55300 , if my initial order is a buy order of 0.03 lot at 55300 and if my predefined pip distance is 10000 then a sell Limit order of 0.03 lot has to be deployed at 55400 and a sell stop order of 0.03 lot has to be deployed at 55200.
Now if any of these hedges hit that is if either of sell limit or sell stop trigger then all the other pending order to be cancelled pertaining to this original order.
If A is original order and A1 and A2 are its limit and stop order and if either of A1 or A2 triggers then all the remaining pending order of A gets deleted. Other orders B, C etc follows the same rule.
note: the A1 Or A2 order , if any one among these get activated it should not further create hedge orders. that is for A only two hedge order should be there that is A1 and A2 , further to A1 and A2 no new hedges should not be created.
now A and A1 or A and A2 will make a locked profit or locked loss pair. this pair should adjust itself always to reduce the negative between them and make more positive profit lock in between them.