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

[amibroker] How to get today's index open



PureBytes Links

Trading Reference Links

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







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/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/