Placing pending market order when market is closed - page 2

 
Keith Watford:

Yes, of course it is possible.

Mind you the code should also include a check for outrageous spreads if it is to open a trade immediately the market opens.


Yes that's a good point.
Any good resource to point me towards where I can learn the basics of MLQ programming?
 
Blarol2 #:

Yes that's a good point.
Any good resource to point me towards where I can learn the basics of MLQ programming?
I'm a programmer, I've been try to place a pending order on mt5, when the market is closed, so it will do exactly as you said when the market opens, but it doesn't let you do it, I do this with ctrader, having issues on this topic on metatrader. I've read through the comments, I don't seem to understand, have you found a way, let me know I can write the code for you.
 
ayoungchief001 #:
I'm a programmer, I've been try to place a pending order on mt5, when the market is closed, so it will do exactly as you said when the market opens, but it doesn't let you do it, I do this with ctrader, having issues on this topic on metatrader. I've read through the comments, I don't seem to understand, have you found a way, let me know I can write the code for you.

you have to wait for the market to be open to place orders.

 
Need help with this too
 
Paul Anscombe #:

you have to wait for the market to be open to place orders.

Seems like that, but there have to be a way right?

 
ayoungchief001 #:

Seems like that, but there have to be a way right

really?   you can only place an order if your brokers server is willing to accept it...  

 
ayoungchief001 #:

Seems like that, but there have to be a way right?

it's a simple solution...place your pending order 5 minutes before the market closes at an allowed price. You miss the train when the market closes.