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

[RT] Gen - 1st hour breakout signal



PureBytes Links

Trading Reference Links

Here is some free signal code from w.moneymentor.com.  It is supposed to
trade the first hour high and low levels and it uses 3 data series.  Can't
seem to make it do anything though.  Looks like daily data would be in
data3, hourly in data2 and something  shorter in data1.  Can anyone figure
this signal out and how the data is supposed to be set up?

thanks,
bobr
=========================================================

{1st hour breakout signal}
Vars:  Sess1firstBarDate(0,Data2), Sess1FirstBarHigh(0,Data2),
Sess1FirstBarLow(0,data2), AveDayRange(0,data3);

Input:  RanLn(10);

AvedayRange = Average((H[0] of Data3 - L[0] of Data3),RanLn) of data3;

If (time of data2 = Sess1FirstBarTime of data2) or (date[0] Data2 > Date[1]
of data2) then begin
 Sess1FirstBarDate = Date[0] of Data2;
 Sess1FirstBarHigh = High[0] of data2;
 Sess1FirstBarLow = low[0] of Data2;
end;

If (Sess1firstBarDate = Date of Data2) and (Time of Data2 < Sess1EndTime of
Data2) then begin
 Condition1 = C[1] < Sess1FirstBarHigh[0];
 If Condition1 then Buy at Sess1FirstBarHigh[0] + 20 points stop;
 Condition2 = close[1] > Sess1FirstBarLow[0];
 If Condition2 then sell at Sess1FirstBarLow - 20 points stop;
end;

Value1 = Sess1FirstBarHigh[0] - Avedayrange;
Value2 = Sess1FirstBarLow[0] + Avedayrange;

If low[0] <= Value1 then Exitshort at Market;

If high[0] >= Value2 then Exitlong at market;



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Stock for $4
and no minimums.
FREE Money 2002.
http://us.click.yahoo.com/orkH0C/n97DAA/ySSFAA/zMEolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
realtraders-unsubscribe@xxxxxxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/