PureBytes Links
Trading Reference Links
|
Marshall
'cucu' from Turkey supplied this on the StockCentral forum as an RSI
lookahead formula. All the credit is his.
valuemid:=Input("RSI Value Mid",1,100,50);
wildpermid:=Input("Wilder Time Periods
Mid",1,100,8);
exppermid:=2*wildpermid-1;
{Average Up Close-Mid};
aucmid:=Mov(If(C>Ref(C,-1),C-Ref(C,-1),0),exppermid,E);
{Average Down Close-Mid};
adcmid:=Mov(If(Ref(C,-1)>C,Ref(C,-1)-C,0),exppermid,E);
xmid:=(wildpermid-1)*(adcmid*valuemid/(100-valuemid)-aucmid);
revengrsimid:=If(xmid>=0,C+xmid,C+xmid*(100-valuemid)/valuemid)
revengrsimid;
I tweaked it a bit to conform to my own style but my version is functionally
identical the the one above.
{RSI Price Lookahead}
R:=Input("RSI Threshold",1,100,50);
D:=Input("RSI Periods ",1,100,10);
K:=Ref(C,-1);
Up:=Wilders(If(C>K,C-K,0),D);
Dn:=Wilders(If(K>C,K-C,0),D);
X:=(D-1)*(Dn*R/(100-R)-Up);
If(X>=0,C+X,C+X*(100-R)/R);
The object of this as an indicator is that an RSI periods and threshold
value can be set, and then the last bar of the indicator will plot the next
CLOSE that is necessary for the RSI to plot the threshold value. Changing
the last line to
LastValue(revengrsimid); or
LastValue(If(X>=0,C+X,C+X*(100-R)/R));
in the relevant indicator will plot a straight line at the required CLOSE.
Roy
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/BefplB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|