Technical Indicator - Hanging Man (Unconfirmed)

node v8.17.0
version: 1.0.0
endpointsharetweet
const hangingman = require('technicalindicators').hangingmanunconfirmed; var hangingManData = [ { name: 'Bearish', data: { open: [28.90, 29.50, 33.10, 36.00, 42.80], high: [36.10, 35.90, 37.60, 41.80, 42.80], close: [29.50, 33.10, 36.00, 40.90, 40.90], low: [27.00, 26.90, 27.70, 28.00, 33.10], }, }, { name: 'Bullish', data: { open: [28.90, 29.50, 33.10, 36.00, 40.90], high: [36.10, 35.90, 37.60, 41.80, 42.80], close: [29.50, 33.10, 36.00, 40.90, 42.80], low: [27.00, 26.90, 27.70, 28.00, 33.10], }, }, ]; hangingManData.forEach((patternSet) => { const result = hangingman(patternSet.data) ? 'yes' : 'no'; console.log(`Is Hanging Man (Unconfirmed) pattern: ${patternSet.name}? : ${result}`); });
Loading…

no comments

    sign in to comment