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

Metastock indicator code for dynamic zone indicator



PureBytes Links

Trading Reference Links

Is it possible to create the dynamic zone indicator in metastock ver 6.5?

If anybody does have the code I would appreciate very much if you could let
me know.

The Easy Language code for Tradestation & SuperChart is reproduced below and
is taken from page 27 of the summer '98 issue of Omega  Research Magazine.

RSI-DZ2
Inputs:PriRSI(Close), LenRSI(9), LookBack(70), StD(2.5), Smooth(1);
Vars: MidBand(0), HighBand(0), LowBand(0);
MidBand=Average(RSI(PriRSI, LenRSI), LookBack);
HighBand=MidBand+StdDev(RSI(PriRSI, LenRSI), LookBack) * StD;
HighBand=Average(HighBand, Smooth);
LowBand=MidBand-StdDev(RSI(Pri(RSI,LenRSI), LookBack) * StD;
LowBand=Average(LowBand, Smooth);

Buy/Sell rules for system
If RSI(PriRSI, LenRSI) Crosses Over LowBand Then Buy on Close;
If RSI(PriRSI, LenRSI) Crosses Under HighBand Then Sell on Close;
If RSI(PriRSI, LenRSI) Crosses  Under LowBand Then ExitLong on Close;
If RSI(PriRSI, LenRSI) Crosses  Over HighBand Then ExitShort on Close: