BullCharts Forum Homepage
Forum Home Forum Home > BullCharts > BullScript
  New Posts New Posts RSS Feed: RSI
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

RSI

 Post Reply Post Reply
Author
Message Reverse Sort Order / View First Unread Post
jalna View Drop Down
Regular
Regular


Joined: 31 Mar 2007
Posts: 95
Post Options Post Options   Quote jalna Quote  Post ReplyReply Direct Link To This Post Topic: RSI
    Posted: 30 May 2009 at 10:06am
Wonderful, yet again, thanks Maximo.
Its a great quick visual
Back to Top
maximo View Drop Down
BullCharts Guru
BullCharts Guru
Avatar

Joined: 02 Sep 2006
Location: Australia
Posts: 232
Post Options Post Options   Quote maximo Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2009 at 12:50am

Yes that's not too hard.  See if this is what you're after.  MML is showing half completion.

{ Full RSI formula with areafill }

n := input("Time period",14,1);

nb:= n*2-1; {=wilder's smoothing }

Su:=Ma(If(C-Ref(C,-1) > 0, C-Ref(C,-1), 0),nb,E);

Sd:=Ma(If(C-Ref(C,-1) < 0, Ref(C,-1) - C, 0),nb,E);

rs:=100-100/(1 + (Su/sd));

rs;

rs1:=if(rs>=70,rs,70);rs2:=70;

rs3:=if(rs<=30,rs,30);rs4:=30;

[color=red; linestyle=dotted]

70;

[color=lime green]

30;

[name=RSI Top Fill; linestyle=fill; color=blue]

rs1; rs2;

[name=RSI Low Fill; linestyle=fill; color=blue]

rs3; rs4;



Edited by maximo - 30 May 2009 at 1:02am
Back to Top
jalna View Drop Down
Regular
Regular


Joined: 31 Mar 2007
Posts: 95
Post Options Post Options   Quote jalna Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2009 at 9:47pm
Hi, Can anyone write the code so the RSI fills in with a solid colour, in the overbought and oversold areas. I noticed a lot of USA chartists do this and it can make it easier to see as the charts flip through quickly. Perhaps this will be too hard. Not sure what happens when the o'bought area is half completed. It would have to have completed I suppose
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz