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

RE: [amibroker] Elder Safe Zone Stop



PureBytes Links

Trading Reference Links

Is this what you are looking for?
Coeff = 3 ;//make this what you want
Falls = iif( L<ref(L,-1), ref(L,-1) - L, 0 ) ;
Count = cum( L<ref(L,-1) ) ;
AvFall = Falls / Count ;
Exit = HHV(H,5) - Coeff * AvFall ;//assume the fall below recent highest
high after buy signal

Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia


-----Original Message-----
From: sloughbridge [mailto:sloughbridge@xxxxxxxxx] 
Sent: Tuesday, 23 September 2003 5:24 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Elder Safe Zone Stop


Has anybody done this in AFL?

When L < Ref(L,-1) I want to average those differences with either an 
MA or a lookback.  Can't get it.

The stop is a coefficient * the average difference beneath current 
lows.

Thanks for any help!




------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy
Remanufactured Ink Cartridges & Refill Kits at MyInks.com for: HP $8-20.
Epson $3-9, Canon $5-15, Lexmark $4-17. Free s/h over $50 (US & Canada).
http://www.c1tracking.com/l.asp?cid=6351
http://us.click.yahoo.com/0zJuRD/6CvGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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


------------------------ Yahoo! Groups Sponsor ---------------------~-->
ReplayTV: Control live television
Special Sale: 50% off ReplayTV
CNet Ranked #1 over Tivo!
http://us.click.yahoo.com/aUMW7B/A6qGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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