PureBytes Links
Trading Reference Links
|
see insert below
chris
----- Original Message -----
From: "Southwest Transaction Group, Inc." <swtrans@xxxxxxxxxxxxx>
To: <Omega-list@xxxxxxxxxx>
Sent: Thursday, May 02, 2002 9:44 AM
Subject: Daily Accumulator
> Lets say I was using 5 minute bars, and wanted to add the High-Low for
each
> bar, to the previous bar, BUT reset at day's end.
>
>
> Vars:
>
> BarSpread(0), Accum(0);
>
> BarSpread = H-L;
>
> Accum = BarSpread + Accum[1];
> if t = session1firstbartime then accum = barspread;
> Plot1(Accum,"");
>
>
> The above accumulates, but does not reset.
>
> Thanks for the help.
>
|