see i m making a grid trading system
n at present m a newbie in mql4 ...
what so far i hav achived is sending autmatic order based on my calculations.
but my system send order again and again....
example
if i run expert it send like this
buy limit 1.40000
buy limit 1.39800
buy limit 1.39600
buy limit 1.39400
buy limit 1.39200
then it start again untill i stop expert
1.40000
...... .. .. ..
1.39200
again..
n i cant use break function as my system will be continues...
so i want a loop in my expert which run after order send ..n remove multiple pending limits
and also
supose if hit 1.40000 its tp is 1.40400 n market moves
to say 1.40200
it again send a limit order at 1.40000
i also want a funtion that this type of order...
it shud only allow 1.4000 newlimit to be send once 1.4000 open order tpis achived n it doestnt exist as an open order
n at present m a newbie in mql4 ...
what so far i hav achived is sending autmatic order based on my calculations.
but my system send order again and again....
example
if i run expert it send like this
buy limit 1.40000
buy limit 1.39800
buy limit 1.39600
buy limit 1.39400
buy limit 1.39200
then it start again untill i stop expert
1.40000
...... .. .. ..
1.39200
again..
n i cant use break function as my system will be continues...
so i want a loop in my expert which run after order send ..n remove multiple pending limits
and also
supose if hit 1.40000 its tp is 1.40400 n market moves
to say 1.40200
it again send a limit order at 1.40000
i also want a funtion that this type of order...
it shud only allow 1.4000 newlimit to be send once 1.4000 open order tpis achived n it doestnt exist as an open order