Download MetaTrader 5

need help in datatime

To add comments, please log in or register
Do you know that MQL5 can create custom graphical tools?
Mahfoud Allali
324
Mahfoud Allali 2015.11.23 22:01 

i want to creat try vertion for my ea

 

 

how to creat try version for my ea ??


Carl Schreiber
6580
Carl Schreiber 2015.11.23 22:58  

1)  run only if it is connected to a demo account: if (!IsDemo()) return;

2) Disable any trading, just paint on the chart the "I would have bought/sold here" signals,

3) limit the usage to a date, in OnTick e.g.:  if (TimeCurrent()>D'2015.12.24 00:00:00') return;



To add comments, please log in or register