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

[amibroker] what's wrong with the codes? ---compare to index's daily EMA



PureBytes Links

Trading Reference Links

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;






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/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/