technicalindicators icon indicating copy to clipboard operation
technicalindicators copied to clipboard

bullishharami fails with sample data

Open temp3l opened this issue 5 years ago • 2 comments

var bullishharami =require('technicalindicators').bullishharami;

var input = { open: [20.12, 22,13], high: [23.82,22.76], close: [23.50,21.70], low: [19.88,21.31], }

var result = bullishharami(input); console.log('Is Bullish Harami Pattern? :' +result);

temp3l avatar Jan 09 '19 22:01 temp3l

var input = { open: [23.5, 21.7], high: [23.82, 22.76], close: [20.12, 22.13], low: [19.88, 21.31] };

Logic was correct, only the sample data given in the example was wrong, use the above and check.

sivaraj-v avatar Jul 04 '19 12:07 sivaraj-v

@sivaraj-v Your input gives false for Bullish Harami using this library, but in my opinion, it should be true. Your inputs indeed follow the pattern of Bullish Harami. I believe there's a bug here with the library

callmekatootie avatar Jul 10 '20 08:07 callmekatootie