Download MetaTrader 5

need help in datatime

To add comments, please log in or register
Mahfoud Allali
325
Mahfoud Allali  

i want to creat try vertion for my ea

 

 

how to creat try version for my ea ??


Carl Schreiber
6998
Carl Schreiber  

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