[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] Re: RSI and Stochastic Look Ahead Formula



PureBytes Links

Trading Reference Links

--- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx> 
wrote:
> 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


Roy,
The current volatility of the SP500 measured in hourly basis  
demonstrate a higher volatility occurs during the first two and last 
two hours of the day and GEORGES CORNER developed  the following 
system to take advantage of the various volatility  levels during the 
days:
* only initiate the trade between 2:30 and 3:30 eastern.
*at 2:30 place a buy stop at the high of the day plus one tick and 
place a sell stop at the low of the day minus one tick.
*if one gets filled,then cancel the other.
*get the highest high and the lowest low of the last six 5 minutes 
bars every five minutes.
*once an entry has been triggered use the highes high/lowest low of 
the last six 5 minutes bars as your trailing stop.This stop will work 
as your protection and profit objective.

Overall the system performed admirably.He kept the draw down to less 
than $20,000.
TEST 7.50 years or 1887 trading days.
aver. net/year 14250$

Here is the TradeStation 7.1 Easy Language  Code for the system:

programmed by Georges Pruitt
vars:hh(0),II(999999);

if(date <> date [1]) then 
begin
    hh = 0;II = 999999;
end;


if(high > hh) then hh= high;
if(low< II)then II = low;

if(time >= 1430 and time < 1530)then
begin
if(entriestoday(date) = 0) then buy next bar at hh + 
minmove/priceScale stop;

if (entriestoday(date) = 0) then sellshort next bar at 11-
minmove/priceScale stop;
end;

buytocover next bar at  highest(high,6) +minmove/priceScale stop;

sell next bar at lowest(low,6)+ minmove/priceScale stop;

setexitonclose;

Roy can you program this code in Metastock and so  eveybody can take 
advantage of this system?

Thank you for the answer .




------------------------ 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/