PureBytes Links
Trading Reference Links
|
Dave,
Yes Avg is additional built-in array (described in AmiBroker Reference guide).
I admit that I should mention that CCI uses built-in Avg array internally.
And I have now just added appropriate note to:
http://www.amibroker.com/guide/afl/afl_view.php?id=29
Hope this helps.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "Dave Merrill" <dmerrill@xxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, September 03, 2003 1:24 AM
Subject: RE: [amibroker] optimizing trades based on a foreign CCI not working as expected
> got it, thanks. I didn't know there was a separate Avg array, independant of
> OHLC. none of the examples I remember seeing that saved off the current
> ticker and restored it did anything with it.
>
> it's probably documented though; I confess to not having read all available
> materials covere to cover (:-)
>
> thanks again,
>
> dave
>
> > CCI uses AVERAGE price (Avg) (not close, high, low, etc).
> >
> > One would need to write either:
> >
> > Avg = ( Foreign("!VIX", "H") + Foreign("!VIX", "L") +
> > Foreign("!VIX", "C") ) / 3; // overwrite Avg !!
> > cc = CCI(period);
> >
> > or write:
> >
> > cc = CCIa( ( Foreign("!VIX", "H") + Foreign("!VIX", "L") +
> > Foreign("!VIX", "C") ) / 3, period );
> >
> >
> > Hope this helps.
> >
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
>
>
>
> 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/
|