Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Looking through the September 2005 issue of TASC, pp. 16-22: Two Moving Function Hybrids and wondering if this is a correct MSFL interpretation of the Moving Slope ROC indicator described.
{Moving Slope ROC}
periods:=Input("Time Periods",1,100,25);
a:=LinRegSlope(C,periods);
b:=ROC(a,periods,points);
a;b;0;
|
|
|
|
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)
|
Well g your formula is correct, however the author suggest that you divide your final result by the number of periods used so that you can compare the value of your indicator on security X with the value of the indicator on security Y ... So while the indicator you posted plots exacly the same as the one I will post it is important to note the scale difference ...
periods:=Input("Time Periods",1,100,25);
LINV:=LinRegSlope(C,periods);
ROCV:=ROC(LINV,periods,$);
ROCV/periods
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Of course you're right. I understand exactly what you did... I just did not take that last step because I wasn't 100% sure of the first part. Anyway, thanks for taking the time to look it over. :D
|
|
|
|
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.