PureBytes Links
Trading Reference Links
|
David
> I am sure there is a posting out there somewhere, but I haven't been
> able to find it and would appreciate any help for the following.
> I would like to have a ( long only )stop loss indicator that starts
> on a date to be input, takes a % ( to be input)of the LLV from then
> on, only going higher, never lower. My coding skills are limited and
> any assistance would be much appreciated. Thanks, David.
There are many different trailing stops around. I've created this one which
I meets what I understand are your requirements. I'm sure when you look at
it you'll find something about it that you want to change or that isn't
write. Keep looking through the archives for trailing stops, and take the
time to try and learn how they function. Sometimes simple is good, sometimes
it's bad.
{Date Triggered Trailing Stop}
Sm:=Input("Start Month",1,12,6);
Sd:=Input("Start Day" ,1,31,30);
Sy:=Input("Start Year" ,1980,2004,2003);
Lb:=Input("Look back periods",1,20,5);
Pc:=Input("LLV percentage" ,1,20,5)/100;
Start:=(DayOfMonth()>=Sd AND Month()=Sm AND
Year()=Sy) OR Year()>Sy OR (Year()=Sy AND
Month()>Sm);
Start:=Start AND Alert(Start=0,2);
HHlow:=LLV(L,Lb)*(1-Pc);
Trail:=HighestSince(1,Start,HHlow);
Trail;
Roy
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/I3w.vC/hP.FAA/3jkFAA/zMEolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|