PureBytes Links
Trading Reference Links
|
Nathan,
If you donīt mind for negatives you may use
Graph0=StochK();
Graph1=StochD();
Graph2=3*abs(StochK()-StochD());
You may also have an MACD-like graph with
Graph0=-50+StochK();
Graph1=-50+StochD();
Graph2=3*(StochK()-StochD());
Scale Automatic, Grid lines "level 0".
Perhaps it is more expressive.
Dimitris Tsokakis
--- In amibroker@xxxx, njpowell@xxxx wrote:
> I think I did it :o)
>
> Graph0 = StochK();
> Graph1 = StochD();
> DF = StochK()-StochD();
> DF1 = IIF( DF>0, DF, 0 - DF);
> DF2 = DF1 * 2; /* Just to make it a little more visable */
> Graph2 = DF2;
> Title=Name() + "- Stochastic Slow - %K=" + WriteVal(Graph0 )+ ", %
D="
> + WriteVal(Graph1) + ", Difference = " + WriteVal(DF1);
>
> Maybe this will help someone. If not, it was still a learning
> experience for me :o)
>
> Nathan
>
>
> --- In amibroker@xxxx, njpowell@xxxx wrote:
> > What would be the easiest way to view a histogram of the
difference
> > between the %D and %K line? How hard would it be to change a
> > negative difference to positive so that we could overlay the
Stoch
> > indicator? This would track the difference and not worry about
> > wether it's positive or negative.
> >
> > Thanks in Advance
> > Nathan
|