Forum

Place a pending order when another pending order turns into a market order

I will send 1 buy market order (No1) and 01 pending sell order (No2) at the same time. TP1 = 20 pips SL1 = 40 pips Openprice1 = Ask coment = "No1" Openprice2 = Ask- (SL1 / 2) * point TP2 = Ask-SL1 * point SL2 = Ask + TP1 * poin coment = "No2" There are 2 scenarios: - The price goes up and touches

Code for Hedging MT4

<Deleted> //----------------------------------- // Open Order pending by other pending orders //----------------------------------- int start () { ngày giờ tĩnh t; if (t == Thời gian [ 0 ]) return ( 0 ); double MyPoint = Point ; if ( Digits == 3 || Digits == 5 ) MyPoint = Point *