anandanand84/technicalindicators

Not giving proper output of pattern detection

jigarkanakia5 opened this issue · 5 comments

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

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

pattern detection was removed in version 3.0.

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.

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

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