Download MetaTrader 5
To add comments, please log in or register
Your broker does not support mobile MetaTrader 5? Ask him to buy them!
oxarbitrage
152
oxarbitrage 2012.09.16 15:54 

hi forum, i have a situation here.

lets suppose i open a pending order, a buy stop order for instance. this order became a market buy order when the price is reached. it is possible in mql4 to know what is the spread at the moment the pending became market order and take actions like don't execute if the spread is too big ?

i appreciate any comment.

Ickyrus
872
Ickyrus 2012.09.16 16:20  

Cant be done - the pending order is registered on the brokers system and you are asking to modify that order the same time the price says change the order from pending to active. Can only be done as checking the spread before sending an active trading order to the broker.

dineshydv
173
dineshydv 2012.09.16 16:35  
oxarbitrage:

hi forum, i have a situation here.

lets suppose i open a pending order, a buy stop order for instance. this order became a market buy order when the price is reached. it is possible in mql4 to know what is the spread at the moment the pending became market order and take actions like don't execute if the spread is too big ?

i appreciate any comment.



Dont send your pending order to broker. Keep monitoring the price in EA instead and as soon as it reaches your execution price, check the spread and take action....
dineshydv
173
dineshydv 2012.09.16 16:37  
But if you send it as pending order, then you cant change it...
whroeder1
13641
whroeder1 2012.09.16 17:03  

nope.

Also unnecessary. a pending order is for human's use. They can't watch the screen continuously. A EA can and not open.

oxarbitrage
152
oxarbitrage 2012.09.16 17:08  
got it, thank you for the answers ;)
Luis
226
Luis 2015.01.24 16:43  

Isnt this for what was slippage made from?

Greetings

BeLikewater

/
To add comments, please log in or register