PureBytes Links
Trading Reference Links
|
On Thu, 29 Aug 2002, Jim Johnson wrote:
> Hello Omega List,
>
> I typed the code incorrectly in my email but correctly in Power
> Editor. The code verified but gives a "divide by zero' error when
> plotted. Here it is all cleaned up. I tried adding 1 to DnVol but that
> didn't help. I'm having problems with $DVOLQ symbol from Quote.com
> and think that may be the culprit.
>
> Thanks for the suggestions.
>
>
> Inputs: UpVol(close of data2),
> DnVol(close of data3),
> FstLen(19),
> SlwLen(39);
>
> Vars: McOsc(0);
>
>
> McOsc = IFF(DnVol <> 0, XAverage(UpVol / DnVol, FstLen) - XAverage(UpVol / DnVol, SlwLen), 0);
Could it be in the XAverage() function from the FstLen or SlwLen inputs?
|