WilliamsR (WilliamsR)

node v4.9.1
version: 1.0.0
endpointsharetweet
const WilliamsR = require('technicalindicators').WilliamsR; let high = [127.0090,127.6159,126.5911,127.3472,128.1730,128.4317,127.3671,126.4220,126.8995,126.8498,125.6460,125.7156,127.1582,127.7154,127.6855,128.2228,128.2725,128.0934,128.2725,127.7353,128.7700,129.2873,130.0633,129.1182,129.2873,128.4715,128.0934,128.6506,129.1381,128.6406]; let low = [125.3574,126.1633,124.9296,126.0937,126.8199,126.4817,126.0340,124.8301,126.3921,125.7156,124.5615,124.5715,125.0689,126.8597,126.6309,126.8001,126.7105,126.8001,126.1335,125.9245,126.9891,127.8148,128.4715,128.0641,127.6059,127.5960,126.9990,126.8995,127.4865,127.3970]; let close = [125.3574,126.1633,124.9296,126.0937,126.8199,126.4817,126.0340,124.8301,126.3921,125.7156,124.5615,124.5715,125.0689,127.2876,127.1781,128.0138,127.1085,127.7253,127.0587,127.3273,128.7103,127.8745,128.5809,128.6008,127.9342,128.1133,127.5960,127.5960,128.6904,128.2725]; let period = 14; let expectResult=[-29.5618,-32.3911,-10.7979,-34.1894,-18.2523,-35.4762,-25.4702,-1.4186,-29.8955,-26.9439,-26.5822,-38.7687,-39.0437,-59.6139,-59.6139,-33.1715,-43.2686] let input = { high: high, low: low, close: close, period: period, }; WilliamsR.calculate(input)
Loading…

no comments

    sign in to comment