| 
 PureBytes Links 
Trading Reference Links 
 | 
> If time crosses over session1starttime + 360 ( 6 hours )
Nope. 0930 + 360 = 1290, not a valid time. Check out the CalcTime,
TimeToMinutes and MinutesToTime functions. 
Back to the original question, try:
Var: MinutesPerDay(0);
If CurrentBar = 1 then MinutesPerDay = 
   TimeToMinutes(Sess1EndTime) - TimeToMinutes(Sess1StartTime);
or just
Var: MinutesPerDay
   (TimeToMinutes(Sess1EndTime)-TimeToMinutes(Sess1StartTime));
Both are ways to calculate the minutes per day once at the beginning of
the chart and not calculate it over and over on every bar.
> Easylanguage doesn`t include "market hours", but its easy to code it.
> You should use "time" reserved word.
> TS support
If that's the best tssupport (whoever that is) can do, I think I'll pass
on their generous offer of support. :-)
-- 
  Dennis
 
 |