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}`);
});