LastHour (Function)
The LastHour function determines if the current time is within the last hour of the first trading session.
Syntax
LastHour
Returns (Boolean)
True if the current time is within the last hour of the first trading session. False if the time is not within the last hour of the trading session.
Parameters
None
Remarks
LastHour returns True if referring to an S&P futures data stream and the time is 3:30pm, EST:
Condition1 = LastHour;
LastHour returns False if referring to Intel (INTC) and the time is 12:34pm, EST:
Condition2 = LastHour;
Examples
The following PaintBar study paints any bar within the last hour of the first session:
If LastHour Then Begin
Plot1(Low, "PBLow");
Plot2(High, "PBHi");
End;