TheLark

FREE INDICATOR: POLARIZED FRACTAL EFFICIENCY

Looking for something other than a moving average to help determine not only a trend's strength, but also it's direction? Try PFE!

PFE was developed by Hans Hannula that was invented to determine price efficiency over a user-defined time period.

The Polarized Fractal Efficiency indicator is, in the essence, an exponentially smoothed ratio of the length of two lines: (1) of a straight line between today’s close and the close Period days ago, and (2) of a broken line connecting all Close points between today and Period days ago. The indicator output varies between -100 and 100. The theory behind this indicator is that if it is >50 (or <-50) then the market is likely to reverse its trend from positive to negative (or from negative to positive).

Other usage:
Securities with a PFE greater than zero are deemed to be trending up, while a reading of less than zero indicates the trend is down. The strengh of the trend is measured by the position of the PFE relative to the zero line. As a general rule, the further the PFE value is away from zero, the stronger and more efficient the given trend is. A PFE value that fluctuates around the zero line could indicate that the supply and demand for the security are in balance and price may trade sideways.

As with all indicators, finding something that works well along side this would be the most beneficial way to use it.
Perhaps something like the Choppiness Index (related idea below) could do the trick.

Grab the source code here: pastebin.com/TyTuWQ3s
Installation video by @ChrisMoody here : blog.tradingview.com/?p=265
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?
study(title="TheLark: Polarized Fractal Efficiency", shorttitle="Lark: PFE", overlay=false)

        //•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•//   
        //                                             //
        //   POLARIZED FRACTAL EFFICIENCY BY THELARK   //
        //                 ~ 5-21-14 ~                 //
        //                                             //
        //                     •/•                     //
        //                                             //
        //    https://www.tradingview.com/u/TheLark    //
        //                                             //
        //•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•/•//

// PFE was developed by Hans Hannula that was invented to determine price efficiency over a user-defined time period. 

// The Polarized Fractal Efficiency indicator is, in the essence, an exponentially smoothed ratio of the length of 
// two lines: (1) of a straight line between today’s close and the close Period days ago, and 
// (2) of a broken line connecting all Close points between today and Period days ago. The indicator output 
// varies between -100 and 100. The theory behind this indicator is that if it is >50 (or <-50) then the market is 
// likely to reverse its trend from positive to negative (or from negative to positive).

// Other useage: 
// Securities with a PFE greater than zero are deemed to be trending up, while a reading of less 
// than zero indicates the trend is down. 
// The strengh of the trend is measured by the position of the PFE relative to the zero line. 
// As a general rule, the further the PFE value is away from zero, the stronger and more efficient 
// the given trend is. A PFE value that fluctuates around the zero line could indicate that the supply 
// and demand for the security are in balance and price may trade sideways.

Length = input(10)
Smoothing = input(5)
SingleColor = input(false, title="Single Color?")
bgcol = input(true, title="Color Background?")

// Calcs
ln = Length - 1
diff = close - close[ln]
pfetmp = 100 * sqrt(pow(diff,2) + pow(Length,2)) / sum(sqrt(1 + pow(close - close[1],2)), Length - 1)
pfe = ema( diff > 0 ? pfetmp : -pfetmp, Smoothing)

// Plots
col = pfe > 50 or pfe < -50 ? #FF8D6F : #FFD9CF
plot(pfe, color=SingleColor ? #FFD9CF : col,linewidth=1)

hline(50, color=#FFD105, linestyle=dotted)
hline(-50, color=#FFD105, linestyle=dotted)
hline(0, color=#FFD105, linestyle=dotted)

bgcolor(bgcol ? col : na)