[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EL word for MARKET HOURS?



PureBytes Links

Trading Reference Links

I answered the last post before I read this one
Looks like you are right,
I must still be optimizing time wrong.
I'll be checking it out

Thanks for your input

Neville



-----Original Message-----
From: DH <catapult@xxxxxxxxxxxxxxxxxx>
To: Omega List <omega-list@xxxxxxxxxx>
Date: Tuesday, February 13, 2001 10:32 AM
Subject: Re: EL word for MARKET HOURS?


>> 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
>
>