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

Re: Ticky problem



PureBytes Links

Trading Reference Links

At 11:02 PM -0800 1/24/02, John Watson wrote:

>I am having bit of a problem trying to reset the tick counter everyday, but
>it count only once per day. I just want to count all of the up and down tick
>through out the day and then reset it back to zero before the market bell
>open. Can anyone solve this 'ticky' problem before it 'tick me off'.  Excuse
>the pun.

Sounds as if you need this:

Var: Upt(0), DnT(0);

if Date <> Date[1] then
begin
 Upt = 0;
 Dnt = 0;
end;

if (Time >= 0630 and time <= 1315) then
begin
 Upt = Upt + upticks;
 Dnt = Dnt + downticks;
end;

Bob Fulks