# Balance of Power (BOP)

#### Description <a href="#description_7" id="description_7"></a>

The developer of the Balance of Power indicator was Igor Livshin, who came up with the BOP in August 2001. The BOP indicator represents the strength of the buyers (bulls) vs. the sellers (bears), and oscillates between -100 and 100. The calculation of the BOP = (close - open) / (high - low).

#### Interpretation <a href="#interpretation_6" id="interpretation_6"></a>

A directional change of the BOP can be interpreted as a warning signal and will generally be followed by a price change.

#### Usage <a href="#usage_8" id="usage_8"></a>

```csharp
BOP(int smooth)
BOP(IDataSeries inSeries, int smooth)
BOP(int smooth)[int barsAgo]
BOP(IDataSeries inSeries, int smooth)[int barsAgo]
```

#### Return value <a href="#return-value_8" id="return-value_8"></a>

**double**

When using this method with an index (e.g. **BOP**(5)\[**int** barsAgo] ), the value of the indicator will be outputted for the referenced bar.

#### Parameters <a href="#parameters_7" id="parameters_7"></a>

inSeries Input data series for the indicator

smooth Settings for the smoothing

#### Visualization <a href="#visualization_8" id="visualization_8"></a>

![Balance of Power (BOP)](https://agenatrader.github.io/AgenaIndicator-documentation/media/BOP.jpg)

#### Example <a href="#example_8" id="example_8"></a>

```csharp
//Output of the value for the BOP with a smoothing of 5 periods
Print("The Balance of Power value is: " + BOP(5));
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://indicators.agenatrader.com/standard-indicators/balance-of-power-bop.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
