
11-09-2008, 07:47 PM
|
|
Senior Member
|
|
Join Date: Jan 2007
Location: not so remote
Posts: 3,271
|
|
Quote:
Originally Posted by Malcik
Hi, I figured I would use this indicator too  I attempted to convert it to MT4 from VTrader... here's the original code:
Code:
_pfe:= Mov(If(pr>Ref(pr,-length),sqrt(Power(Roc(pr,length,Points),2) + Power(10,2)) /
Sum(Sqrt(Power(Roc(pr,1,Points),2)+1),length),-
Sqrt(Power(Roc(pr,length,Points),2) + Power(10,2)) /
Sum(Sqrt(Power(Roc(pr,1,Points),2)+1),length))*100,smooth,E);
And the MT4 version is in the attachment. However, it doesn't look like the original one (check the picture), the original one is smoother. Plus, I had to put a fixed period because when it was a variable, it always returned zero.
I'm a bad programmer, so I ask anyone willing to help to check the MT4 code and correct the errors, generally it should be somewhat right.
And, as you can see from the picture, it's worth it to have this indicator in MT4, very useful, so do it for your own good
Thanks!
|
PolarizedFractaEfficiency.mq4
Developed by Hans Hannula TASC 12:1 "Polarized fractal Efficiency"
this should be good
|