Alvin,
Preston had answered your question.
Quoting from his email:
{Adaptive RSI System with an idea
Taken from the November 2005 Active Trader article}
x:=Input("number of periods for RSI",1,2000, 14);
sd1:=Input(" standard deviation constant",0. 1,5,2);
bs1:=Input(" Bollinger Band Smoothing",1, 200,100);
bbandtop( RSI(X), bs1, S, sd1 );
bbandbot( RSI(X), bs1, S, sd1 );
RSI(x); {end}
or (if you want to make the code fix, like in the article you
mentioned), you can use:
BBandTop(RSI( 14), 100, S, 2); { this will draw the lower
Bollinger Band }
BBandBot(RSI( 14), 100, S, 2); { draw the upper Bollinger Band }
RSI(14); { draw the RSI line }
that's it.
I, myself, will prefer Preston's code, since it is more customizable.
Besides using BB on RSI, you can also try applying BB on other
indicators, such as StochRSI, MFI, OBV, etc, to add more relativity to
the result.
On
Fri, Jan 30, 2009 at 2:30 PM, Alvin Yu <alvinyu2005@ yahoo.com. sg> wrote:
> Hi sugiharto
> Thks.I got the formula working but it is not similar to that shown in
> the article in :
> http://store. activetradermag. com/futures_ tsl1105.pdf
> . According to the artcle, the bollinger band is using 100 Simple Moving
> Average and STD deviation 2, Can u adv where I have to change further ?
>
> hks for your help.
>
> rgds
>
> ____________ _________ _________ __
> From: Sugiharto Setyabudi <sugiharto.wu@ gmail.com>
> To: equismetastock@ yahoogroups. com
> Sent: Friday, 30 January 2009 10:42:33
> Subject: Re: [EquisMetaStock Group] Adaptive RSI
>
> I tried the code, and the only error are spaces between 0. and 1 on the
> inputs
> try this (no change to the code, just omitting the spaces):
> x:=Input("number of periods for RSI",1,2000, 14);
> k1:=Input("standard deviation constant",0. 1,5,1.8);
> c1:=Input("SMA constant",0. 1,5,2);
> m1:=Input("method <1=SD/2=SMA> ",1,2,1);
> top:=If(m1=1,
> 50+(k1*Stdev( RSI(x),x) ),
> 50+(c1*Mov(Abs( RSI(x)-Mov( RSI(x),x, S)),x,S)) );
> bottom:=If(m1= 1,
> 50-(k1*Stdev( RSI(x),x) ),
> 50-(c1*Mov(Abs( RSI(x)-Mov( RSI(x),x, S)),x,S)) );
> RSI(x);
> top;
> bottom
>
> Sugiharto
>
> On Thu, Jan 29, 2009 at 8:45 PM, Alvin
Yu <alvinyu2005@ yahoo.com. sg>
> wrote:
>> Hi Patrick
>> When I load them to " indicator builder" , it returns few errors .
>> Can u adv ?
>> rgds
>>
>> ____________ _________ _________ __
>> From: Patrick Butler <pat494@xxxxxx net>
>> To: equismetastock@ yahoogroups. com
>> Sent: Wednesday, 14 January 2009 6:09:48
>> Subject: Re: [EquisMetaStock Group] Re: New formula required Please
>>
>>
>>
>> Hi,
>> This may be the formula details you are looking for
>>
>> x:=Input("number of periods for RSI",1,2000, 14);
>> k1:=Input("standard deviation constant",0. 1,5,1.8);
>> c1:=Input("SMA constant",0. 1,5,2);
>> m1:=Input("method <1=SD/2=SMA> ",1,2,1);
>> top:=If(m1=1,
>> 50+(k1*Stdev( RSI(x),x) ),
>> 50+(c1*Mov(Abs( RSI(x)-Mov(
RSI(x),x, S)),x,S)) );
>> bottom:=If(m1= 1,
>> 50-(k1*Stdev( RSI(x),x) ),
>> 50-(c1*Mov(Abs( RSI(x)-Mov( RSI(x),x, S)),x,S)) );
>> RSI(x);
>> top;
>> bottom
>>
>> regards Pat
>>
>> ----- Original Message -----
>> From: Alvin Yu
>> To: equismetastock@ yahoogroups.. com
>> Sent: Sunday, January 11, 2009 2:28 PM
>> Subject: Re: [EquisMetaStock Group] Re: New formula required Please
>>
>> Hi Ross
>> Any formula that is available for this adaptive RSI system ? It look
>> interesting to me
>>
>> rgds
>>
>> ____________ _________ _________ __
>> From: jawjahtek <jawjahtek@xxxxxx com>
>> To: equismetastock@ yahoogroups. com
>> Sent: Sunday, 11 January 2009 9:41:08
>> Subject: [EquisMetaStock Group] Re: New formula required
Please
>>
>> Here is a link to an article that makes an RSI trading system adaptable
>> to market conditions:
>>
>> Free article download: Adaptive RSI system
>>
>> Through Wednesday, January 21, you can download the following article
>> from the November 2005 issue of Active Trader magazine for
>> free: "Trading System Lab: Adaptive RSI system (futures)." This system
>> uses Bollinger Bands to create dynamic overbought and oversold levels
>> for the Relative Strength Index. The strategy is tested on a portfolio
>> of 20 futures contracts over a 10-year period.. Click here to go to the
>> article link in the Active Trader store:
>> http://store. activetradermag. com/futures_ tsl1105.pdf
>>
>> Ross
>>
>> --- In equismetastock@ yahoogroups.
com, Claud Baruch <claudba@xxx >
>> wrote:
>>>
>>> Many thanks. The links don't work, but I've been using a variation of
>> this
>>> indicator which has produced some rather good results. It is
>> especially
>>> useful for volatile stocks and indexes....AND. ......there really isn't
>> much
>>> of a lag the way I use it.
>>> Thanks again Preston.
>>>
>>> Claud
>>>
>>
>>
>> ____________ _________ _________ __
>> New Email names for you!
>> Get the Email name you've always wanted on the new @ymail and @rocketmail.
>> Hurry before someone else does!
>>
>> ____________ _________ _________ __
>> New Email names for you!
>> Get the Email name you've always wanted on the new @ymail and @rocketmail.
>> Hurry before
someone else does!
>
> ____________ _________ _________ __
> New Email names for you!
> Get the Email name you've always wanted on the new @ymail and @rocketmail.
> Hurry before someone else does!