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

Notification

Icon
Error

2 Pages<12
Options
Go to last post Go to first unread
Patrick  
#21 Posted : Tuesday, November 23, 2004 7:46:21 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
To make it Dema smoothed we could try something like : N1:=8; TN8:=Mov(C,N1,E); S8:=((n1-1)/2)* C+((n1-3)/2)* Ref(C,-1)+((n1-5)/2)* Ref(C,-2)+((n1-7)/2)* Ref(C,-3)+((n1-9)/2)* Ref(C,-4)+((n1-11)/2)* Ref(C,-5)+((n1-13)/2)* Ref(C,-6)+((n1-15)/2)* Ref(C,-7); MMA8:=TN8+(6*S8)/((n1+1)*n1); N2:=17; TN17:=Mov(C,N2,E); S17:=((n2-1)/2)* C+((n2-3)/2)* Ref(C,-1)+((n2-5)/2)* Ref(C,-2)+((n2-7)/2)* Ref(C,-3)+((n2-9)/2)* Ref(C,-4)+((n2-11)/2)* Ref(C,-5)+((n2-13)/2)* Ref(C,-6)+((n2-15)/2)* Ref(C,-7)+((n2-17)/2)* Ref(C,-8)+((n2-19)/2)* Ref(C,-9)+((n2-21)/2)* Ref(C,-10)+((n2-23)/2)* Ref(C,-11)+((n2-25)/2)* Ref(C,-12)+((n2-27)/2)* Ref(C,-13)+((n2-29)/2)* Ref(C,-14)+((n2-31)/2)* Ref(C,-15)+((n2-33)/2)* Ref(C,-16); MMA17:=TN17+(6*S17)/((n2+1)*n2); VALUE:=MMA8-MMA17 ; DEMA(VALUE,21)
carriolan  
#22 Posted : Tuesday, November 23, 2004 7:51:42 PM(UTC)
carriolan

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/28/2004(UTC)
Posts: 9

Patrick If I replace the MOV function with the DEMA function, will it achieve the end I'm looking for? i.e. a DEMA smoothed MACD using modified MA's -- Carriolan
Patrick  
#23 Posted : Tuesday, November 23, 2004 7:56:02 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
I don't really know here. There is several ways to look at it. Create the Modified MACD with DEMA or only use DEMA in the last line of CODE or both. Though the way you describe the formula in your original post, I believe, dema should only be applied at the end.
pumrysh  
#24 Posted : Tuesday, November 23, 2004 8:08:13 PM(UTC)
pumrysh

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/28/2004(UTC)
Posts: 110

Carriolan, Patrick is correct. The zerolag was thrown in just to give you an idea about another smoothing method. The only way that I know of to verify your indicator is to compare the values to the original work if you can. The beauty of using and writing metastock code is that there are literally thousands of ways to write an indicator. A lot of what you will see is called smoke and mirrors, simply meaning that it looks nice but isn't necessary. The Dema moving average is a good example of this. As we can see it can be written in long hand or short hand. Its a great learning experience though. If there is a site where we can locate the original values let us know and we'll check out the values. Preston
Users browsing this topic
2 Pages<12
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.