logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Andrew7267  
#1 Posted : Saturday, April 18, 2015 1:52:16 PM(UTC)
Andrew7267

Rank: Newbie

Groups: Registered, Registered Users, Unverified Users
Joined: 11/30/2013(UTC)
Posts: 5
Location: Tasmania - Australia

So if I paste the code below in Bullish section of Trends in Expert Advisor I get a ribbon to make it easy to spot when the EMA is rising or falling.

How can I specify for it to calculate using WEEKLY data so I can have the weekly ribbon at the bottom of my daily chart?

 Mov(C,26,E)>Ref(Mov(C,26,E),-1)

 

Cheers,

Andrew

 

mstt  
#2 Posted : Saturday, April 18, 2015 9:38:11 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi Andrew The most accurate way to do this would be use a Multi-Frame EMA set to weekly periodicity. Because an EMA uses fragments of ALL past data, not just the nominal look-back range, you would need to have significantly more data loaded than just the 26 weeks (or whatever weekly range you plan to use). Typically you need 4 to 5 times as much data as that specified by the Periods parameter (2 to 2.5 years in fact) in order to get an accurate 26 week EMA. This same situation applies to any other MetaStock function that uses an EMA ( or EMA variant such as Wilders() ) for its internal calculation. Private message me if you would like a Multi-Frame EMA formula to set up your expert. Of course there are also other ways of simulating weekly values on daily charts, but none that I know of that are quite as accurate (assuming sufficient data is available). Roy
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.