PureBytes Links
Trading Reference Links
|
Try the following:
Vars: BSEntry(0),BSExit(0),RSI7(0);
BSEntry=BarsSinceEntry(1);
BSExit=BarsSinceExit(1);
RSI7=RSI(Close,7);
If Close>Highest(High,20)[1] then buy at close;
If Close<Lowest(Low,20)[1] then sell at close;
If Close<Lowest(Low,5)[1] then exitlong at close;
If Close>Highest(High,5)[1] then exitshort at close;
If MarketPosition=0 and MarketPosition(1)=1 and MRO(RSI7>70,BSEntry,1)>0 and
MRO(RSI7<50,BSExit,1)>0 then begin
If RSI7>Lowest(RSI7,BSExit)+20 then buy at close;
end;
Good luck.
-----Original Message-----
From: robert <robertr@xxxxxxxxxxxxx>
To: Omega-List <omega-list@xxxxxxxxxx>
Date: June 5, 1998 3:34 AM
Subject: EasyLanguage
>I'm a novice with regards to TS4 EasyLanguage who is requesting advice and
>help with
>some code.
>
>I wish to use a RSI(7) hook upwards to re-enter a bull market after being
>
>stopped out by a correction. I need to check that the bullmarket took the
>
>RSI(7) above 70 then below 50 (during the correction). I re-enter long
after
>
>the RSI(7) hooks upwards by =>20 from its lowest point of the correction.
>
>Thankyou for any help you can offer.
>
>What would be the most useful book(s) to purchase if a novice wanted to
>become proficient in EasyLanguage?
>
>
>
>
>
|