PureBytes Links
Trading Reference Links
|
Keith,
Foreign() removes or pads quotes to match each bar for foreign-data
with the data of CURRENTLY SELECTED symbol.
Apparently you have data holes in either currently selected symbol or COMPQX.
That causes the difference.
Use Tools->Database Purify tool to find out.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "Keith Bennett" <kbennett@xxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, June 06, 2003 1:53 PM
Subject: [amibroker] OBV Indicator
> Hi,
>
> Is there a reason why these two plots, although close, are not
> identical?
>
> //Calculated OBV
> Clobv = Foreign("COMPQX","C");
> Opobv = Foreign("COMPQX","O");
> Vobv = Foreign("COMPQX","V");
> MyOBV = Cum(IIf(Clobv > Opobv,Vobv, IIf(Clobv < Opobv,Vobv*-1,0)));
> Plot(MyOBV,"My OBV",5,styleOwnScale);
>
> //AB OBV Indicator (with COMPQX displayed in main chart window)
> Plot(OBV(),"OBV",4,1);
>
> Is there an error in my formula?
>
> Keith
>
>
>
>
>
> 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 ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/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/
|