Detecting Three Black Crows with TA-Lib Candlestick Recognition
Summary
This brief example shows how to use TA-Lib’s three black crows candlestick recognizer on market bars. The program scans the returned pattern values for the bearish pattern code and checks whether its index is the final bar in the current record set. On detection, it logs the bar index and timestamp, submits a sell order using the current bid, and stops the run.
The published settings describe a five-minute Bitcoin spot-market backtest over a short interval in December 2017, but the document gives no performance statistics or chart evidence. It is primarily a demonstration of pattern detection and signal timing, rather than a complete trading system. The example does not describe position checks, order sizing rationale, exits, or safeguards for repeated or incomplete bars; a detected candlestick pattern alone does not establish that a profitable reversal will follow.
Key ideas
- TA-Lib identifies three black crows patterns from a sequence of price bars.
- The example acts only when the detected pattern is on the latest bar.
- On detection it logs the bar time and submits a sell order.
- The short backtest configuration is provided without performance results or a complete risk and exit plan.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.