Log in

How Japanese traders work w/ PFE ?

  • Public
Started by jaguar1637 1855 days ago

How Japanese traders work w/ PFE ?

Fisrt of all, they create the PFE like this : 

 / * Polarized Fractal Efficiency (PFE) Indicator * /
 / * # Property copyright "fx_scientist" * /
 / * # Property link "http://www.geocities.jp/fx_scientist/index.html" * /

 indicator PFE;
 input period = 10, smooth = 5;

 draw line ("PFE");
 vars i (number), j (number), numerator (number), denominator (number), sign (number), pfe_raw (series);

 begin
    if period <1 then return;
    if smooth <1 then return;
    for i: = front (close) + period to back (close) do begin
       numerator: = sqrt (pow (close [i] - close [i-period], 2) + pow (period, 2));
       denominator: = 0;
       for j: = 1 to period do
          denominator: = denominator + sqrt (pow (close [i-j +1] - close [ij], 2) + 1);

       if close [i]> close [i-period] then sign: = 1 else sign: = -1;

       pfe_raw [i]: = 100 * sign * numerator / denominator;
    end;

    line: = ema (pfe_raw, smooth);
 end.