when start period ?

faustf
464

hi guys , suppose i have  a script , and  i want  run it  only  one  time in period example  if  i set M30 at a start  of 14.30 start  after restart at  15.00, but if  i set M15  start at 14.30and  after 14.45 , one time , how  is possible do that ?

exist some library at_start_period( ) ???

thankz

William Roeder
25824
William Roeder  

For a new bar test, Bars is unreliable (a refresh/reconnect can change number of bars on chart,) volume is unreliable (miss ticks,) Price is unreliable (duplicate prices and The == operand. - MQL4 programming forum.) Always use time.

I disagree with making a new bar function, because it can only be called once per tick. A variable can be tested multiple times.
          New candle - MQL4 programming forum #3 2014.04.04

faustf
464
faustf  
thankz  very much