Download MetaTrader 5
To add comments, please log in or register
Publish the program in the Market and sell it to millions of traders!
Roger Hulley
926
Roger Hulley 2013.10.30 10:34 
Hi, When day-trading, pulling orders each evening and reinserting them again in the morning is time consuming.

Although I copy them into excel so that they can be pasted back into a new order ticket, this takes a while, particularly if there are a lot of orders.

In MT5 would it be possible to either:

1. Create an order, save it, delete it and reload it the next day?

or

2. Create and order, pause or freeze (so it is inactive) and then reactivate it the next day?

It would be interesting to hear if anyone has dealt with this problem or has ideas to how it might be overcome.

Thanks
Documentation on MQL5: Trade Functions / OrderGetTicket
Documentation on MQL5: Trade Functions / OrderGetTicket
  • www.mql5.com
Trade Functions / OrderGetTicket - Documentation on MQL5
Alain Verleyen
Moderator
28671
Alain Verleyen 2013.10.30 11:14  
RogH:
Hi, When day-trading, pulling orders each evening and reinserting them again in the morning is time consuming.

Although I copy them into excel so that they can be pasted back into a new order ticket, this takes a while, particularly if there are a lot of orders.

In MT5 would it be possible to either:

1. Create an order, save it, delete it and reload it the next day?

or

2. Create and order, pause or freeze (so it is inactive) and then reactivate it the next day?

It would be interesting to hear if anyone has dealt with this problem or has ideas to how it might be overcome.

Thanks

Are you talking about pending orders ? If yes, it's relatively easy to program your point 1.

I don't think your point 2 is possible.

Roger Hulley
926
Roger Hulley 2013.10.30 11:45  
angevoyageur:

Are you talking about pending orders ? If yes, it's relatively easy to program your point 1.

I don't think your point 2 is possible.

Hi Angevoyageur,

Yes, I'm talking about pending orders such as a buy limit.

So to program point 1, would this be achieved with a script?

My understanding would be to create two scripts.

1. That saves all pending orders. (Then I could delete them manually in the Trade panel).

2. That reloads all saved pending orders.

Would that be possible? - If so I'll make a request in the jobs section.

Thanks

Limitless Opportunities with MetaTrader 5 and MQL5
Limitless Opportunities with MetaTrader 5 and MQL5
  • 2012.06.19
  • Anatoli Kazharski
  • www.mql5.com
In this article, I would like to give an example of what a trader's program can be like as well as what results can be achieved in 9 months, having started to learn MQL5 from scratch. This example will also show how multi-functional and informative such a program can be for a trader while taking minimum space on the price chart. And we will be able to see just how colorful, bright and intuitively clear to the user trade information panels can get. As well as many other features...
Alain Verleyen
Moderator
28671
Alain Verleyen 2013.10.30 12:01  
RogH:

Hi Angevoyageur,

Yes, I'm talking about pending orders such as a buy limit.

So to program point 1, would this be achieved with a script?

My understanding would be to create two scripts.

1. That saves all pending orders. (Then I could delete them manually in the Trade panel).

2. That reloads all saved pending orders.

Would that be possible? - If so I'll make a request in the jobs section.

Thanks

Yes it's possible.
/
To add comments, please log in or register