Try this

SetForeign("compx");
IndDayOpen = TimeFrameGetPrice("O",inDaily,0);
RestorePriceArrays();


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm



On 24/05/06, fox97us <[EMAIL PROTECTED]> wrote:
> I have an intraday database of 5 min intervals.  When I do stock
> calculation, I like to know the index performance. How can I get the
> value of (Today's index open / index's close price of current 5 min)?
>
> I can use the following to get the close price of the index. But how
> can I get the today's open price of the index? I tried TimeFrameGetPrice
> ( ) and settimeframe to daily, but both return the open of the 5-min
> bar instead of the open of today. I must did something wrong.
>
> IndCurrentBarClose =Foreign("compx","close",fixup=0);
>
> Thanks a lot
>
> Fox97us
>
>
>
>
>
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS




Reply via email to