The talib.BOP()
function is used to calculate the Balance Of Power.
The return value of the talib.BOP()
function is a one-dimensional array.
array
talib.BOP(inPriceOHLC)
The inPriceOHLC
parameter is used to specify the K-line data.
inPriceOHLC
true
{@struct/Record Record} structure array
function main() {
var records = exchange.GetRecords()
var ret = talib.BOP(records)
Log(ret)
}
import talib
def main():
records = exchange.GetRecords()
ret = talib.BOP(records.Open, records.High, records.Low, records.Close)
Log(ret)
void main() {
auto records = exchange.GetRecords();
auto ret = talib.BOP(records);
Log(ret);
}
The BOP()
function is described in the talib library documentation as: BOP(Records[Open,High,Low,Close]) = Array(outReal)