Skip to content

Q: what does CDL2CROWS return value -100 and 100 stands for? #711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mw66 opened this issue Feb 24, 2025 · 7 comments
Open

Q: what does CDL2CROWS return value -100 and 100 stands for? #711

mw66 opened this issue Feb 24, 2025 · 7 comments

Comments

@mw66
Copy link

mw66 commented Feb 24, 2025

integer (values are -100, 0 or 100)

0 means no pattern detected.

but what does CDL2CROWS return value -100 and 100 stands for?

Thanks.

@mrjbq7
Copy link
Member

mrjbq7 commented Feb 24, 2025

It looks like perhaps it only returns 0 or -100:

https://github.com/TA-Lib/ta-lib/blob/main/src/ta_func/ta_CDL2CROWS.c#L225

@mw66
Copy link
Author

mw66 commented Feb 24, 2025

But I do see others e.g: CDLXSIDEGAP3METHODS return 3 values:

np.unique(candles) = array([-100, 0, 100]

so, in general, what does -100 and 100 stands for respectfully?

@mrjbq7
Copy link
Member

mrjbq7 commented Feb 24, 2025

Well there are also -200 and 200.

In general, it's supposed to represent bearish for negative and bullish for positive.

And I think -200 and +200 are meant to be "confirmation" signals.

@mw66
Copy link
Author

mw66 commented Feb 24, 2025

ok, these values should be in the README as guide, e.g.

https://github.com/TA-Lib/ta-lib/blob/main/src/ta_func/ta_CDLXSIDEGAP3METHODS.c#L215

@mrjbq7
Copy link
Member

mrjbq7 commented Feb 24, 2025

PR's welcome!

@mw66
Copy link
Author

mw66 commented Feb 24, 2025

Well, only if I know enough about these values myself, e.g. so CDLXSIDEGAP3METHODS can be both bullish and bearish?

@mrjbq7
Copy link
Member

mrjbq7 commented Feb 24, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants