PureBytes Links
Trading Reference Links
|
Marshall
I didn't choose the thread heading and I've not made any contribution
anywhere to a stochastic lookahead formula. It seems to me that something
using H, L and C is going to be rather difficult to construct look-ahead
code for. I may be wrong but I think that there could be many possible price
variations for any projected stochastic value, not just the one as with the
RSI look-ahead.
Roy
----- Original Message -----
From: "M Smith" <msmith3@xxxxxxxxx>
To: <equismetastock@xxxxxxxxxxxxxxx>
Sent: Friday, December 05, 2003 8:42 AM
Subject: Re: [EquisMetaStock Group] RSI and Stochastic Look Ahead Formula
Roy, thanks for the response. Thanks to "CUCU" from Turkey for the initial
input. I see nothing pertaining to the Stoch. Is there a substitution or
another set of formulae? Marshall
-------Original Message-------
From: equismetastock@xxxxxxxxxxxxxxx
Date: Thursday, December 04, 2003 1:03:56 PM
To: equismetastock@xxxxxxxxxxxxxxx
Subject: Re: [EquisMetaStock Group] RSI and Stochastic Look Ahead Formula
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
ADVERTISEMENT
To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------------------------ 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/
|