Strategy 250 XAUUSD - Composite Quality Score at a glance
| Kind of rule | Breakout |
|---|---|
| Buys or sells | It can buy, and it can bet on falling prices. |
| Built on | ATR, Donchian Channels, EMA |
| Where it was published | TradingView, by its author, as a Pine Script strategy |
| Tested on | 60 cells: 13 coins on 5 chart speeds (15m, 30m, 1h, 4h, 1D), October 2021 to June 2026 |
| Fee in the test | 0.12 percent per side, buys only |
| Middle result after fees, every cell | −13.7% |
| Cells above zero | 26 of 60 |
| Cells that cleared the quality check | 4 of 60 |
| Middle drawdown, every cell | 105.1% (above 100 means the whole account, scaled for open-trade falls) |
| Page updated | 2026-11-08 |
Strategy 250 XAUUSD - Composite Quality Score backtest results, every cell
Every cell is in the picture, not only the strongest. To the right of the black line is above zero. The orange line, when you see one, is the middle.
How Strategy 250 XAUUSD - Composite Quality Score works
Rules in this group usually work like this. It buys when price pokes above a recent high, and it bets on a fall when price pokes under a recent low. It is wrong often. It pays for those false starts with the few times price keeps going. How far back it looks decides how many pokes it takes. The next paragraph is this particular rule, which can be narrower than the group.
It can buy, and it can bet on falling prices. It acts only when several checks agree at once. It leans on ATR, EMA; those names are explained on their own pages, further down. The exact line is in the list below, in the author's names, and you can skip that list. It gets out when another set of checks agrees. That line is in the list below too.
Each trade uses 95 percent of the account. It holds one trade at a time.
The exact condition, from the code
Same rule, translated from the code, in the author's names. You can skip this list if the paragraph above was enough.
- Enters long when the 14-period ATR is above 0 and (macro high − macro low) is above 0 and Permitir longs (on) and no position is open and the close is above the highest high of the previous 50 bars and quality score is at or above Minimum Quality Score (0.8) and EMA slope is above 0.
- Enters short when the 14-period ATR is above 0 and (macro high − macro low) is above 0 and Permitir shorts (on) and no position is open and the close is below the lowest low of the previous 50 bars and quality score is at or above Minimum Quality Score (0.8) and EMA slope is below 0.
- Closes the position when a long position is open and (the close is below the lowest low of the previous 50 bars or (the bar index − entry bar index) is at or above Máximo de barras en posición (80)).
- Closes the position when a short position is open and (the close is above the highest high of the previous 50 bars or (the bar index − entry bar index) is at or above Máximo de barras en posición (80)).
| Buys or sells | It can buy, and it can bet on falling prices. |
|---|---|
| Tools it calculates | ATR, Donchian Channels, EMA |
| A second chart speed | No. It uses one chart speed only. |
| Only at certain hours | No. |
| Adding to a trade | It holds one trade at a time. |
| How much it trades | Each trade uses 95 percent of the account. |
| Cost the author assumed | The author assumed a trading cost of 0.02 percent per side. |
Default settings
The test used the defaults in the middle column. Nothing was turned to help a coin.
| Setting | Default | Group |
|---|---|---|
| Donchian Period | 50 | |
| Macro Bias Period | 600 | |
| EMA200 Slope Period | 30 | |
| Acceptance Lookback | 20 | |
| Sweep Lookback | 20 | |
| Minimum Quality Score | 0.8 | |
| Máximo de barras en posición | 80 | |
| ATR Length | 14 | |
| EMA Length | 200 | |
| Permitir longs | on | |
| Permitir shorts | on | |
| Mostrar señales | on | |
| Mostrar Donchian / EMA | on | |
| Mostrar score en panel | off |
How the backtest was run
Every strategy was tried the same way, on the settings the author published.
The years are October 2021 to June 2026. The prices are from Bybit, for 13 widely traded coins, mostly on hourly, 4-hour and daily charts, with some faster charts. That was 47,242 tries. The window stored in the files is 2021-09..2026-06.
599 rules produced a finished try. A rule that finished above zero on at least 12 cells, before any fee, was tried again with a fee of 0.12 percent per side. Only buys are counted in that second try. 273 rules got it.
The method, the aggregate results and a downloadable table are on the study page. What the desk does with the results beyond these pages is its own.
This is the second pass. A fee of 0.12 percent per side is taken on the buy and again on the sell. Only buys are counted. If the rule also bets on falling prices, those trades are not in these numbers.
After fees, 26 of 60 cells finished above zero (43.3%). The median of every cell was −13.7%.
4 of the cells cleared a quality check: at least 50 trades, gains that are not one lucky trade, and a drawdown that is real without taking the whole account.
Finished above zero by chart speed: 15-minute chart, 15m 0 of 12; daily chart, 1D 6 of 9; hourly chart, 1h 10 of 13; 30-minute chart, 30m 2 of 13; 4-hour chart, 4h 8 of 13.
Before fees, it sat 4th on a list sorted by average net return. That list charges no fee.
| Cells tried after the fee | 60 |
|---|---|
| Finished above zero | 26 (43.3%) |
| Middle result, the median of every cell | −13.7% |
| Middle drawdown, every cell | 105.1% |
| Cells that cleared the quality check | 4 |
| Middle result, over the cells that cleared the quality check | +52.6% |
| Extra, Calmar on the checked rows. Result divided by the deepest fall | 0.72 |
| Extra, Sharpe on the checked rows. Result divided by how bumpy the path was | 0.04 |
| Middle drawdown, the checked rows | 72.9% |
| Deepest fall, the checked rows | 79.6% |
| Middle number of trades, the checked rows | 228 |
Label: backtest · old prices, buys only, a fee of 0.12 percent per side, every cell · Oct 2021 – Jun 2026. Hypothetical results; see the risk disclosure.
How to read the result
How to read the number
The median of every cell is the result of the rule. The author's settings were not changed to help any coin. The weakest and the strongest cells are not a result on their own.
What the number leaves out
The table also shows +52.6%, taken only over the cells that cleared the quality check. Cells that finished down are left out of that figure, which is why it stands away from the median of every cell. It describes those rows only.
4 of 60 cells cleared a quality check: at least 50 trades, a profit factor that is not one lucky trade, and a drawdown that is real without taking the whole account. Profit factor means the gains divided by the losses. Clearing the check describes this sample. It says nothing about the next set of years.
The count above is also split by chart speed. A speed that finished higher, in these years, is one slice of the same rule. It is not a separate strategy.
A place on the no-fee list is not the result after fees. The middle number above is the one after fees.
What this does not show
The useful question is what the false starts cost. Count the trades, not the one that kept going.
Nothing on this page was fit to the cell that finished highest. One coin, one chart speed, or one strong stretch is a single row. It is not the rule. Other years, another exchange, or another fee would be a different measurement.
Questions about Strategy 250 XAUUSD - Composite Quality Score
What is Strategy 250 XAUUSD - Composite Quality Score?
Strategy 250 XAUUSD - Composite Quality Score is a breakout trading strategy published on TradingView as a Pine Script. It can buy, and it can bet on falling prices. It is built on ATR, Donchian Channels, EMA. This page reads the rules from the code and reports what they did on old crypto prices.
How does Strategy 250 XAUUSD - Composite Quality Score work?
It can buy, and it can bet on falling prices. It acts only when several checks agree at once. It leans on ATR, EMA; those names are explained on their own pages, further down. The exact line is in the list below, in the author's names, and you can skip that list. It gets out when another set of checks agrees. That line is in the list below too.
Is Strategy 250 XAUUSD - Composite Quality Score profitable in a backtest?
In this backtest, more cells lost than gained. After a fee of 0.12 percent per side, 26 of 60 cells finished above zero and the median of every cell was −13.7%. A backtest is a replay on old prices, so it describes these coins and these years, not a future result.
What was the drawdown of Strategy 250 XAUUSD - Composite Quality Score?
The median drawdown across every cell was 105.1%, and the deepest fall in any cell was 243.0%. Drawdown is the deepest fall from a high point along the way, as a percent of the account at that high. A figure above 100 means the table scaled the fall up, because the open-trade fall went deeper than the closed-trade one; read it as a fall that took the whole account.
Which timeframe suited Strategy 250 XAUUSD - Composite Quality Score?
Counted by cells above zero: 15-minute (15m) 0 of 12; 30-minute (30m) 2 of 13; hourly (1h) 10 of 13; 4-hour (4h) 8 of 13; daily (1D) 6 of 9. The hourly chart had the largest share above zero in these years. A chart speed that did better here is one slice of the same rule, not a separate strategy.
Where can I find the Strategy 250 XAUUSD - Composite Quality Score script?
It is published on TradingView by its author. Search TradingView for the title to find the original script. This page is an independent reading and is not affiliated with the author.
What does backtest mean on this page?
Backtest means the rule was replayed on old prices from Bybit. No real money moved. Every number on this page carries that label, and old prices do not promise anything about new ones.
Words used on this page
- Backtest
- The rule was tried on old prices. No real money moved.
- Cell
- One coin on one chart speed. Bitcoin every 4 hours is one cell. Bitcoin once a day is another.
- Chart speed
- How often a new price bar is drawn. 15m means every 15 minutes, 1h means hourly, 4h means every 4 hours, 1D means once a day.
- Fee, per side
- A cost taken each time the rule trades. Per side means once on the way in and once on the way out.
- Median
- Line the cells up from the biggest loss to the biggest gain. The median is the middle one. Half the cells did better and half did worse.
- Drawdown
- The deepest fall from a high point along the way, as a percent of the account at that high.
- Above zero
- The account finished with more than it started.
The indicators Strategy 250 XAUUSD - Composite Quality Score uses
Each has its own page: what it measures, how it is read, where it misleads.
- ATR (average true range): the volatility number behind most stops
- Donchian Channels: the highest high and lowest low, and the breakout rule they define
- Exponential moving average (EMA): what it measures and where it misleads
"Strategy 250 XAUUSD - Composite Quality Score" was published on TradingView by its author, under the author's own license. This page is an independent reading of those rules and of what they did on these old prices. It is not written with the author, and it is not a recommendation. Not every detail survives the translation onto this page, so read the original before you rely on it.