Skip to content
✦ SOURCE CODE 3 editable source-code editions · code EARLYBIRDSCRIPT saves $200 ($599 → $399) · through Dec 1, 2026 Explore editions ↗ ◆ SMART TRADER Premium scripts + 90+ optimization releases + private Discord · $29/month Join membership ↗ ⌘ PRIVATE CODING Develop a custom TradingView strategy with TradeSmart How it works ↗ ◈ OPTIMIZATION Research your own asset, timeframe and trading rules See the process ↗
Source Code Editions / Optimization #0049

TRADESMART / SOURCE CODE #0049

Gold / OANDA:XAUUSD30-minuteLong only
Gold One Trade a Day

Take partial profits. Keep some exposure to the move.

A structured Gold range breakout with StochRSI confirmation. Partial take profit realizes a portion of the move while a trailing stop or momentum exit manages the remainder.

✓ Editable Pine Script✓ Tested with commissions✓ Strategy + automation guides
STRATEGY PREVIEW / HISTORICAL EXAMPLEOANDA:XAUUSD · 30-minute
Actual Gold One Trade a Day historical TradingView trade example
PROFIT FACTOR2.206
CLOSED TRADES393
MAX INTRABAR DD20.27%
✓ COMMISSION INCLUDEDTradingView net P&L already reflects trading commissions
WHY THIS OPTIMIZATION?

A distinctive strategy. Evidence beyond release.

More than two years beyond the June 2024 release. The current export contains historical trades that closed after the original optimization release date. These are post-release historical replay results, not audited live forward trading.

See this edition on Patreon ↗
ORIGINAL RELEASE2024-06-25Optimization window is an assumed four-year estimate
POST-RELEASE CLOSES144Historical exit records
POST-RELEASE PROFIT FACTOR1.825Based on exited trades in latest report
LATEST EXIT IN REPORT2026-10-18Nov 4, 2026 export · cost assumptions applied
01

Partial profit, with a runner

A first ATR-based target closes part of the Gold position; the remainder can follow the trend.

02

Momentum-qualified range break

StochRSI plus trend and momentum checks evaluate a daily Gold breakout.

03

Extended post-release history

The non-compounding historical replay covers more than two years after the published 2024 release.

The period after the initial optimization date was not included in the documented initial optimization window; a present-day re-run is not an independent, audited forward track record. No benchmark outperformance is claimed without a matched buy-and-hold comparison adjusted for market, exposure and costs.

HISTORICAL PERFORMANCE / INTERACTIVE DATA

Explore the performance history.

From the supplied TradingView closed-trade reports. Compare sizing modes, release periods and the underlying trade history — with costs already included.

Historical equity · closed-trade eventsOANDA:XAUUSD · November 4, 2026 export
Compare from $10,000Normalized display from original $100,000 backtests · Not a new $10,000 simulation
VIEW PERIOD
HORIZONTAL AXIS
One exit event = one step in Trade view; no artificial flat periods when no trades occur.
Loading historic close data…
Optimization start: 2020-06-25Optimization end: 2024-06-25Release: 2024-06-25
PERFORMANCE SNAPSHOT Selected historical period
Profit factor—
Exit events—
Max intrabar DD—
Net profit (10K display)—
✓ TradingView net equity includes modeled feesDetailed execution assumptions below

Commission & slippage · each entry and exit

Commission / side0.5 USD per contract
Slippage / side150 ticks (0.15 USD gold-price movement)

Settings from the supplied October 29, 2026 TradingView export. Slippage is a price movement, not necessarily a monetary fee. The equity explorer uses the separately imported November 4 report.

See original report commission total & $10K comparison methodology

Report commission paid: Loading…. This is the commission portion only; modeled slippage is not included.

At some assets the backtest models execution costs using slippage instead of commission, so those costs do not appear in the commission-paid total. Net profit already includes modeled commissions. When the $10K visual comparison is selected, the displayed commission figure is proportionally scaled for comparison only; neither it nor the equity is a new $10K TradingView backtest. Total commissions may exceed the final net profit because the former sums fees across all trades while the latter nets gains, losses and costs. See the methodology notes for details.

Optimization dates estimated as four years before the documented release; they are not independently verified. After-release results are historical replay, not independently audited live performance. $10K view proportionally scales the reported $100K equity and net dollars for comparison only; real $10K TradingView position sizing, especially NQ futures contract rounding, can produce different trades, fees and drawdowns.

Combined-view figures match the selected TradingView export's summary where provided. Period-filtered profit factor and drawdown are recomputed from closed-exit data; they are not TradingView intrabar metrics.

ⓘ How these backtests and period views are calculated

Non-compounding fixed-capital risk scenario. Trade-by-trade view uses equal horizontal spacing for every closed exit event; Calendar view reflects the actual event dates. Data exported on November 4, 2026. Reported account equity is initial capital plus cumulative realized net P&L. Closed-exit snapshots cannot reproduce the intrabar drawdown. Separate compounding/non-compounding modes are independent TradingView backtests, not a simple equity multiplier. Period selections only show trades exited inside those dates, re-based to the starting capital of the report.

