Balance Of Power

Category: Indicators By: Nicolas Created: July 23, 2019, 8:44 AM
July 23, 2019, 8:44 AM
Indicators
3 Comments

Balance of Power, introduced by Igor Livshin, attempts to measure the strength of buyers vs. sellers by assessing the ability of each to push price to an extreme level. Livshin published this indicator in the August 2001 issue of Stocks and Commodities Magazine. This version of indicator calculates the BOP exactly as it is described in the article where it was published.

The resulting raw BOP values can be optionally smoothed using any Moving Average type.

The BOP oscillates between extremes of -1 and +1.

Livshin makes the following statements:

  • For daily charts, a 14-period Moving Average is recommended, though the number of periods varies depending on the nature of the market and the time frame.
  • One of the most important properties of BOP is the level at which it clusters its tops and bottoms. During bull markets, its tops often reach the upper limit and never reach the bottom level. During bear markets, the picture is reversed.
  • BOP supports price divergence, trends, and overbought-oversold levels.
  • A change in the BOP trend serves as a warning signal and should be confirmed by a change in the price direction.
//PRC_Balance Of Power (BOP) | indicator
//23.07.2019
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge

// --- settings 
PeriodAct      =  14         // Period
PeriodRng      =  28         // Range
UseLastPeriod  =  1          // Use Last period in calculation? (1=yes 0=no)
// --- end of settings 

shift=1
if uselastperiod then 
 shift=0
endif
bh=highest[periodrng](high)[shift]
bl=lowest[periodrng](low)[shift]

BOP=(close-open[periodact-1])/(bh-bl)

r=255
g=0
if (close>bl+(bh-bl)/2.0) then 
 r=0
 g=255
endif

return bop coloured(r,g,0)style(histogram), 0 coloured(150,150,150) style(dottedline)

 

Download
Filename: PRC_Balance-Of-Power.itf
Downloads: 293
Nicolas Master
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Logo Logo
Loading...