BarsSinceStartSession
From MultiCharts
With the BarsSinceStartSession function the number of bars since the start of the day will be returned.
Code
Variables:
firstBarOfSession(0);
if (Date <> Date[1]) then begin
firstBarOfSession = CurrentBar;
end;
BarsSinceStartSession = (CurrentBar - firstBarOfSession + 1);
Usage
Print(GetSymbolName, " - ", BarsSinceStartSession);
returns:
6E - 238.00