Hello,

   I have an intraday database composed of 5-min data. I lilke to
know index's EMA (15 days) for each stock. For example, today is
5/25/06, for each stock, I like to know the index's (INX in my case)
EMA of past 15 days (not including 5/25/06).

  The following are the codes I wrote. However, it does not return
the right number. What is wrong?

   Thank you very much!


william



TimeFrameSet (inDaily);


Ind_close=Foreign("INX","Close");


Ind_EMA=EMA(Ind_close,15);


TimeFrameRestore ();


TimeFrameSet (in5Minute);

Ind_EMA= TimeFrameExpand(Ind_EMA, inDaily, expandLast);

AddColumn(Ind_EMA, "Ind_EMA");

Filter=C>0;






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