PureBytes Links
Trading Reference Links
|
To the list:
For anyone trying to use the Chaikin Oscillator that comes with Prosuite
2000i you should know that the Chaiken Function (that is referenced by the
indicator) is wrong. While the help file explaining the Chaikin function
says
"The indicator subtracts a 10 period exponential moving average of the
AccumDist function from a 3 period exponential moving average of the
AccumDist function.," the function is written backwards with the fast
average being subtracted from the slow average.
Since the function is a read-only, the code needs to be changed in the
indicator itself. I believe the following corrects the problem:
Inputs: MyVol(Volume), Fast(3), Slow(10);
Variable: Osc(0);
Osc = XAverage(AccumDist(MyVol), Fast) - XAverage(AccumDist(MyVol), Slow);
Plot1(Osc, "Chaikin");
Plot2(0 ,"Zero");
Barry
|