PureBytes Links
Trading Reference Links
|
If you have enough concurrent days of nil price movement then for alfs that
use H-ref(h,-1) or similar you will end up with either zero or infinity.
You will need to assign a value for these occasions to the part of code
Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia
-----Original Message-----
From: jgholson [mailto:jgholson@xxxxxxxxx]
Sent: Friday, 24 October 2003 6:47 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] blank indicator
Below is my code for the SafeZone Short Stop. I realize others have
posted their code, but this one works well for me. My problem is
that I noticed the last few days the the stop line is <EMPTY> for the
Dec Eurodollar Futures. I have noticed this from time to time in
other futures contracts, but after 5 or 6 sessions the lines
magically reappear. Any reason why? Is there a flaw in my ALF?
Here's the code:
// SafeZone Stop
SPeriod = 10; SCoeff = 2; SHolding = 5;
ADP = Sum(IIf(H>Ref(H,-1),H-Ref(H,-1),0),SPeriod)/Sum(IIf(H>Ref(H,-
1),1,0),SPeriod);
SFShortStop = High + (SCoeff * Ref(ADP,-1));
SafeZone = LLV(SFShortStop, SHolding);
Plot(Close,"",1,64);
Plot(SafeZone,"SafeZone Short Stop",colorRed,styleLine);
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 ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/Tq9otC/XP.FAA/3jkFAA/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/
|