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

Notification

Icon
Error

Options
Go to last post Go to first unread
pelumu  
#1 Posted : Thursday, November 4, 2010 2:13:33 PM(UTC)
pelumu

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
henry1224  
#2 Posted : Thursday, November 4, 2010 3:09:18 PM(UTC)
henry1224

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)
pelumu  
#3 Posted : Friday, November 5, 2010 1:17:09 AM(UTC)
pelumu

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.
henry1224  
#4 Posted : Friday, November 5, 2010 5:01:30 AM(UTC)
henry1224

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);
pelumu  
#5 Posted : Friday, November 5, 2010 7:53:28 AM(UTC)
pelumu

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.....
><img src=
Back to top
henry1224  
#6 Posted : Friday, November 5, 2010 2:06:27 PM(UTC)
henry1224

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.
pelumu  
#7 Posted : Saturday, November 6, 2010 4:05:05 AM(UTC)
pelumu

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.