const tweezertop = require('technicalindicators').tweezertop;
var testData = {
open: [29.50, 33.10, 36.00, 40.90, 42.80],
high: [35.90, 37.60, 41.80, 43.10, 43.10],
close: [33.10, 36.00, 40.90, 42.80, 38.05],
low: [26.90, 27.70, 28.00, 39.10, 37.50],
};
const result = tweezertop(testData) ? 'yes' : 'no';
console.log(`Is Tweezer Top pattern? : ${result}`);