amv-dev / yata

Yet Another Technical Analysis library [for Rust]
Apache License 2.0
321 stars 49 forks source link

Candlestick Pattern Recognizer #9

Open hardvain opened 3 years ago

hardvain commented 3 years ago

Create method/indicator for recognizing various common candlestick patterns

amv-dev commented 3 years ago

I think it should be a method first. There are lot of different patterns, so we can't encode them in IndicatorResult. So we can't create raw indicator.

If we create a method, then we just need to create enum with all the patterns and set it to Methods Output type (https://docs.rs/yata/0.4.0/yata/core/trait.Method.html#associatedtype.Output).

After method creation an indicator might implemented, that will produce a signal based on patterns. But for now it is not obvious for me how we can interpret patterns to produce a signal.