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

[amibroker] Re: Plot Daily EMA on Intraday Chart



PureBytes Links

Trading Reference Links



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@xxxx> 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.





------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/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/