anandanand84 / technicalindicators

A javascript technical indicators written in typescript with pattern recognition right in the browser
MIT License
2.18k stars 563 forks source link

bullish and bearish detailed return #82

Closed scottie closed 6 years ago

scottie commented 6 years ago

bullish and bearish now return {result:BOOLEN, matched:PATTERNNAME}. before: bullish(data) returned true now bullish(data) returnes {result:true, matched:Engulfing} access the old boolen simply, bullish(data)["result"]

anandanand84 commented 6 years ago

hi @scottie

Thanks for the pullrequest. Editing the .js file wont work, this is a typescript project, you need to edit the corresponding src in the src/*.ts files.

scottie commented 6 years ago

thanks for the reply. this is working for me as intended so ill continue to use fork if i did know about typescript i would make changes but i dont maybe someone else can if they require this functionality sorry.