View Single Post
  #9 (permalink)  
Old 03-22-2007, 09:20 PM
Malcik's Avatar
Malcik Malcik is offline
Senior Member
 
Join Date: Nov 2006
Location: Pilsen, Czech Republic
Posts: 150
Malcik is on a distinguished road
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!
Attached Images
File Type: gif pfe.GIF (13.0 KB, 343 views)
Attached Files
File Type: mq4 Polarized Fractal Efficiency.mq4 (3.0 KB, 127 views)
__________________
Malcik
Reply With Quote