pending orders + spread

Back to topics list To post a new topic, please log in or register
avatar
13
oxarbitrage 2012.09.16 17: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.



 
avatar
791
Ickyrus 2012.09.16 18: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.

 
avatar
251
dineshydv 2012.09.16 18: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....
 
avatar
251
dineshydv 2012.09.16 18:37 #
 
But if you send it as pending order, then you cant change it...
avatar
12995
WHRoeder 2012.09.16 19: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.

 
avatar
13
oxarbitrage 2012.09.16 19:08 #
 
got it, thank you for the answers ;)
avatar
83
BeLikeWater 2015.01.24 17:43 #
 

Isnt this for what was slippage made from?

Greetings

BeLikewater

Back to topics list  

To add comments, please log in or register