资源加载中... loading...

talib.PLUS_DM

The talib.PLUS_DM() function is used to calculate Plus Directional Movement.

The return value of the talib.PLUS_DM() function is a one-dimensional array. array

talib.PLUS_DM(inPriceHL) talib.PLUS_DM(inPriceHL, optInTimePeriod)

The inPriceHL parameter is used to specify the K-line data. inPriceHL true {@struct/Record Record} structure array The optInTimePeriod parameter is used to set the period, the default value is 14. optInTimePeriod false number

function main() {
    var records = exchange.GetRecords()
    var ret = talib.PLUS_DM(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.PLUS_DM(records.High, records.Low)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.PLUS_DM(records);
    Log(ret);
}

The PLUS_DM() function is described in the talib library documentation as: PLUS_DM(Records[High,Low],Time Period = 14) = Array(outReal)

talib.PLUS_DI talib.PPO