Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 11/4/2010(UTC) Posts: 8
|
In the MS11 - Polarized Fractal Efficiency I found these formula:
Mov( If( C, >, Ref(C,-periods), Sqr(Pwr(ROC(C,periods,$),2) + Pwr(10,2)) / Sum(Sqr(Pwr(ROC(C,1,$),2)+1),periods), - Sqr(Pwr(ROC(C,periods,$),2) + Pwr(10,2)) / Sum(Sqr(Pwr(ROC(C,1,$),2)+1),periods) ) *100,5,E)
After splitting these formula there are 5 parameters in the if statement. In the help, there is only an if statement with three parameters described.
Any ideas?
pelumu
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
In the MS11 - Polarized Fractal Efficiency I found these formula:
Mov( If(C>Ref(C,-periods),{Condition} Sqr(Pwr(ROC(C,periods,$),2) + Pwr(10,2)) / Sum(Sqr(Pwr(ROC(C,1,$),2)+1),periods),{1st Result} - Sqr(Pwr(ROC(C,periods,$),2) + Pwr(10,2)) / Sum(Sqr(Pwr(ROC(C,1,$),2)+1),periods)){2nd Result} *100,5,E)
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 11/4/2010(UTC) Posts: 8
|
It seems, that we have different versions of MS11 and that it's possible, to split the condition in the if statement into three parameters.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
No, I broke down your if statement correctly.
If(condition is true , plot result1 , else plot result2);
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 11/4/2010(UTC) Posts: 8
|
Ok, that's correctly, but I do not unterstand the commas between C and > and Ref(C,-periods): ....If(C,>,Ref(C,-periods),S.....
|
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
I remember back in version 6.5 and earlier that metastock code was like that.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 11/4/2010(UTC) Posts: 8
|
That means, the first three parameters are the condition, which are in the newer versions one parameter.
Thank you.
|
|
|
|
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.