PFE is now available in Qcom, will update QStudio and the open source project shortly. Of note, I added some static methods to the core TimeSeries to make it much easier to code indicators. More will come as needed, but here's the code for PFE (this won't work in QStudio until the next Q152 update).

```
//populate
public override void Populate()
{
TimeSeries source = Parameters[0].AsTimeSeries;
int period = Parameters[1].AsInt;
int smoothing = Parameters[2].AsInt;
TimeSeries pfe = Sqrt(Pow(source - (source >> period), 2.0) + 100.0);
TimeSeries c2c = Sum(Sqrt(Pow(source - (source >> 1), 2.0) + 1.0), period);
TimeSeries xFrac = BooleanTest(source - (source >> period), Round(pfe / c2c * 100.0), Round(pfe / c2c * -100.0));
TimeSeries ema = EMA.Series(xFrac, smoothing);
Values = ema.Values;
}
```

PFE is now available in Qcom, will update QStudio and the open source project shortly. Of note, I added some static methods to the core TimeSeries to make it much easier to code indicators. More will come as needed, but here's the code for PFE (this won't work in QStudio until the next Q152 update).
[CODE]
//populate
public override void Populate()
{
TimeSeries source = Parameters[0].AsTimeSeries;
int period = Parameters[1].AsInt;
int smoothing = Parameters[2].AsInt;
TimeSeries pfe = Sqrt(Pow(source - (source >> period), 2.0) + 100.0);
TimeSeries c2c = Sum(Sqrt(Pow(source - (source >> 1), 2.0) + 1.0), period);
TimeSeries xFrac = BooleanTest(source - (source >> period), Round(pfe / c2c * 100.0), Round(pfe / c2c * -100.0));
TimeSeries ema = EMA.Series(xFrac, smoothing);
Values = ema.Values;
}
[/CODE]