Tested by BacktestingMax
Shooting star strategy backtest
Does the shooting star candlestick pattern work?
No, not in our backtest. A shooting star is a candle with a long upper wick (the thin line above the body) and a small body near its low, after a rise. Our standard rules sell at the next candle's open after a shooting star. The star's high must be the highest of the last 10 candles, and its close must be above the 20 SMA, the average of the last 20 closes. The stop-loss goes at the star's high and the take-profit twice as far below the star's close. A trade that hits neither closes after 10 candles. We ran 18 tests from 2019 to 2025, after trading costs: EUR/USD, GBP/USD, USD/JPY, AUD/USD, gold, silver, the S&P 500, the Nasdaq 100 and the Dow Jones, each on 1-hour and 4-hour charts. 13 of the 18 tests lost money. R is the amount a trade risks: 1% of the account. The 3,002 trades lost 0.135R each on average, and they lost money in every year. We also sold every other candle that made a 10-candle high and closed above its 20 SMA. On the same charts, those trades lost less than the shooting stars: 0.079R each. None of the 4 changes we tested, such as waiting for a confirmation candle, made the shooting star reliable. On daily charts, it was too rare to judge.
18 backtests 2019–2025 Trading costs included Tested 23 November 2026
Where it worked 18 backtests- Made money
- 2 of 18 tests, with the standard rules
- Made money in both periods
- 0 2019–2022 and again 2023–2025
- Best backtest
- +3% Dow Jones, 4-hour chart: account growth 2019–2025
- Big shooting stars only
- 1 tests made money in both periods, compared with 0 with the standard rules
The results
Results on every market
Each box shows one backtest of the shooting star strategy with the standard rules, from 2019 to 2025, after trading costs: the % result, and a small chart of the account balance. The solid line is the account balance and the dashed line is the starting balance. Green results made money; red results lost money. Under each result: whether it made money in both 2019–2022 and 2023–2025, or passed all four of our checks (see "How a test passes" further down).
| Market | 1-hour | 4-hour |
|---|---|---|
| EUR/USD | −33% Lost money | −4% Too few trades |
| GBP/USD | −35% Lost money | −18% Too few trades |
| USD/JPY | +0.3% Made money overall, lost in one period | −4% Too few trades |
| AUD/USD | −54% Lost money | −16% Too few trades |
| Gold | −42% Lost money | −8% Too few trades |
| Silver | −64% Lost money | +3% Too few trades |
| S&P 500 | −39% Lost money | +2% Too few trades |
| Nasdaq 100 | +2% Made money overall, lost in one period | −2% Too few trades |
| Dow Jones | −20% Lost money | +3% Too few trades |
All the numbers, test by test
| Market | Chart | Trades | Win rate | Profit factor | Result | Max drawdown | 2019–2022 | 2023–2025 | Monte Carlo drawdown | Trading costs |
|---|---|---|---|---|---|---|---|---|---|---|
| EUR/USD | 1-hour | 289 | 33.2% | 0.80 | −32.6% | −44.2% | −15.2% | −20.5% | −45.5% | $1,817 |
| EUR/USD | 4-hour | 63 | 38.1% | 0.91 | −3.5% | −11.9% | −4.8% | +1.4% | −15.8% | $230 |
| GBP/USD | 1-hour | 301 | 34.9% | 0.81 | −34.8% | −49.8% | −11.6% | −26.2% | −46.6% | $2,321 |
| GBP/USD | 4-hour | 68 | 27.9% | 0.62 | −17.5% | −18.4% | −3.7% | −14.4% | −24.3% | $276 |
| USD/JPY | 1-hour | 252 | 38.9% | 1.00 | +0.3% | −21.1% | −2.4% | +2.8% | −30.3% | $1,849 |
| USD/JPY | 4-hour | 62 | 33.9% | 0.90 | −4.1% | −8.4% | −4.3% | +0.2% | −16.8% | $220 |
| AUD/USD | 1-hour | 323 | 31.6% | 0.69 | −53.6% | −53.6% | −27.1% | −36.4% | −59.9% | $2,618 |
| AUD/USD | 4-hour | 69 | 27.5% | 0.64 | −16.3% | −24.3% | −21.8% | +7.0% | −24.6% | $328 |
| Gold | 1-hour | 284 | 33.8% | 0.72 | −41.7% | −43.1% | −32.0% | −14.3% | −50.8% | $2,015 |
| Gold | 4-hour | 53 | 35.8% | 0.74 | −8.3% | −14.8% | −7.9% | −0.4% | −16.3% | $210 |
| Silver | 1-hour | 233 | 29.6% | 0.43 | −63.8% | −63.8% | −55.0% | −19.5% | −66.3% | $3,479 |
| Silver | 4-hour | 55 | 43.6% | 1.08 | +2.7% | −7.9% | +2.0% | +0.7% | −12.5% | $621 |
| S&P 500 | 1-hour | 280 | 32.1% | 0.75 | −38.5% | −38.9% | −26.4% | −16.5% | −48.5% | $1,571 |
| S&P 500 | 4-hour | 58 | 34.5% | 1.05 | +2.2% | −13.9% | +12.8% | −9.4% | −14.5% | $229 |
| Nasdaq 100 | 1-hour | 216 | 38% | 1.02 | +2.4% | −13.4% | +4.7% | −2.2% | −27.2% | $1,319 |
| Nasdaq 100 | 4-hour | 50 | 36% | 0.94 | −1.7% | −7.4% | +2.6% | −4.2% | −13.4% | $176 |
| Dow Jones | 1-hour | 287 | 34.1% | 0.88 | −20.3% | −29.3% | −1.6% | −19.1% | −37.7% | $1,108 |
| Dow Jones | 4-hour | 59 | 39% | 1.08 | +2.7% | −9.7% | +0.5% | +2.2% | −12.6% | $112 |
Profit factor is the money won divided by the money lost. Above 1 means the test made money. Max drawdown is the biggest fall from the highest balance. 2019–2022 and 2023–2025 show the result in each period on its own. Monte Carlo drawdown: we shuffled the trades into a random order 1,000 times; in 95% of those runs, the worst drawdown was this number or less. Result is the change in the account, with the risk of each trade set to 1% of the account at that time.
The account balance
The best test and the middle test
What we found
What the 18 backtests show
On 1-hour charts, 7 of the 9 tests lost money, and the 2,465 trades lost 0.146R each on average. The silver account lost 63.8% and the AUD/USD account 53.6%. The 2 tests that made money barely did: USD/JPY made 0.3% and the Nasdaq 100 2.4%. On 4-hour charts, the 537 trades lost 0.080R each. 3 of the 9 tests made money, each less than 3%: silver, the S&P 500 and the Dow Jones. Only silver and the Dow Jones made money in both 2019–2022 and 2023–2025. Each 4-hour test had only 50 to 69 trades, so the results grid marks them 'Too few trades'.
Trading costs were not the main reason for the losses. On 1-hour charts, costs took about 0.088R per trade, so before costs the trades still lost about 0.058R each. On 4-hour charts, they lost about 0.034R each before costs. This is where the shooting star differs from our separate pin bar test. In that test, the 1-hour trades on 8 currency pairs, gold and silver about broke even before costs (−0.010R per trade, from 2007 to 2025). Gold and silver lost most on 1-hour charts: 0.292R per trade, with about 0.161R of that in costs. 19 of the 24 losses of more than 1.5R were on silver's 1-hour chart.
The shooting star shape did not help on 1-hour charts. To check, we also sold every other candle in the same spot on the chart: a candle with the highest high of the last 10 candles and a close above its 20 SMA, but not a shooting star. These candles often close at their high, so we put their stop-loss one candle range above the close. Everything else stayed the same. On 1-hour charts, those 24,118 trades lost 0.082R each, against 0.146R for the shooting stars. The shooting star did better per trade in only 2 of the 9 tests. On 4-hour charts, the results were close: the shooting stars lost 0.080R per trade and the other candles 0.068R. The shooting star did better per trade in 5 of the 9 tests. The table 'Shooting stars against other candles at a new high' below splits this by market.
None of the 4 changes we tested made the shooting star reliable. Big shooting stars, at least as tall as the ATR(14), lost the least on 1-hour charts: 0.115R per trade. On 4-hour charts they broke even (0.000R per trade), and 5 of the 9 tests made money. Waiting for a confirmation candle lost 0.116R and 0.051R per trade, with 63% fewer trades. Shooting stars that closed below their open did about the same as all stars. Selling only below the 200 EMA, a moving average of the last 200 closes, did worse on 4-hour charts: −0.188R per trade. Our pin bar test found the same thing for sell pin bars on 4-hour charts: below the 200 EMA, they lost 0.154R per trade.
Daily shooting stars are too rare to judge. On the 9 markets from 2014 to 2025, our rules found 188, fewer than 2 per market a year. The 184 trades lost 0.075R each on average, and 2 of the 9 tests made money: AUD/USD (+16.2%, over 20 trades) and the Dow Jones (+0.5%). Big shooting stars made +0.182R per trade on daily charts, over 77 trades. But they lost 0.070R per trade in 2014–2021 and made +0.707R in 2022–2025, so one good stretch could easily be luck.
Does the shape matter?
Shooting stars against other candles at a new high
Each cell is the average result per trade, in R, after trading costs, with the number of trades. 'Shooting stars' is the standard rules. 'Other candles' is every other candle whose high was the highest of the last 10 candles and that closed above its 20 SMA. Both sell at the next candle's open, with the take-profit at 2R and the 10-candle exit. The shooting stars' stop-loss is at the star's high. The other candles' stop-loss is one candle range above their close.
| Markets and chart | Shooting stars | Other candles |
|---|---|---|
| 4 currency pairs, 1-hour | −0.127R (1,165 trades) | −0.064R (11,237 trades) |
| Gold and silver, 1-hour | −0.292R (517 trades) | −0.135R (4,247 trades) |
| 3 US stock indices, 1-hour | −0.079R (783 trades) | −0.079R (8,634 trades) |
| 4 currency pairs, 4-hour | −0.162R (262 trades) | −0.043R (2,773 trades) |
| Gold and silver, 4-hour | −0.047R (108 trades) | −0.132R (1,467 trades) |
| 3 US stock indices, 4-hour | +0.028R (167 trades) | −0.057R (2,312 trades) |
| All 9 markets, daily, 2014–2025 | −0.075R (184 trades) | −0.106R (2,118 trades) |
On the currency pairs, the shooting stars did worse than the other candles on both charts. On the 4-hour charts of gold, silver and the 3 indices, they did better, but over only 108 and 167 trades. Before trading costs, the shooting stars lost about 0.058R per trade on 1-hour charts, and the other candles about 0.019R. The average trade is the result of each trade in R, after trading costs, averaged over all the trades in that group, so every trade counts the same. 1-hour and 4-hour charts are 2019–2025.
The changes
Every version on every chart
Each cell is the average result per trade, in R, after trading costs, on all 9 markets together, with the number of trades. The last column counts the tests that made money, out of 9 on each chart. The changes are described under 'Can the shooting star strategy be improved?'.
| Version | 1-hour, 2019–2025 | 4-hour, 2019–2025 | Daily, 2014–2025 | Tests that made money (1-hour, 4-hour, daily) |
|---|---|---|---|---|
| Standard rules | −0.146R (2,465 trades) | −0.080R (537 trades) | −0.075R (184 trades) | 2, 3 and 2 of 9 |
| With a confirmation candle | −0.116R (898 trades) | −0.051R (204 trades) | −0.069R (55 trades) | 1, 4 and 5 of 9 |
| Only stars that closed below their open | −0.143R (940 trades) | −0.089R (222 trades) | −0.183R (75 trades) | 2, 2 and 1 of 9 |
| Only below the 200 EMA | −0.143R (667 trades) | −0.188R (165 trades) | −0.163R (51 trades) | 2, 3 and 3 of 9 |
| Big shooting stars only | −0.115R (1,248 trades) | 0.000R (229 trades) | +0.182R (77 trades) | 1, 5 and 4 of 9 |
Every version lost money per trade on 1-hour charts. Big shooting stars did best on 4-hour and daily charts. On the 4-hour charts of the 3 indices, they made +0.217R per trade, and all 3 tests made money, but over only 58 trades: +0.385R per trade in 2019–2022 and +0.048R in 2023–2025. Each daily test had 2 to 26 trades, too few to trust.
The strategy
What the shooting star strategy is
A shooting star is a one-candle pattern that traders sell. It comes after a rise. The candle has a long upper wick: price went up during the candle, then fell back and closed near where it opened. The body, the thick part of the candle between the open and the close, is small and sits near the candle's low. Traders read this as buyers pushing price up and sellers pushing it back down, so they expect a fall. The same shape after a fall is called an inverted hammer, and traders buy it. A shooting star is also a kind of pin bar: a candle with one long wick and a small body at the other end. Our rules follow the usual textbook definition: an upper wick at least 2 times as long as the body, and almost no lower wick. We also ask for two things many guides add. The star must come after a rise: it closes above its 20 SMA. And it must reach a new high: its high is the highest of the last 10 candles. Shooting stars like this are not common. Each market had about 40 a year on a 1-hour chart, fewer than one a week, and about 9 a year on a 4-hour chart. On a daily chart, each market had fewer than 2 a year.
- Stars found
- With the standard rules, our code found 2,544 shooting stars on the 1-hour charts and 550 on the 4-hour charts of the 9 markets, from 2019 to 2025. On daily charts, from 2014 to 2025, it found 188. 2,465, 537 and 184 of them became trades. Why the others were not traded is under 'Skipped stars'.
- Stop-loss
- At the star's high, with no extra distance. It does not move. ATR(14), the average true range, is how far price moves in an average candle, over the last 14 candles. In a typical trade on 1-hour charts, the stop-loss was about 0.8 times the ATR(14) above the star's close. A stop-loss does not protect against a gap, a jump in price between two candles. The biggest loss was 7.51R: a USD/JPY 1-hour sell opened on Friday 25 October 2024. When the market opened again on Sunday, the price was far above its stop-loss. Losses of more than 1.5R were rare: 24 out of 3,002 trades on 1-hour and 4-hour charts, 19 of them on silver's 1-hour chart. On daily charts, 3 out of 184 trades lost more than 1.5R.
- Take-profit
- Below the star's close, twice as far away as the stop-loss. It does not move. Both distances are measured from the star's close, because the trade is planned when the star closes. On 1-hour charts, 25.7% of the trades reached the take-profit, and they made 1.91R on average, a little less than 2R. That is because the trade opened at the next candle's open, not at the close. Its size was also rounded down, and it paid part of the trading cost. On 4-hour charts, 27.6% reached it, and on daily charts 28.8%.
- 10-candle exit
- A trade that reached neither the stop-loss nor the take-profit within 10 candles closed at the next candle's open. Skipped candles (see 'Candles') don't count. On 1-hour charts, 12.5% of the trades closed this way and made +0.32R on average. The other 61.7% hit the stop-loss. On 4-hour charts, 9.5% closed this way, and on daily charts 6.5%. Half of the trades closed within 2.1 hours on 1-hour charts, 7.8 hours on 4-hour charts and 2.7 days on daily charts.
- Risk per trade
- Each trade risks 1% of the account balance, which started at $10,000. The trade size is worked out when the star closes, from the distance between the star's close and the stop-loss. Trade sizes are rounded down to steps the market allows. The real risk of a trade can differ a little from 1%, because the trade opens at the next candle's open, not at the close.
- Trading costs
- Included. The cost is the spread: the gap between the buy price and the sell price. Our backtest engine treats the candle prices as halfway between the buy price and the sell price. Every trade opens with a market order, which fills at the current price and pays half the spread. A stop-loss or the 10-candle exit pays the other half when it closes the trade. A take-profit pays nothing more. So a trade that reaches the take-profit pays only the half spread it paid when it opened, and every other trade pays the whole spread. There is no commission, and no slippage (a fill at a worse price than the order's price), except when price jumps past a stop-loss. With the standard rules, trading costs took about 0.088R per trade on 1-hour charts, 0.046R on 4-hour charts and 0.021R on daily charts. On the 1-hour charts of gold and silver, they took about 0.161R per trade. These cost figures are close estimates: we worked them out from each test's total costs and the money each trade risked. Overnight fees, which brokers charge for each night a trade stays open, are not included.
- Spreads
- 0.8 pips on EUR/USD, 0.9 on USD/JPY, 1.0 on AUD/USD and 1.2 on GBP/USD. A pip is 0.0001, or 0.01 on USD/JPY. The spread is $0.30 an ounce on gold and $0.020 on silver. On the indices, it is 0.4 points on the S&P 500, 1.5 on the Nasdaq 100 and 2.0 on the Dow Jones. For silver, the Nasdaq 100 and the Dow Jones, we used wider spreads than our backtest engine's own, to match a typical retail broker. Each spread is the same in every year.
- Years
- The 18 main tests, on 1-hour and 4-hour charts, run from 2019 to 2025, split into 2019–2022 and 2023–2025. The 9 daily tests are extra. They run from 2014 to 2025, because a daily chart has very few shooting stars, split into 2014–2021 and 2022–2025.
- Price data
- We use CFD prices. A CFD (contract for difference) is the product most brokers outside the US offer for trading these markets. The 1-hour and 4-hour tests start in 2019. Our index data before mid-2018 has hours with no price change on charts shorter than daily. We left out Bitcoin and other crypto. Our backtest engine charges Bitcoin a fixed spread of $86. That was more than 1% of its price in 2020, so every Bitcoin test would look far worse than it was. Our silver data has 7 minutes with wrong prices on 1 June 2023. No trade of the standard rules or of the 4 changes was open that day.
- Candles
- 1-hour candles start on the hour. 4-hour and daily candles start at 17:00 New York time, when the forex trading day starts. Our strategy code skips two kinds of candles. The first are tiny candles built from a few minutes of prices just after the Friday close. The second are candles with no price change, for example on market holidays. These skipped candles are never a shooting star, and they don't count for the 20 SMA, the 10-candle high or the 10 candles of a trade.
- Skipped stars
- Only one trade is open at a time, but this rule skipped few stars. A new star at a new high is above the open trade's stop-loss, so the open trade hits its stop-loss in the same candle. Our backtest engine looks for the new star first and closes the old trade after that. So the old trade still counts as open, and the new star is skipped. This happened 77 times on 1-hour charts, 13 times on 4-hour charts and 4 times on daily charts. One more 1-hour star came on the 10th candle of an open trade, which closed at the next open. When we traded each skipped star on its own, before trading costs, the 78 skipped stars on 1-hour charts lost 0.215R each on average, and the 13 on 4-hour charts made +0.348R each. One more star, on silver's 1-hour chart in December 2025, was too small to trade (see 'Smallest trade size').
- Smallest trade size
- Sometimes a trade that risks 1% would be smaller than the smallest trade the market allows: 1,000 units of a currency pair, 1 ounce of gold, 50 ounces of silver or 0.1 of an index contract. Then the test skips the star. With the standard rules, this happened once. There is also a leverage limit: a trade can be at most 30 times the account balance (30 to 1 leverage). When the stop-loss was very close to the entry price, the 1% size was bigger than that, so the test made the trade smaller, and it risked less than planned. On 1-hour charts, 37 of the 1,522 trades that hit the stop-loss lost less than 0.9R, most of them on the Dow Jones and silver.
The rules we tested
- Check each candle when it closes. The upper wick is the distance from the candle's high down to the higher of its open and close. The lower wick is the distance from the lower of the open and close down to the low. The body is the distance between the open and the close.
- The candle is a shooting star when its upper wick is at least 2 times as long as its body, and its lower wick is at most 10% of the candle's range (the distance from its high to its low). A candle that opens and closes at the same price counts too.
- The shooting star must come after a rise: it closes above its 20 SMA. The 20 SMA is the simple moving average of the last 20 closing prices, the star's close included.
- The shooting star must reach a new high: its high is the highest high of the last 10 candles, the star included.
- Sell short at the next candle's open. Selling short means you sell first and buy back later, so the trade makes money if the price falls. The strategy only sells.
- Put the stop-loss at the star's high, with no extra distance. It does not move. If price jumps past it, the trade closes at a worse price.
- Put the take-profit below the star's close, twice as far away as the stop-loss. For example, if the stop-loss is 20 pips above the star's close, the take-profit is 40 pips below the close. A pip is a small price step: 0.0001 on most currency pairs.
- If the trade has reached neither within 10 candles, close it at the next candle's open.
- Size every trade so that a loss at the stop-loss costs about 1% of the account. Only one trade is open at a time.
The method
How we tested it
The test
- Markets
- EUR/USD, GBP/USD, USD/JPY, AUD/USD, Gold, Silver, S&P 500, Nasdaq 100 and Dow Jones
- Charts
- 1-hour and 4-hour candles
- Dates
- January 2019 to December 2025
- Account
- $10,000, risking 1% of the account on each trade
- Trading costs
- Included. Every trade pays that market's normal trading cost: the spread, which is the gap between the buy price and the sell price.
How a test passes
We call a test passed only if it meets all four checks. A strategy can make money in one backtest and still fail one of these checks.
- At least 100 trades. With fewer trades, a good result could be luck.
- It made money from 2019 to 2022 and again from 2023 to 2025. This shows whether the strategy kept working in the newer years, not only in the older ones.
- A profit factor (the money won divided by the money lost) of at least 1.2 from 2023 to 2025, after trading costs.
- In 95% of 1,000 random shuffles of the trades, the account must not fall more than 30% from its highest point.
Improvements
Can the shooting star strategy be improved?
Traders disagree about which shooting stars to sell. Many wait for the next candle to close below the star's low before they sell. Some only trade shooting stars that closed below their open: a red candle on most charts. Some only sell when the longer trend is down, so the rise before the star was a short rise inside a longer fall. Others only trade big shooting stars, because a small one on a quiet hour means little. We tested each change on its own, on the same 18 tests. A change picked and judged on the same years can look good by luck. So we picked the version that made money in the most tests in 2019–2022. Then we checked it on 2023–2025, years we did not use to pick it.
| Version | Made money 2019–2022years used to pick the best version | Made money 2023–2025years not used to pick it | Made money in both periods | Passed all four checks |
|---|---|---|---|---|
| Standard rules The rules under 'The rules we tested', with nothing added. | 5 of 18middle test −4.5% | 6 of 18middle test −6.8% | 0 | 0 |
| With a confirmation candle After the shooting star, wait one candle. If that candle closes below the star's low, sell at the open of the candle after it. If it does not, there is no trade. The stop-loss goes at the higher of the two candles' highs. The take-profit is twice as far below the confirmation candle's close as the stop-loss is above it. | 4 of 18middle test −2.7% | 5 of 18middle test −0.8% | 0 | 0 |
| Only stars that closed below their open Trade the shooting star only when it closed below its open, so the candle is red on most charts. Everything else is the same as the standard rules. | 6 of 18middle test −3.2% | 5 of 18middle test −0.9% | 0 | 0 |
| Only below the 200 EMA Trade the shooting star only when it closes below the 200 EMA, so the longer trend is down. The 200 EMA is the average of the last 200 closes, with more weight on the newest ones. Everything else is the same as the standard rules. | 7 of 18middle test −3.2% | 5 of 18middle test −1.8% | 0 | 0 |
| Big shooting stars onlyBest on 2019–2022 Trade the shooting star only when its range, from its high to its low, is at least the ATR(14): how far price moves in an average candle, over the last 14 candles. Everything else is the same as the standard rules. | 7 of 18middle test −1.6% | 7 of 18middle test −3.7% | 1 | 0 |
No, not reliably. Big shooting stars made money in the most tests in 2019–2022: 7 out of 18. Selling only below the 200 EMA also made money in 7. We picked big shooting stars because their middle test, ranked by result, lost less: −1.6%, against −3.2%. In 2023–2025, the years we kept for the check, big shooting stars made money in 7 out of 18 again, but mostly in different tests. Only 2 tests made money in both periods: USD/JPY on the 1-hour chart (+7.5% over 116 trades) and the Nasdaq 100 on the 4-hour chart (+10.0% over 17 trades). Neither passed all four checks (see 'How a test passes'). On 1-hour charts, big shooting stars lost money on 8 of the 9 markets. On 4-hour charts, they broke even on average, 0.000R per trade over 229 trades.
Questions
Questions traders ask
Is a shooting star bullish or bearish?
Bearish. Traders read a shooting star as a sign that the rise is over, so they sell. In our backtest, selling after it lost money. On 4 currency pairs, gold, silver and 3 US stock indices, from 2019 to 2025, 13 out of 18 tests on 1-hour and 4-hour charts lost money. The 3,002 trades lost 0.135R each on average, after trading costs (R is the amount a trade risked: 1% of the account). The same candle after a fall is called an inverted hammer, and traders buy it.
What is the success rate of the shooting star pattern?
About 1 trade in 3 made money in our backtest, after trading costs. With the standard rules, 33.9% of the trades made money on 1-hour charts, 34.8% on 4-hour charts and 34.2% on daily charts. On 1-hour charts, 25.7% of the trades reached the take-profit at 2R and made 1.91R on average. Another 12.5% closed after 10 candles and made +0.32R on average. The other 61.7% of the trades hit the stop-loss and lost 1.10R on average, a little more than 1R because of trading costs. After costs, the trades lost 0.146R each on average.
Should you wait for confirmation after a shooting star?
Waiting lost less in our backtest, but it did not make the shooting star profitable. With confirmation, we waited for the next candle to close below the star's low, then sold at the open after it. On 1-hour charts, the confirmed trades lost 0.116R each, against 0.146R with the standard rules. On 4-hour charts, they lost 0.051R, against 0.080R. More of them made money: 37.6% on 1-hour charts and 39.2% on 4-hour charts, against 33.9% and 34.8% with the standard rules. But confirmation took 63% fewer trades than the standard rules. It made money in 1 out of 9 tests on 1-hour charts and 4 out of 9 on 4-hour charts.
What is the difference between a shooting star and a pin bar?
A shooting star is a kind of bearish pin bar. Both have a long upper wick and a small body near the low. Most guides use the name shooting star only for a pin bar with its long wick on top, after a rise, and with almost no lower wick. Our pin bar test trades both buy and sell pin bars, on other years and markets, so the results are not directly the same. But on 1-hour charts, the pin bar trades about broke even before trading costs (−0.010R per trade, 2007–2025). The shooting star trades here lost about 0.058R per trade before costs, and 0.146R after them.
Keep exploring
Related strategies we tested
Candlestick patterns Pin bar strategy backtest Made money in 7 of 30 tests, 0 of them in both periods. Best: Gold, 4-hour, +51% Candlestick patterns Bullish engulfing strategy backtest Made money in 8 of 20 tests, 3 of them in both periods. Best: DAX, 1-hour, +127% Candlestick patterns 15 candlestick patterns tested and ranked Made money in 10 of 24 tests, 3 of them in both periods. Best: DAX, 1-hour, +38%The strategy code we ran
This is the exact code from the BacktestingMax strategy engine. Paste it into the strategy editor in the app to run it on any market.
class ShootingStar(Strategy):
"""The shooting star at a high after a rally, as candlestick traders trade it, plus the
changes they argue about. Sells only.
The shooting star is one candle with a long upper wick and almost no lower wick:
upper wick = high - the higher of open and close
body = the distance between open and close
lower wick = the lower of open and close - low
The upper wick is at least 2 times the body, and the lower wick is at most 10% of the
candle's range (high - low). A body of zero, a gravestone doji, counts.
And it has to appear in the right place:
- at a 10-candle high: its high is at or above the highest high of the last 10 candles
(the star included)
- after a rally: its close is above its 20 SMA, the average close of the last 20 candles
(the star included)
Standard (all switches off):
Sell short at the next candle's open, with a market order.
Stop-loss at the star's high. R is the distance from the star's close up to the stop-loss.
Take-profit 2R below the star's close.
If neither is hit within 10 candles, close the trade at the next candle's open.
Size every trade so that the stop-loss loses 1% of the account. When that is less than the
smallest trade size the market allows, the signal is skipped. One trade at a time: a star
that appears while a trade is open is not traded.
Skipped candles: a candle that opens on a Friday at 17:00 New York time or later, or on a
Saturday (some data has a few minutes of prices after the weekly close, which make a tiny
extra candle), and a candle with no range (high = low, a market holiday). They are never part
of a pattern, and they don't count in the averages, the 10-candle high or the 10 candles of a
trade. On a market that trades at the weekend, remove the Friday and Saturday rule.
The changes, one at a time:
confirm = 1 wait for a confirmation candle: the next candle must close below the star's
low, and the trade opens at the open after it. The stop-loss goes at the
higher of the star's high and the confirmation candle's high; R and the
take-profit are measured from the confirmation candle's close
red = 1 only stars that closed below their open (a red candle). A doji is not red
trend = 1 only when the star closes below its 200 EMA: selling with the longer trend,
where the rally was a pull-back in a fall
big = 1 only stars whose range is at least the ATR(14): the average true range of the
last 14 candles, the star included
A fair control, to compare with (not a change traders make):
control = 1 the same place without the shooting star shape: a candle at a 10-candle high
that closes above its 20 SMA but is NOT a shooting star. Sell at the next open
the same way. Because these candles often close at their high, the stop-loss
goes one candle range above the close; R is measured from the close. Same 2R
take-profit and 10-candle exit
"""
params = {"wick_mult": Param(type=float, default=2.0, min=0.5, max=10.0),
"high_bars": Param(type=int, default=10, min=2, max=200),
"sma_period": Param(type=int, default=20, min=2, max=200),
"target_r": Param(type=float, default=2.0, min=0.5, max=10.0),
"max_bars": Param(type=int, default=10, min=1, max=100),
"confirm": Param(type=int, default=0, min=0, max=1),
"red": Param(type=int, default=0, min=0, max=1),
"trend": Param(type=int, default=0, min=0, max=1),
"big": Param(type=int, default=0, min=0, max=1),
"control": Param(type=int, default=0, min=0, max=1)}
lookback = 2
def init(self, ctx):
self.ny = ctx.clock("America/New_York")
self.closes = [] # closes of the last 20 candles used, oldest first
self.highs = [] # highs of the last 10 candles used, oldest first
self.trs = [] # true ranges of the last 14 candles used, oldest first
self.seed = [] # the first 200 closes used, to start the 200 EMA
self.ema = None # the 200 EMA over the candles used (None until 200 exist)
self.prev_close = None # the previous candle used: its close
self.k = 0 # candles used so far
self.entry_k = None # the candle at whose close the trade's order was placed
self.pending = None # confirm = 1: a star waiting for its confirmation candle
def on_bar(self, ctx):
o, h, l, c = ctx.open[0], ctx.high[0], ctx.low[0], ctx.close[0]
weekday, hour = self.ny.weekday, self.ny.hour
if (weekday == 4 and hour >= 17) or weekday == 5 or h <= l:
return # a tiny candle after the Friday close, or a candle with no range
p = ctx.params
self.k += 1
# Everything below is worked out over the candles used only.
self.closes.append(c)
del self.closes[:-p.sma_period]
sma = sum(self.closes) / p.sma_period if len(self.closes) == p.sma_period else None
self.highs.append(h)
del self.highs[:-p.high_bars]
if self.prev_close is not None: # the first candle has no previous close, so no true range
self.trs.append(max(h, self.prev_close) - min(l, self.prev_close))
del self.trs[:-14]
atr = sum(self.trs) / 14 if len(self.trs) == 14 else None
if self.ema is not None:
self.ema += (2 / 201) * (c - self.ema)
elif len(self.seed) < 200:
self.seed.append(c)
if len(self.seed) == 200:
self.ema = sum(self.seed) / 200
self.prev_close = c
pending, self.pending = self.pending, None
if ctx.position is not None:
if self.entry_k is not None and self.k - self.entry_k >= p.max_bars:
ctx.close_position() # 10 candles in the trade: close at the next open
return
if pending is not None:
# confirm = 1: the candle after the star must close below the star's low.
# It can't start a new pattern.
star_low, star_high = pending
if ctx.gate("confirmation_close", c < star_low):
self.enter(ctx, max(star_high, h), "shooting_star")
return
if sma is None or len(self.highs) < p.high_bars:
return
if not ctx.gate("at_10_candle_high", h >= max(self.highs)):
return
if not ctx.gate("close_above_sma", c > sma):
return
body = abs(c - o)
rng = h - l
upper = h - max(o, c)
lower = min(o, c) - l
star = upper >= p.wick_mult * body and lower <= 0.1 * rng
if p.control == 1:
if not ctx.gate("not_a_shooting_star", not star):
return
self.enter(ctx, c + rng, "control")
return
if not ctx.gate("shooting_star_shape", star):
return
if p.red == 1 and not ctx.gate("closed_red", c < o):
return
if p.trend == 1 and not ctx.gate("below_200_ema", self.ema is not None and c < self.ema):
return
if p.big == 1 and not ctx.gate("range_at_least_atr", atr is not None and rng >= atr):
return
if p.confirm == 1:
self.pending = (l, h)
return
self.enter(ctx, h, "shooting_star")
def enter(self, ctx, stop, tag):
entry = ctx.close[0] # market order at the next open; R is measured from this close
size = ctx.size_by_risk_pct(0.01, stop=stop, entry=entry)
if not ctx.gate("trade_size_allowed", size > 0):
return # 1% of the account is less than the smallest trade size: skip the signal
order = ctx.sell(size=size, sl=stop, tp_r=ctx.params.target_r, tag=tag)
self.entry_k = self.k
return order
Your turn
Test the shooting star strategy yourself
Change the settings, the market or the stop-loss and see the result in seconds. Ask the BacktestingMax AI: Backtest a shooting star strategy on EUR/USD, 4-hour chart: sell short at the next candle's open after a candle whose upper wick is at least 2 times its body, whose lower wick is at most 10% of its range, whose high is the highest of the last 10 candles, and which closes above the 20 SMA; stop-loss at the candle's high, take-profit at 2R from its close, close the trade after 10 candles if neither is hit, 1% risk per trade
.
Free account. No credit card needed.
See every strategy we tested Browse strategies shared by tradersBacktest on historical data with trading costs, run by BacktestingMax. Past results do not guarantee future results, and nothing here is financial advice. Updated 23 November 2026.