Balance of Power (BOP)
Previous Topic  Next Topic 

Definition

The balance of power (BOP) indicator measures the strength of the bulls vs. bears by assessing the ability of each to push price to an extreme level.

Syntax
BOP(int smooth)
BOP(IDataSeries inputData, int smooth)

Returns default value
BOP(int smooth)[int barsAgo]
BOP(IDataSeries inputData, int smooth)[int barsAgo]


Return Type
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.


Parameters

smooth

The smoothing period

inputData

Indicator source data (?)


Examples

// Prints the current value of BOP using default price type and 3 period smoothing
double value = BOP(3)[0];
Print("The current BOP value is " + value.ToString());


Source Code
You can open up the indicator source code via the NinjaScript Editor.