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

MA of OBV: scaling problem



PureBytes Links

Trading Reference Links

I've written a simple formula for a moving average of  On Balance Volume and
can't get it to plot correctly.  I'm not sure if it's a scaling problem or
something in the formula.  In TS4 the formula is:

Inputs: VolAvg(10);
Plot1(Average(OBV,VolAvg),"OBVAvg");


If I set the OBV scaling to "user defined" and the OBVAvg scaling to
"screen".  This gives a plot that looks right but  moves around(in relation
to the actual OBV plot) depending on the bar spacing used.  That makes it
useless if you're looking for crossovers.

If I set the OBVAvg to "user defined" and use the exact same numbers used in
the OBV "user defined" scaling, the plot keeps its relationship to the OBV
plot, regardless of bar spacing, but still does not look right.   Most of
the time it plots below the OBV plot and even when the OBV is moving
sideways the OBVAvg plots below the OBV, acting as if it is a displaced
average(but one displaced down instead of sideways).

I would guess there is something wrong with one of the formulas, but I am
using the OBV formula straight out of the TS4 indicator menu.   Any ideas?

John