Historical TradingView replay; net results include modeled commissions. The shown $10K comparison is a visualization normalized from a $100K original report, not a $10K trading simulation. The original backtest initial capital is $100,000 for each export. In some reports, charges on an open trade can make the official summary Net Profit differ slightly from the last closed-exit equity point. Commission paid is reported separately in the source file, while the TradingView Net Profit and cumulative net equity already include that cost. At some assets, additional modeled execution cost is captured through slippage rather than commission, so the commission figure alone is not the full cost picture. Total commission paid can exceed final net profit because it reflects cumulative turnover, not the final balance outcome. The $10K comparable chart applies a 0.1 visual scale to account equity changes and, for easier comparison, proportionally scales the displayed commission amount; it does not rerun trades, alter commissions, respect contract minimums or establish achievable $10K returns. Historical hypothetical returns are not independently audited live results and may differ materially from future execution. See the original optimization research →

STRATEGY ANATOMY / RULE-BASED PROCESS

From signal to managed trade.

Take partial profits. Keep some exposure to the move. Here's the trading logic at a glance — not the proprietary optimized parameter values.

BUILT FORGold traders who prefer a rule-based daily routine and want to customize entries, filters, and partial-exit behavior.
See how it looks on a chart ↗
01↗

Observe the range

A structured daily price window defines the breakout area

02↗

Confirm the move

Breakout and StochRSI criteria qualify the entry

03↗

Bank a portion

Partial take-profit closes part of the position

04✓

Manage the runner

Trailing stop or momentum condition handles what remains

ACTUAL TRADINGVIEW EXAMPLES

See it on the chart.

Real examples supplied with this strategy. These are historical examples, not a promise of typical future trades.

Click a trade screenshot to enlarge. These are actual historical chart examples, not a representative average trade.

WHAT YOU GET

Your exact source-code edition. Not a generic script.

You receive the full editable optimization-specific variation of our Premium Strategy, with every feature needed for this particular optimization and its optimized defaults. This is not the unmodified general-purpose Premium script with every optional feature. Smart Trader membership provides invite-only access, not source-code ownership.

⌘
Pine Script sourceEditable strategy file · full logic
INCLUDED
⌘Optimization-specific Pine sourceFull editable logic required for this optimization.
⚙Optimized defaultsProvided inside the script.
▣Strategy usage guideSetup instructions and strategy description.
↗Automation guideTradingView alerts and supported external integrations.
NEXT BEST STEP

Use the existing evidence before deciding.

Review the historical chart examples, inspect the interactive equity explorer, then compare the product scope and licensing below. This section intentionally stays lightweight until a dedicated walkthrough video exists.

✓Examples + interactive performance already availableUse the evidence above now; a dedicated walkthrough video may be added later
ONE-TIME SOURCE CODE PURCHASE

Research it. Understand it. Own the code.

The complete optimization-specific Pine Script source and setup documentation for Optimization #0049. Designed for traders who want to inspect, customize or personally automate their own edition.

  • Personal use only — no resale, re-upload or redistribution
  • No ongoing membership or recurring license fee for this product
  • Instant downloadable delivery once purchased through the official Patreon Shop listing
  • No dedicated individual support included; occasional questions may be answered at TradeSmart's discretion
  • Digital purchases are non-refundable except where applicable law requires otherwise
FREQUENTLY ASKED

Everything important before you buy.

Can I inspect, change and automate the Pine code?

Yes. You receive the complete editable source code variation modified for this optimization, containing the features required by its optimized defaults, plus usage and automation guides. It is not the unmodified general-purpose Premium Script with all optional features. TradingView alerts can connect to supported brokers and third-party execution services, but setup and independent testing are required.

Does the strategy repaint?

The supplied strategy is designed not to repaint confirmed historical entries. Live execution and intrabar behavior still depend on your TradingView alert configuration and broker fills.

Is this suitable for beginners?

Adding a Pine strategy to TradingView is straightforward. Automated execution involves additional alert, account and broker configuration; use the included instructions and test with simulated execution first.

Does it include Smart Trader membership and Discord?

No. The source-code purchase is separate from the $29/month Smart Trader membership. Membership includes eligible invite-only strategy access, presets and private Discord, but does not include editable source code.

What are the license, support and refund terms?

The one-time purchase is for personal use only. Resale, re-upload and redistribution are not permitted. Dedicated support is not included. Digital product sales are non-refundable except where required by law; always review the final Patreon Shop checkout and applicable terms.

Are the displayed results guaranteed?

No. All charts show hypothetical TradingView historical backtests rather than independently verified live trading. Results are sensitive to fees, liquidity, slippage, position sizing and future market conditions.

SOURCE CODE #0049$399 with EARLYBIRDSCRIPT
Patreon Shop ↗