Hammer or shooting star at the 20-day extreme
A hammer that reaches the lowest low of the last 20 finished UTC days and closes above it buys; a shooting star at the 20-day high sells. Weakness: a new 20-day extreme is also where breakouts start, and the candle shape alone does not tell the two apart.
Entry rules
| Rule | Setting | What it means |
|---|---|---|
| Pin bar (hammer / shooting star) | - | Long lower wick, at least twice the body and 60% of the range (buy), or long upper wick (sell) |
| Price is at a key level | 1 previous day, 2 previous week, 3 the 20-day range 3 | Buys only when this candle or the one before it in the same UTC day (week, for 2) reached within a quarter of an ATR of (or below) the low of the previous UTC day, the previous week, or the last 20 finished days, and the close is above that low; sells the mirror image at the high |
A trade is taken only on a candle where every rule agrees.
How to test it properly
- Open it in the backtester with the button above, then pick your market and timeframe.
- Keep fees and slippage switched on: many strategies that look good before costs lose money after them.
- Run the walk-forward test to see how it does on data it was not tuned on, and the Monte Carlo test to see the range of drawdowns.
- Paper trade it before risking money.
Questions
Does the Hammer or shooting star at the 20-day extreme strategy make money?
No strategy can promise that. Classic published strategies often lose after fees and slippage, and results change from market to market and year to year. Backtest it on the market and timeframe you trade, then run the walk-forward test, which checks it on data it was not tuned on.
What are the entry rules?
Pin bar (hammer / shooting star): Long lower wick, at least twice the body and 60% of the range (buy), or long upper wick (sell). Price is at a key level (1 previous day, 2 previous week, 3 the 20-day range 3): Buys only when this candle or the one before it in the same UTC day (week, for 2) reached within a quarter of an ATR of (or below) the low of the previous UTC day, the previous week, or the last 20 finished days, and the close is above that low; sells the mirror image at the high. All rules must agree on the same candle.
Where are the stop and the target?
The target is 2 times the risk. The stop comes from the backtester's stop settings (based on the market's average range), and you can add a trailing stop, break-even, partial exits and a time limit.
Can the backtest see the future?
No. Every rule is worked out from closed candles only, and an automated test checks that each rule gives the same signals on a shorter history as on the full one.
More price action strategies
From the blog
A classic idea to test, not a recommendation. Past results do not predict future results. Nothing here is financial advice; trading involves a high risk of losing money.