Technical Indicator - Shooting Star (Unconfirmed)

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

no comments

    sign in to comment