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

Re: EasyLanguage Question about weekly EMA overlay on Daily Chart....



PureBytes Links

Trading Reference Links

>I have a question that I hope someone on this list can answer.  I’m
>trying to calculate a 26 WEEK EMA while using a daily chart but I can’t

For an EMA, the best thing is simply to use the daily chart.  If you
want a 26-week EMA, that's 130 daily bars, so use xAverage(Close, 130);

>seem to figure out how to do it correctly. I’ve tried putting a weekly
>chart up in DATA2 and using the following syntax:
> 
>Value1 = XAverage(Close of data2,26);

This won't work because XAverage will still be evaluated every daily
bar, using your weekly bars.  So you're actually using just the last
5 weekly bars, multiple times on each bar.

-- 
  ,|___    Alex Matulich -- alex@xxxxxxxxxxxxxx
 // +__>   Director of Research and Development
 //  \ 
 // __)    Unicorn Research Corporation -- http://unicorn.us.com