Period Question

 

Is there a way to find the start of a new period?  For example, on a 15 minute chart, the start of a new period?

 

Thanks! 

 
Yellowbeard:

Is there a way to find the start of a new period?  For example, on a 15 minute chart, the start of a new period

Yes,  check when the time of bar 1 has changed, then it is a new bar.
 
Yellowbeard: Is there a way to find the start of a new period?
Use this and you would have found many variations like
int start(){
   static datetime Time0; if (Time0 == Time[0]) return; Time0 = Time[0];
   // A new bar.
Reason: