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

Re: [amibroker] Re: Plot Daily EMA on Intraday Chart



PureBytes Links

Trading Reference Links

oh maybe you have an older version running. Not completely sure but I think you need version 4.7 to run that function,
 
rgds, Ed
 
 
----- Original Message -----
Sent: Friday, April 15, 2005 8:51 PM
Subject: [amibroker] Re: Plot Daily EMA on Intraday Chart



Many Thanks Ed - that works but I had to "rem out" one of the lines
due to syntax error

SetChartOptions(0, chartShowDates);

For some reason the above line didn't work ?


Best Regards,


Dean H


--- In amibroker@xxxxxxxxxxxxxxx, "ed nl" <ed2000nl@x...> wrote:
> hi,
>
> below a way to do this,
>
> rgds, Ed
>
>
> // set timeframe
> TimeFrameSet( inDaily );
>
> // your 10 day EMA function
> emaDaily = EMA(C,10);
>
> // restore to current time frame
> TimeFrameRestore();
>
> // expand arrays
> emaDailyExpanded = TimeFrameExpand( emaDaily, inDaily,mode =
expandFirst  );
>
> // Plot your charts
> SetChartOptions(0, chartShowDates);
> Plot(C,"Intraday data",colorWhite,64);
> Plot(emaDailyExpanded,"Daily EMA",colorBlue,1);
>
>   ----- Original Message -----
>   From: Dean Hodgins
>   To: amibroker@xxxxxxxxxxxxxxx
>   Sent: Friday, April 15, 2005 8:22 PM
>   Subject: [amibroker] Plot Daily EMA on Intraday Chart
>
>
>
>   Easy one for someone with better grasp of AFL code than I have.
>
>   How would one plot/graph a 10 Day EMA (based on daily close
values) on
>   an intraday (say 5 minute) chart?
>
>   I know you can reference daily close values by using
>   the "TimeFrameGetPrice( "C", inDaily, -1 );" afl code but I'm not
>   certain how to plot a daily EMA line on an intrday chart.
>
>   Any help or suggestions much appreciated.
>
>
>   Thanks & Regards,
>
>
>   Dean H. 
>
>
>
>
>
>
>   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
>
>     a.. To visit your group on the web, go to:
>     http://groups.yahoo.com/group/amibroker/
>      
>     b.. To unsubscribe from this group, send an email to:
>     amibroker-unsubscribe@xxxxxxxxxxxxxxx
>      
>     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.





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





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