PureBytes Links
Trading Reference Links
|
Arenzo
Try These.
ATR Long:
day1:= Input("Enter Trough Date -
mmddyy",010100,123199,010101);TMonth:= Int(day1/10000);TDay:=
Int(day1/100) - (TMonth*100) ;TYear:= If(Mod(day1,100)>30,
1900+Mod(day1,100), 2000+Mod(day1,100));Fill:=Input("Enter Fill
Price",0,10000,1);Mult:=Input("Daily ATR Multiplier",0,10,.05);
Bars:=Cum(Cum(Year()=tyear AND Month()=tmonth AND
DayOfMonth()=tday));
<FONT face=Verdana
size=2>Accel:=Bars*Mult;Ratchet:=LLV(L,10)+(Accel*ATR(5));ATRSTOP:=ValueWhen(1,Bars=1,LLV(L-
(3*ATR(10)),10));Profit:=CLOSE>=Fill+ATR(5) OR
CLOSE>=Fill+(Fill*.05);
ATRRATCHET:=If(profit=1, If(Ratchet<PREV,PREV,
Ratchet), If(Bars>1 AND ATRSTOP<PREV,PREV,ATRSTOP));
HighestSince(1,Bars=1,ATRRATCHET)
ATR Short:
day1:= Input("Enter Peak Date -
mmddyy",010100,123199,010101);TMonth:= Int(day1/10000);TDay:=
Int(day1/100) - (TMonth*100) ;TYear:= If(Mod(day1,100)>30,
1900+Mod(day1,100), 2000+Mod(day1,100));Mult:=Input("Daily ATR
Multiplier",0,10,.05);
Bars:=Cum(Cum(Year()=tyear AND Month()=tmonth AND
DayOfMonth()=tday));Day:= (Year()=tyear AND Month()=tmonth AND
DayOfMonth()=tday);Fill:=ValueWhen( 1, day=1, Typical());
<FONT face=Verdana
size=2>Accel:=Bars*Mult;Ratchet:=HHV(H,10)-(Accel*ATR(5));ATRSTOP:=ValueWhen(1,Bars=1,HHV(H+
(3*ATR(10)),10));Profit:=CLOSE<=Fill-ATR(5) OR
CLOSE<=Fill-(Fill*.05);
ATRRATCHET:=If(profit=1, If(Ratchet>PREV,PREV,
Ratchet), If(Bars>1 AND ATRSTOP>PREV,PREV,ATRSTOP));Tm:=
Cum(Cum(Year()=tyear AND Month()=tmonth AND
DayOfMonth()=tday))+1;LowestSince(1,Bars=1,ATRRATCHET)
These are something I picked up, these formulae
are not mine.
DusantChief Architect<A
href="">http://www.candlestrength.com/
----- Original Message -----
From: "arenzo2" <<A
href=""><FONT face=Verdana
size=2>arenzo2@xxxxxxxxxxx>
To: <<A
href=""><FONT face=Verdana
size=2>equismetastock@xxxxxxxxxxxxxxx<FONT face=Verdana
size=2>>
Sent: Thursday, April 22, 2004 5:59
PM
Subject: [EquisMetaStock Group] Trailing
stop
<FONT face=Verdana
size=2>> Hi,> I would like to have a simple exit signal based for
example on > close - ATR, for long entry, but I would like
that the formula can > only give higher values (without declining) until
price hit the > value (exit signal).> > Could someone
please suggest I could program it ?> > Many thanks>
> Renato > > > > >
> Yahoo! Groups Links> > <*> To visit your
group on the web, go to:> <A
href=""><FONT face=Verdana
size=2>http://groups.yahoo.com/group/equismetastock/<FONT
face=Verdana size=2>> > <*> To unsubscribe from this group, send
an email to:> <A
href=""><FONT face=Verdana
size=2>equismetastock-unsubscribe@xxxxxxxxxxxxxxx<FONT
face=Verdana size=2>> > <*> Your use of Yahoo! Groups is subject
to:> <A
href=""><FONT face=Verdana
size=2>http://docs.yahoo.com/info/terms/<FONT face=Verdana
size=2>> > >
Yahoo! Groups Sponsor
ADVERTISEMENT
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/equismetastock/
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.
|