I have two questions about the way the function LastHour is coded in MultiCharts.
The built-in code is:
Code: Select all
LastHour = Time >= CalcTime( SessionEndTime( 1, 1 ), -60 ) and Time < SessionEndTime( 1, 1 ) ;
Shouldn't SessionEndTime(1,1) be replaced by SessionEndTime(1, CurrentSession(1)) in order to take into account the possibility that all sessions do not necessarily end at the same time?
If session ends at 00:30 and current time is 23:45 then I think that CalcTime return -30 and LastHour returns false, whereas it should return true.
Have I missed something?
Thanks in advance for your help,