Download MetaTrader 5

Seconds to close candle in tester

To add comments, please log in or register
Aecio de Feo Flora Neto
6574
Aecio de Feo Flora Neto 2014.12.16 13:38 

Hello all,

I have the following code

      long start_time = SeriesInfoInteger(_Symbol, _Period, SERIES_LASTBAR_DATE);
      long lastTime = SymbolInfoInteger(_Symbol,SYMBOL_TIME);

 to calculate seconds for current candle to close.

When I run it live, it works great but in tester it shows always value 0.

 

Any clue?

To add comments, please log in or register