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

Re: Dyn RSI - Metastock indicator code for dynamic zone indicator



PureBytes Links

Trading Reference Links

Hi Anil & All,

The problem here is that you need a dynamic RSI - as to its # of bars. Now,
there is a standard indicator in MS: Chande's Dynamic Momentum Indicator, which
does just that. The problem is that everything is preset by Equis; that is the
variable influencing the # of days (standard error or r-squared I believe)
itself as well as _its_ length. So the only solution would be to create a custom
RSI that allows length as a variable - which the MS-indicator does not.
There are a number of real MS-programming pros (among whom I emphatically don't
consider myself) around here who have solved the same problem for dynamic MAs.
Therefore I'd like to step onto Anil's sideboard, and ask the same question:
======================================
Has anyone programmed a custom dynamic RSI?
======================================

Thanks & Happy Trading,
Jan Willem E. Roberts

Anil Chugani wrote:

> 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: