[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] How to get today's index open



PureBytes Links

Trading Reference Links

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 <dec2003@xxxxxxxxx> 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
>
>
>
>
>
>
>
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/