Candle closing time

 
How can i close a candle early before than 1 min either by using MQLRates or MQLTick?
 

As this is the open time of the last candle: MqlRates: datetime time;         // Period start time

and then add (PeriodSeconds(_Period) - 60).

 
Carl Schreiber #:

As this is the open time of the last candle: MqlRates: datetime time;         // Period start time

and then add (PeriodSeconds(_Period) - 60).

this gives Error 5310

 
Arpit T #: this gives Error 5310

That doesn't give anything, it's an expression. Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the source file.
     How To Ask Questions The Smart Way. (2004)
          Be precise and informative about your problem

We can't see your broken code.

Fix your broken code.

Reason: