Close Question

 

Is there a way to capture the close, of a period, at the close.  Because of delays in ticks, you can't simply state:  if (second() == 59)  {X = close;}

 
X = Close[1];
At the close of a period, the zero bar becomes bar 1. So Close[1] is the close of the period at the close.
 
Yellowbeard:

Is there a way to capture the close, of a period, at the close.  Because of delays in ticks, you can't simply state:  if (second() == 59)  {X = close;}

No.