Class BalanceOfPower
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
This indicator computes the Balance Of Power (BOP). The Balance Of Power is calculated with the following formula: BOP = (Close - Open) / (High - Low)
public class BalanceOfPower : BarIndicator, IIndicator, IUpdatable
- Inheritance
-
BalanceOfPower
- Implements
- Inherited Members
- Extension Methods
Constructors
BalanceOfPower()
Initializes a new instance of the BalanceOfPower class using the specified name.
public BalanceOfPower()
BalanceOfPower(string)
Initializes a new instance of the BalanceOfPower class using the specified name.
public BalanceOfPower(string name)
Parameters
namestringThe name of this indicator
Properties
IsReady
Gets a flag indicating when this indicator is ready and fully initialized
public override bool IsReady { get; }
Property Value
WarmUpPeriod
Required period, in data points, for the indicator to be ready and fully initialized.
public override int WarmUpPeriod { get; }
Property Value
Methods
Forward(long, DoubleArray)
Computes the next value of this indicator from the given state
protected override DoubleArray Forward(long time, DoubleArray input)
Parameters
timelonginputDoubleArrayThe input given to the indicator
Returns
- DoubleArray
A new value for this indicator