Rank: Newbie
Groups: Registered, Registered Users Joined: 4/4/2005(UTC) Posts: 6
|
Can I get help here with a formula to use in the system tester?
What I want to do is test a moving average plotted along with a moving average of the first moving average. For example, I'd like to test a 16-day moving average and a 12-day moving average of the 16-day MA.
Does this make sense?
|
|
|
|
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)
|
SixPak
This is what a 12 bar MA of a 16 bar MA looks like. Change S to E if you want EMAs
Mov(Mov(C,16,S),12,S);
What this is doing is using one moving average as the data array for the second MA.
Hope this helps. You question is a little thin on specifics so how you organise the rest of your code is up to you.
Roy
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 4/4/2005(UTC) Posts: 6
|
mstt wrote:SixPak
This is what a 12 bar MA of a 16 bar MA looks like. Change S to E if you want EMAs
Mov(Mov(C,16,S),12,S);
What this is doing is using one moving average as the data array for the second MA.
Hope this helps. You question is a little thin on specifics so how you organise the rest of your code is up to you.
Roy
Thanks very much. I use this to time the trends. I take a particular security and run the system tester against it with variables in the formula for different length MA's. It keeps me from riding things down and missing up trends. Thanks very much for the help.
Dav
|
|
|
|
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.