Lean  $LEAN_TAG$
QuantConnect.Indicators.BalanceOfPower Class Reference

This indicator computes the Balance Of Power (BOP). The Balance Of Power is calculated with the following formula: BOP = (Close - Open) / (High - Low) More...

Inheritance diagram for QuantConnect.Indicators.BalanceOfPower:
[legend]

Public Member Functions

 BalanceOfPower ()
 Initializes a new instance of the BalanceOfPower class using the specified name. More...
 
 BalanceOfPower (string name)
 Initializes a new instance of the BalanceOfPower class using the specified name. More...
 

Public Attributes

override bool IsReady => Samples > 0
 Gets a flag indicating when this indicator is ready and fully initialized More...
 
int WarmUpPeriod => 1
 Required period, in data points, for the indicator to be ready and fully initialized. More...
 

Protected Member Functions

override decimal ComputeNextValue (IBaseDataBar input)
 Computes the next value of this indicator from the given state More...
 
- Protected Member Functions inherited from QuantConnect.Indicators.BarIndicator
 BarIndicator (string name)
 Creates a new TradeBarIndicator with the specified name More...
 

Additional Inherited Members

- Properties inherited from QuantConnect.Indicators.IIndicatorWarmUpPeriodProvider
int WarmUpPeriod [get]
 Required period, in data points, for the indicator to be ready and fully initialized. More...
 

Detailed Description

This indicator computes the Balance Of Power (BOP). The Balance Of Power is calculated with the following formula: BOP = (Close - Open) / (High - Low)

Definition at line 25 of file BalanceOfPower.cs.

Constructor & Destructor Documentation

◆ BalanceOfPower() [1/2]

QuantConnect.Indicators.BalanceOfPower.BalanceOfPower ( )

Initializes a new instance of the BalanceOfPower class using the specified name.

Definition at line 30 of file BalanceOfPower.cs.

◆ BalanceOfPower() [2/2]

QuantConnect.Indicators.BalanceOfPower.BalanceOfPower ( string  name)

Initializes a new instance of the BalanceOfPower class using the specified name.

Parameters
nameThe name of this indicator

Definition at line 39 of file BalanceOfPower.cs.

Member Function Documentation

◆ ComputeNextValue()

override decimal QuantConnect.Indicators.BalanceOfPower.ComputeNextValue ( IBaseDataBar  input)
protected

Computes the next value of this indicator from the given state

Parameters
inputThe input given to the indicator
Returns
A new value for this indicator

Definition at line 59 of file BalanceOfPower.cs.

Member Data Documentation

◆ IsReady

override bool QuantConnect.Indicators.BalanceOfPower.IsReady => Samples > 0

Gets a flag indicating when this indicator is ready and fully initialized

Definition at line 47 of file BalanceOfPower.cs.

◆ WarmUpPeriod

int QuantConnect.Indicators.BalanceOfPower.WarmUpPeriod => 1

Required period, in data points, for the indicator to be ready and fully initialized.

Definition at line 52 of file BalanceOfPower.cs.


The documentation for this class was generated from the following file: