PureBytes Links
Trading Reference Links
|
This appears to happen when you divide by zero, i.e when C doen't change for
a few bars.
If you place this code before the DEMA it will work:
FibCMO = Nz(FibCMO );
Plot before and after to see the recursive drag/inertia:
Plot(FibCMO,"",1,1);
Plot(DEMA(FibCMO,11),"",4,1);
FibCMO = Nz(FibCMO );
Plot(DEMA(FibCMO,11),"",7,1);
h
-----Original Message-----
From: Yuki Taga [mailto:yukitaga@xxxxxxxxxxxxx]
Sent: Sunday, August 24, 2003 5:23 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] FibCMO strangeness
Every once in a while the following formula:
Title="FibCMO";
FibCMO=(100*((Sum(IIf(C>Ref(C,-1),(C-Ref(C,-1)),0),3))-(Sum(IIf
(C<Ref(C,-1),(Ref(C,-1)-C),0),3)))/((Sum(IIf(C>Ref(C,-1),(C-Ref
(C,-1)),0),3)+(Sum(IIf(C<Ref(C,-1),(Ref(C,-1)-C),0),3))))+100*
((Sum(IIf(C>Ref(C,-1),(C-Ref(C,-1)),0),5))-(Sum(IIf
(C<Ref(C,-1),(Ref(C,-1)-C),0),5)))/((Sum(IIf(C>Ref(C,-1),(C-Ref
(C,-1)),0),5)+(Sum(IIf(C<Ref(C,-1),(Ref(C,-1)-C),0),5))))+100*
((Sum(IIf(C>Ref(C,-1),(C-Ref(C,-1)),0),8))-(Sum(IIf
(C<Ref(C,-1),(Ref(C,-1)-C),0),8)))/((Sum(IIf(C>Ref(C,-1),(C-Ref
(C,-1)),0),8)+(Sum(IIf(C<Ref(C,-1),(Ref(C,-1)-C),0),8)))))/3;
Plot(FibCMO,"",1,1);
Plot(TEMA(FibCMO,11),"",7,1);
PlotGrid(60, Color = colorDefault );
PlotGrid(-20, Color = colorDefault);
. . . produces what you see on the hard right edge of the screen
shot.
Can anyone suggest a remedy?
Yuki ^_^
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 ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/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/
|