anandanand84 / technicalindicators

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

Not giving proper output of pattern detection #211

Open jigarkanakia5 opened 4 years ago

jigarkanakia5 commented 4 years ago

Hi,

Starting with huge thanks for developing such a wonderful plugin. It really make easy life.

I am using this plugin from last most and now moved to patter detection part. While back testing i have found unexpected output for given data. In chart i can see market is in downtrend but isTrendingDown gives False as output. i have attached screenshots for more detail.

Note:- technicalindicators 2.0.8 Candle time frame :- 30 min Data length :- 374

trendChrt trendChrtIssueNew

chrt trendIssue

jigarkanakia5 commented 4 years ago

Hi,

Please help me. I am finding issue with the output of this plugin with double top data. Plugin always give output as DB(Double bottom) with prediction range from 0.3 to 0.9.

In attached chart there is perfect double top pattern formed on 31/12/2019. But plugin produce output as DB.

To reproduce please use testdata.txt.

Note:- technicalindicators 2.0.8 Candle time frame :- 30 min Data length :- 374

async function hasDoubleBottom(highData) { let test1 = await technicalindicators.hasDoubleBottom( { values: highData }); return test1; }

async function doubleTop(highData) { let test1 = await technicalindicators.hasDoubleTop( { values: highData }); return test1; }

async function predictPattern(highData) { let test1 = await technicalindicators.predictPattern( { values: highData }); return test1; }

DoubleTop DoubleTopChart TestData.txt

anandanand84 commented 4 years ago

pattern detection was removed in version 3.0.

LuisAlejandro commented 3 years ago

pattern detection was removed in version 3.0.

@anandanand84 may I ask why? I'm considering using version 2.0 just to be able to use pattern recognition, but I'm interested in knowing why it was removed to better assess my options.

arthuryeti commented 3 years ago

@LuisAlejandro same as you. I would like to use the double bottom pattern recognition.

jelofsson commented 3 years ago

I'm also looking for pattern recognition, would like to use it.