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

Dynamic Zones Code



PureBytes Links

Trading Reference Links

 Maybe someting like the following indicator?

{ From "Andy" ==adle@xxxxxxxxxx==}

{submitted to omega-list on 3/16/98}



{I'm using William Blau's TSI as the main oscillator. I'd suggest a

reading on his book, Momentum, Direction, and Divergence...Applying the
Latest Momentum Indicators for Technical Analysis (1995) $27.97 @ Amazon.com
if you want more details.}



{indicator: Adpative Zones TSI}



Input: R(21),S(12),Lback(50),PCent(.95);

Vars: Osc(0),HH(0),LL(0),Rng(0),VrRng(0),Ob(0),Os(0);



Osc=Mtm(R,S);



{Highest and Lowest Values of Osc during Lookback Period}

HH=Highest(Osc,Lback);

LL=Lowest(Osc,Lback);



{Range of Osc during Lookback Period}

Rng=HH-LL;



{Define Variable PerCentage of Range to determine OB and OS levels}

VrRng = Rng * (PCent);



{Calculate OB and OS levels}

Ob=LL + VrRng;

Os=HH - VrRng;



Plot1(Osc,"Osc");

Plot2(Ob,"OB");

Plot3(Os,"OS");

Plot4(0,"zero");