$npx -y skills add SKE-Labs/agent-trading-skills --skill candlestick-patternsDefine and test objective candlestick geometry. Use when labeling OHLC patterns, comparing body/wick rules, or evaluating a closed-bar entry with context and cost controls.
| 1 | # Candlestick Pattern Trading |
| 2 | |
| 3 | Candlestick patterns are compact OHLC descriptions. Use them to define observable bar geometry, not to infer psychology or direction by themselves. |
| 4 | |
| 5 | ## Pattern Identification |
| 6 | |
| 7 | ### Single-Candle Reversals |
| 8 | - **Hammer / Hanging Man** — Small body, long lower wick (2x+ body). Hammer at support = bullish; Hanging Man at resistance = bearish. |
| 9 | - **Inverted Hammer / Shooting Star** — Small body, long upper wick (2x+ body). Inverted Hammer at support = bullish; Shooting Star at resistance = bearish. |
| 10 | - **Doji** — Open ≈ Close (tiny body). Indecision; reversal signal at extremes. |
| 11 | |
| 12 | ### Multi-Candle Reversals |
| 13 | - **Engulfing** — Bullish: current real body contains the prior real body and closes up. Bearish: mirror it. State explicitly whether wicks must also be engulfed. |
| 14 | - **Piercing Line / Dark Cloud Cover** — Second candle opens gap, closes 50%+ into prior candle. |
| 15 | - **Morning Star / Evening Star** — 3-candle: large, small/doji, large opposite direction. |
| 16 | |
| 17 | ### Continuation |
| 18 | - **Three White Soldiers / Three Black Crows** — Three consecutive strong candles closing progressively higher/lower. |
| 19 | |
| 20 | Normalize definitions before scanning: express body and wick sizes as fractions of the candle range or ATR, set the doji tolerance, and use only completed candles. Do not rank patterns until the ranking has been tested on the target market. |
| 21 | |
| 22 | ## Workflow |
| 23 | |
| 24 | ### 1. Identify Key Level |
| 25 | |
| 26 | Use `get_candles_around_date(symbol=<symbol>, exchange=<exchange>, interval=<interval>, date=<date>)` to find S/R levels from price action (swing highs/lows, prior rejection zones). |
| 27 | |
| 28 | ### 2. Confirm Pattern at Level |
| 29 | |
| 30 | Wait for a candlestick pattern to form at the key level. Confirm: |
| 31 | - Direction matches HTF bias |
| 32 | - Volume context via `get_indicators(indicator_code="mfi", symbol=<symbol>, exchange=<exchange>, interval=<interval>)` |
| 33 | |
| 34 | ### 3. Mark Key Candles |
| 35 | |
| 36 | ``` |
| 37 | draw_chart_analysis(action="create", drawing={ |
| 38 | "type": "highlight", |
| 39 | "points": [{"time": <pattern_candle_time>, "price": <pattern_candle_high>}], |
| 40 | "options": {"text": "Engulfing"} |
| 41 | }) |
| 42 | ``` |
| 43 | |
| 44 | ### 4. Enter |
| 45 | |
| 46 | Enter on next candle open or break of pattern extreme. Stop beyond pattern's extreme wick. Target the next key S/R level. |
| 47 | |
| 48 | ## Evidence and Validation |
| 49 | |
| 50 | - Treat the setup as a testable hypothesis, not a prediction. Define thresholds, entry, invalidation, and exit before evaluating outcomes. |
| 51 | - Calibrate on the same instrument, venue, session, and timeframe. Use closed candles and a held-out or walk-forward sample; record every variant tried. |
| 52 | - Include spread, fees, slippage, borrow or funding, partial fills, and latency. Reject the setup when net expectancy is not positive or depends on one narrow parameter. |
| 53 | - Return observed inputs, missing data, cost assumptions, entry, invalidation, exit, and a valid, watch, or no-trade status. |
| 54 | - Research basis: [Marshall, Young & Rose](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=980583) found candlestick rules were not generally profitable on large U.S. stocks, so use patterns as contextual features rather than standalone signals. |
| 55 | |
| 56 | ## Key Rules |
| 57 | - Treat a pattern as a feature and compare it with a price-only baseline. |
| 58 | - Test higher-timeframe state and nearby levels for incremental value rather than requiring them universally. |
| 59 | - A doji is geometry, not direction; define any adjacent-bar trigger in advance. |
| 60 | - HTF patterns carry far more weight than LTF |
| 61 | - Keep real-body engulfing and full-range engulfing as separate, predeclared variants |
| 62 | - Morning/Evening Stars require 3rd candle to close beyond midpoint of 1st candle |
| 63 | |
| 64 | ## Related Skills |
| 65 | - **multi-timeframe-analysis** — HTF patterns far more reliable |
| 66 | - **supply-demand-zones** — test overlap with objectively defined candle zones |