PureBytes Links
Trading Reference Links
|
Ian
Thanks for your help!
Manie
-----Original Message-----
From: Ian Cunningham [mailto:cuncom@xxxxxxxxx]
Sent: Wednesday, January 30, 2002 5:40 PM
To: Manie Esterhuizen
Subject: Re: Penetration of high's and low's
Hello Manie,
This is how I would do it in TS4.
{First you need to capture the high or low with a flag.
Lets say the High or Low = highest/lowest of the past 20 bars}
Vars: X(0), Z(0), HH(999999), LL(-999999);
HH=Highest(High,20);
LL=Lowest(Low,20);
If High[1]= Highest(High, 20) then X=HH; {captures the high}
If Close > X then Plot1(L-10 points,"HiBO");
If Close > X then HH = 999999; {resets flag}
If Low[1]=Lowest(Low,20) then Z=LL; {captures Low}
If Close < Z then Plot2(H+10 points,"LoBO");
If Close < Z then LL = -999999; {resets flag}
Wednesday, January 30, 2002, 8:18:19 AM, you wrote:
ME> I'm want to write code for an indicator for use on intraday data to show
ME> penetration of previous low points in a down trend, and previous high
points
ME> in an up trend. Any suggestions?
ME> Manie
--
Best regards,
Ian mailto:cuncom@xxxxxxxxx
|