PureBytes Links
Trading Reference Links
|
Ara, Thanks lot for your suggstion.
I changed the codes according to yours. But it still doesn't return
the right EMA.
Any comments are high appreciated.
fox97us
--- In amibroker@xxxxxxxxxxxxxxx, "Ara Kaloustian" <ara1@xxx> wrote:
>
> You are using Ind_EMA for the copmressed as well as the expanded
variables.
>
> Use:
> Daily_EMA= TimeFrameExpand(Ind_EMA, inDaily, expandLast);
>
> Also remove your "TimeFrameSet (in5Minute);".
>
> You don't need it.
>
>
> ----- Original Message -----
> From: "fox97us" <dec2003@xxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Thursday, May 25, 2006 8:12 PM
> Subject: [amibroker] what's wrong with the codes? ---compare to
index's
> daily EMA
>
>
> 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
>
>
> Yahoo! Groups Links
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Everything you need is one click away. Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/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/
|