Evaluates the Balance of Power (BOP) indicator, created by Igor Livshin; which captures the struggle between the Bulls and Bears over a number of trading days.
Syntax
Visual Basic (Declaration) |
|
Public Overloads Shared Function BalanceOfPowerOverPeriod( _
ByVal s As Series _
) As Series |
Parameters
- s
- A series where the first element is the high in the last trading period, the second term is the high in the previous period and so on.
Return Value
A series is returned where the first term corresponds to the BOP of the last trading day, the second term gives the BOP on the previous trading day and so on.
Exceptions
Exception |
Description |
ArgumentException |
Thrown if any elements from the highs, lows, closes or opens are strictly negative. |
Remarks
See Also