logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
wabbit  
#1 Posted : Friday, January 13, 2006 10:07:03 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
In the latest issue of Stocks and Commodoties Magazine (I am not a subscriber, I just get their fliers/spam) there is an article by David Sepiashvili about a self levelling RSI indicator. The link to the S&C mag is: http://www.traders.com/D...FEEDbk_docs/content.html I was wondering if someone could post the jist of the article with comparison to some work I started and posted in 2004: http://www.paritech.com....rint_topic;f=26;t=000004 wabbit :D
Patrick  
#2 Posted : Friday, January 13, 2006 3:24:33 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
Wow :eek: I'm checking this as soon as I get in the office ... Don't tell anyone I'm late this morning :lol: Patrick :mrgreen:
Patrick  
#3 Posted : Friday, January 13, 2006 4:43:28 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
David Sepiashvili’s article, “The Self-Adjusting RSI,” describes two methods of adjusting the width of the overbought and oversold bands for the RSI. Both of these methods have been incorporated into a single MetaStock indicator. This formula will prompt for the length of the RSI, the constants used to calculate the bands, and the method to calculate the bands. To enter this indicator into MetaStock: 1. In the Tools menu, select Indicator Builder. 2. Click New to open the Indicator Editor for a new indicator. 3. Type the name of the formula. 4. Click in the larger window and type in the following formula. [code:1:4a857e22c7]Name: Self-Adjusting RSI Formula: 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[/code:1:4a857e22c7] 5. Click Ok to close the Indicator Editor. William Golson Equis International
Patrick  
#4 Posted : Friday, January 13, 2006 4:45:11 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
Not nearly as fancy as yours ... :)
StorkBite  
#5 Posted : Friday, January 13, 2006 6:03:48 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Way to go Wabbit!!!!!
Jose  
#6 Posted : Saturday, January 14, 2006 12:00:41 AM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
I'd like to know a better way of determining automatic overbought/sold levels than the one below (automatic RSI peak/trough boundaries code section): ;) [code:1:aa3d085afe] MetaStock -> Tools -> Indicator Builder -> New -> Copy & paste formula below. =========================== RSI, sine-weighted smoothed =========================== ---8<-------------------------------- { Smoothed RSI indicator v1.1 } { Internal sine-weighted smoothing } { Automatic historically-valid RSI peak/trough boundaries} { Boundary crossover signals: +1=Long, -1=Short} { ©Copyright 2004 Jose Silva } { http://www.metastocktools.com } { user input } pds:=1/Input("RSI periods",1,2520,10); plot:=Input("plot: [1]-RSI, [2]-Long/Short signals",1,2,1); { RSI up/down average components } x:=If(C>Ref(C,-1),C-Ref(C,-1),0); y:=If(C<Ref(C,-1),Ref(C,-1)-C,0); up:=PREV*(1-pds)+x*pds; dw:=PREV*(1-pds)+y*pds; { sine-weighted internal smoothing } s1:=Sin(30)*up; s2:=Sin(60)*Ref(up,-1); s3:=Sin(90)*Ref(up,-2); s4:=Sin(60)*Ref(up,-3); s5:=Sin(30)*Ref(up,-4); up:=(s1+s2+s3+s4+s5)/(Sin(30)*2+Sin(60)*2 +Sin(90)); S1:=Sin(30)*dw; S2:=Sin(60)*Ref(dw,-1); S3:=Sin(90)*Ref(dw,-2); S4:=Sin(60)*Ref(dw,-3); S5:=Sin(30)*Ref(dw,-4); dw:=(s1+s2+s3+s4+s5)/(Sin(30)*2+Sin(60)*2 +Sin(90)); { RSI indicator } dw:=If(dw=0,.000001,dw); RS:=100-100/(1+up/dw); { automatic RSI peak/trough boundaries } pk:=Ref(RS,-1)>Ref(RS,-2) AND Ref(RS,-1)>RS AND Alert(Ref(C,-1)>Ref(C,-2) AND Ref(C,-1)>C,2) {AND Ref(RS,-1)>50}; pkVal:=ValueWhen(1,pk,Ref(RS,-1)); pkAvg:=Cum(pkVal)/Cum(pkVal>-1); tr:=Ref(RS,-1)<Ref(RS,-2) AND Ref(RS,-1)<RS AND Alert(Ref(C,-1)<Ref(C,-2) AND Ref(C,-1)<C,2) {AND Ref(RS,-1)<50}; trVal:=ValueWhen(1,tr,Ref(RS,-1)); trAvg:=Cum(trVal)/Cum(trVal>-1); { RSI peak/trough boundary cross signals } up:=Cross(trAvg,RS); dw:=Cross(RS,pkAvg); signals:=up-dw; { alternative RSI peak/trough signals } {up:=Ref(RS,-1)<Ref(RS,-2) AND Ref(RS,-1)<RS AND Ref(RS,-1)<trAvg; dw:=Ref(RS,-1)>Ref(RS,-2) AND Ref(RS,-1)>RS AND Ref(RS,-1)>pkAvg; signals:=up-dw;} { plot } If(plot=1,pkAvg,0); If(plot=1,trAvg,0); If(plot=1,RS,signals) ---8<-------------------------------- [/code:1:aa3d085afe] jose '-)
hayseed  
#7 Posted : Saturday, January 14, 2006 1:53:41 AM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

not sure who's is what and which is better but it is interesting playing with the settings..... threw in some wabbit signals, hope the author doesn't mind.....h
{from David Sepiashvili’s article, “The Self-Adjusting RSI,” , [color=violet:618f8deedf]with a few extra lines[/color]} x:=Input("number of periods for RSI",1,2000,14); k1:=Input("standard deviation constant",0.1,5,2); c1:=Input("SMA constant",0.1,5,2); m1:=Input("method <1=SD/2=SMA>",1,2,2); plot:=Input("plot: [1]-RSI, [2]wabbit signals",1,2,2); 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 top bottom cross signals } up:=Cross(top,RSI(x)); dw:=Cross(RSI(x),bottom); signals:=up-dw; If(plot=1,RSI(x),0); If(plot=1,top,0); If(plot=1,bottom,0); If(plot=2,signals,0)
*********** just noticed i had the buy/sells on wrong side of the cross, changed it.....h ******************
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.