Strategy · Gold futures
Outside Bar Range Break
A gold breakout strategy for the 5- and 15-minute charts. It trades strong candles that break an early-session range, with a fixed stop and target and a daily trade limit.
Last 90 days
Default settings, one contract. Switch between the 15-minute and 5-minute chart.
Aug 18, 2026 – Nov 16, 2026 · 90 days · MGC 15m · 1 contract · commission and slippage included · TradingView Strategy Tester
Equity curve · 15m
Cumulative profit, trade by trade.
Same 15m chart, different settings
| Settings | Risk : reward | Trades | Win rate | Net profit | Profit factor | Max drawdown | Avg win / avg loss |
|---|---|---|---|---|---|---|---|
| Onyx defaultDEFAULT | 1 : 0.5 | 50 | 82% | +$2,716 | 2.38 | $805 | $114 / $218 |
| 1 : 1 + stop to entry when in profit | 1 : 1 | 46 | 50% | +$3,500 | 2.82 | $938 | $236 / $84 |
| Slightly bigger target | 1 : 0.75 | 46 | 80% | +$4,512 | 3.31 | $747 | $175 / $217 |
| Plain 1 : 1 | 1 : 1 | 45 | 69% | +$4,216 | 2.35 | $1,195 | $236 / $222 |
| Tighter stop, big target | 1 : 1.5 | 45 | 49% | +$2,305 | 1.53 | $1,639 | $301 / $188 |
Aug 18, 2026 – Nov 16, 2026 · 90 days · MGC 5m · 1 contract · commission and slippage included · TradingView Strategy Tester
Equity curve · 5m
Cumulative profit, trade by trade.
Same 5m chart, different settings
| Settings | Risk : reward | Trades | Win rate | Net profit | Profit factor | Max drawdown | Avg win / avg loss |
|---|---|---|---|---|---|---|---|
| Onyx defaultDEFAULT | 1 : 0.5 | 133 | 75% | +$1,952 | 1.46 | $658 | $62 / $130 |
| 1 : 1 + stop to entry when in profit | 1 : 1 | 127 | 35% | +$1,257 | 1.30 | $895 | $124 / $51 |
| Slightly bigger target | 1 : 0.75 | 128 | 66% | +$2,279 | 1.39 | $1,059 | $96 / $132 |
| Plain 1 : 1 | 1 : 1 | 121 | 56% | +$1,564 | 1.22 | $1,536 | $127 / $134 |
| Tighter stop, big target | 1 : 1.5 | 118 | 46% | +$1,819 | 1.26 | $1,233 | $163 / $109 |
Win rate is a setting, not the goal
High win rate by default
The default target is half the stop, so most trades win (82% on 15m). The trade-off: an average loss ($218) is bigger than an average win ($114).
1 : 1 wins less, earns about the same
With 1 : 1 and the stop moved to entry once in profit, the win rate drops to 50% on 15m, yet it made +$3,500 vs +$2,716 for the default. On 5m it was +$1,257 vs +$1,952. Many trades end at break-even instead of a small win (break-even counts as not a win).
Choose what you can sit through
Same signals, different feel. Pick the setting whose drawdown and losing streaks you can actually trade through.
Try it with your account rules
Pick a timeframe and setting, your contracts and your prop-firm limits. The calculator replays the same 90 days of trades with those rules.
Account rulesView
How it works: each trade's result is multiplied by your contracts and replayed in order. The account stops when it reaches the profit target (passed) or breaks a loss rule (failed). End-of-day trailing follows your highest closing balance; intraday trailing follows your highest balance after each trade; both stop trailing where the firm says. Loss rules are checked when each trade closes, so a trade that dips further mid-trade is not caught, and consistency rules, minimum trading days and fees are not modelled. Firm rules change often: always check the firm's own site before buying. Same backtest trades as above, so the same limitations apply. Firm names and logos are trademarks of their owners; Onyx Algos is not affiliated with or endorsed by any of these firms.
What you see on the chart
The range and its edges
The session range is drawn each day, with its high and low extended through the trading window.
Entry, stop and target lines
Every trade shows its entry, stop loss and take profit with prices, marked TP hit or SL hit when it closes.
Status panel and alerts
A small panel shows today's range, trades taken and the open trade. Alerts include the stop and target prices.
Get access to Outside Bar Range Break
It is invite-only on TradingView. Subscribe monthly and we add access to your TradingView account.