Click or drag to resize

Polarized Fractal Efficiency

The Polarized Fractal Efficiency (Pfe) indicator uses fractal geometry to determine how efficiently the price is moving. The indicator is used for calculation of how trendy or overloaded the price action is. Pfe below zero - means that the trend is down. Pfe above 0 - indicates that the trend is up. The higher the value of indicator, the more pronounced the upward movement. Value near zero points to a balance between demand and supply.

Market Signals

The buy signal is a reversal in the direction of the indicator and its movement from the minimum to zero. Signal to close the position occurs if the value of the indicator reaches its peak above zero.  Indicator movement from peak to zero gives a sell signal. Any short position should be covered after the formation of a new minimum of the value of indicator.

Calculation

Polarized Fractal Efficiency 001

Polarized Fractal Efficiency 002

Polarized Fractal Efficiency 003

Where N - period of indicator, M - smoothing period.

Chart Example

Polarized Fractal Efficiency 004

Implementation and Usage

To initialize Pfe use one of the following constructors:

Pfe – sets default values: period = 14, smoothingPeriod = 3

Pfe(Int32, Int32) – sets values for indicator

Use

PFE - property to get current value

Example
C#
 1// Create new instance
 2Pfe pfe = new Pfe(28, 9);
 3
 4// Number of stored values
 5pfe.HistoryCapacity = 2;
 6
 7// Add new data point
 8pfe.Add(Bars.Current.Open, Bars.Current.High, Bars.Current.Low, Bars.Current.Close, Bars.Current.Volume);
 9
10// Get indicator value
11double IndicatorValue = pfe.PFE;
12// Get previous value
13if (pfe.HistoryCount == 2)
14{
15    double IndicatorPrevValue = pfe[1];
16}