Download MetaTrader 5
To add comments, please log in or register
Do you have Mac OS? Find out how to install MetaTrader on it!
jasonchou
14
jasonchou 2014.08.09 01:09 
how to limit an order a day, 
I placed an order today and sold it today,and I dont want it to place another order today again.
how to write it?
thanks

Keith Watford
Moderator
7990
Keith Watford 2014.08.09 01:21  

Either record the date in a Global Variable and check it before opening a new trade

Obviously, if the GV is today, don't open a trade.

Or  loop through open and closed orders and check OrderOpenTime. If one is today, don't open a trade 

jasonchou
14
jasonchou 2014.08.09 09:35  
thanks a lot I will give a try.
/
To add comments, please log in or register