UNPKG

@sunrise1002/tats

Version:

Techincal Indicators written in javascript

16 lines (15 loc) 484 B
import ShootingStar from './ShootingStar'; export default class ShootingStarUnconfirmed extends ShootingStar { constructor() { super(); this.name = 'ShootingStarUnconfirmed'; } logic(data) { let isPattern = this.upwardTrend(data, false); isPattern = isPattern && this.includesHammer(data, false); return isPattern; } } export function shootingstarunconfirmed(data) { return new ShootingStarUnconfirmed().hasPattern(data); }