i'm during 1 min chart, so for example:
start of trading session = 9:30
at 9:45 the total bars should be 15
at 10:00 the total bars should be 30..etc..etc..
any help would be greatly appreciated.

Code: Select all
If CurrentBar <> MyBarNumber then begin
MyBarNumber = CurrentBar;
MyBarCounter = MyBarCounter + 1;
end;
Code: Select all
// Function: bpBSS (Bars Since Start)
If time>=Sess2StartTime and time<=Sess2EndTime then BEGIN
bpBSS = bpBSS[1] + 1;
end Else bpBSS = 0;