GoldDigger setup
At a glance
EIGHTCAP:XAUUSD
1 hour
Long and short
Next bar’s open
Ounces of gold
One alert

Set it up
Add it to your chart
On TradingView, open Indicators → Invite-only scripts and click GoldDigger in the list of PineIndicators scripts. Or open the ready-made layout and save a copy (Copy at the top right, or layout menu → Make a copy…).- You should see: GoldDigger at the top left of the chart, the status panel at the top right.
- If not: Access not showing
Set the chart
SymbolEIGHTCAP:XAUUSD, timeframe 1 hour, chart type Candles.- You should see: The panel shows ● Ready.
- If not: Read the panel’s line
Choose your size
Open the settings (gear icon next to the name). Inputs → Position sizing: Optimized. Order size (% / quantity): type 170 × your multiplier (×1 =170, ×2 =340; ×1 is the size our published results use; in a portfolio also × its weight, see Portfolio and multiplier). Properties → Initial capital: your account size.- You should see: Next order in the panel: the next quantity and its % of equity.
- If not: Position size
Set the start date
Live trading: set Start date to today.- You should see: Past trades disappear from the chart. That is normal.
Choose where alerts go
Inputs → Send alerts to: keep Custom for your old messages, or pick your service.- If not: Where do you trade?
Create one alert
Condition GoldDigger (Interval as it is). Message: delete TradingView’s own text, paste{{strategy.order.alert_message}}. Your service’s webhook URL.- You should see: The alert in the Alerts list, status Active.
- If not: Alert didn’t fire
After any change, a new alert
After any change of the settings or an update: delete the alert and create it again.


Every step in detail: create the one alert · the start date
Where do you trade?
Your exchange’s signal bot
Send alerts to:
Step by stepBybitBinanceOKXBitgetWunderTradingCustomYour bridge’s webhook
Send alerts to:
Step by stepWebhook (JSON)TradersPost
Send alerts to:
Step by stepStrategy guideWebhook guideTradersPostPineConnector
Send alerts to:
Step by stepEA guideLicense ID guidePineConnector (MT4/MT5)· Ounces per lot (PineConnector): 100Alerts on your phone
Send alerts to:
Step by stepPlain text
Every setting
The defaults of the current version. You decide every value.
Inputs tab
| Input | In plain words | Default |
|---|---|---|
| Order size (% / quantity) | How big each order is: a percentage in Optimized and % of equity, a quantity in Fixed quantity. With Optimized, type 170 × your multiplier (×1 = the size of our published results; in a portfolio also × its weight). | 70 (script default) |
| Position sizing | How the order size is read: Optimized (recommended), % of equity, Fixed quantity. | Optimized (recommended) |
| Max position value (% of equity) | Safety cap: no position above this share of equity. 0 = off. | 3,000 % |
| Max quantity per order (0 = off) | Optional cap in units, every mode. | 0 |
| Start date | No orders before this date. Live trading: the day you create the alert. | 1990-01-01 |
| Send alerts to | What every alert message looks like. | Custom |
| PineConnector license ID | Your PineConnector ID (PineConnector only). | empty |
| Ounces per lot (PineConnector) | Most MetaTrader gold symbols hold 100 ounces per lot, the default. Check your broker’s contract size. | 100 |
| Broker symbol (blank = chart symbol) | Your broker’s name for the market (PineConnector, TradersPost). | empty |
| Entry/Buy alert message · Exit/Close alert message | Your own two texts, used with Custom. Saved texts stay after updates. | the earlier default |
| Show alert message preview | The next messages in the panel. | off |
| Status panel · Monthly returns table · Publication and live-start lines · Show notices | Chart parts (group Display). Display only. | on |
| FAQ on the chart | Short answers on the chart (group Help). | off |
- Order size (% / quantity)
- In plain words: How big each order is: a percentage in Optimized and % of equity, a quantity in Fixed quantity. With Optimized, type 170 × your multiplier (×1 = the size of our published results; in a portfolio also × its weight).
- Default: 70 (script default)
- Position sizing
- In plain words: How the order size is read:
Optimized (recommended),% of equity,Fixed quantity. - Default:
Optimized (recommended) - Max position value (% of equity)
- In plain words: Safety cap: no position above this share of equity. 0 = off.
- Default: 3,000 %
- Max quantity per order (0 = off)
- In plain words: Optional cap in units, every mode.
- Default: 0
- Start date
- In plain words: No orders before this date. Live trading: the day you create the alert.
- Default: 1990-01-01
- Send alerts to
- In plain words: What every alert message looks like.
- Default:
Custom - PineConnector license ID
- In plain words: Your PineConnector ID (PineConnector only).
- Default: empty
- Ounces per lot (PineConnector)
- In plain words: Most MetaTrader gold symbols hold 100 ounces per lot, the default. Check your broker’s contract size.
- Default: 100
- Broker symbol (blank = chart symbol)
- In plain words: Your broker’s name for the market (PineConnector, TradersPost).
- Default: empty
- Entry/Buy alert message · Exit/Close alert message
- In plain words: Your own two texts, used with Custom. Saved texts stay after updates.
- Default: the earlier default
- Show alert message preview
- In plain words: The next messages in the panel.
- Default: off
- Status panel · Monthly returns table · Publication and live-start lines · Show notices
- In plain words: Chart parts (group Display). Display only.
- Default: on
- FAQ on the chart
- In plain words: Short answers on the chart (group Help).
- Default: off
Properties tab
| Setting | What to do | Default |
|---|---|---|
| Initial capital | Set it to your account size before going live. | 10,000 |
| Order size | Not used: the size is set on the Inputs tab. | — |
| Commission | Trading cost per side in the backtest. | 0.02 % per side |
| Slippage | Price slippage per fill in the backtest. | 10 ticks |
| Margin (long / short) | Use your broker’s real margin with large sizes. | 5 % (20x) |
| Pyramiding | Entries in the same direction. | 1 |
| Order execution delay | Keep it as set: it decides when orders fill. | One tick |
| Recalculate (after order is filled / on every tick) | Keep both off. | off |
- Initial capital
- What to do: Set it to your account size before going live.
- Default: 10,000
- Order size
- What to do: Not used: the size is set on the Inputs tab.
- Default: —
- Commission
- What to do: Trading cost per side in the backtest.
- Default: 0.02 % per side
- Slippage
- What to do: Price slippage per fill in the backtest.
- Default: 10 ticks
- Margin (long / short)
- What to do: Use your broker’s real margin with large sizes.
- Default: 5 % (20x)
- Pyramiding
- What to do: Entries in the same direction.
- Default: 1
- Order execution delay
- What to do: Keep it as set: it decides when orders fill.
- Default: One tick
- Recalculate (after order is filled / on every tick)
- What to do: Keep both off.
- Default: off
Every setting explained: Every setting
The panel and its notices
| Row | What it shows |
|---|---|
| ● Ready / ● Custom setup / ● Check | Tested setup / another symbol, feed or timeframe / change something |
| Position | Flat, or ▲ Long / ▼ Short with the open result |
| Sizing | Your mode and size |
| Next order | The next order’s size and its % of equity. Compare it with your broker. |
| Drawdown | The drop now, next to the worst one on your chart |
- ● Ready / ● Custom setup / ● Check
- What it shows: Tested setup / another symbol, feed or timeframe / change something
- Position
- What it shows: Flat, or ▲ Long / ▼ Short with the open result
- Sizing
- What it shows: Your mode and size
- Next order
- What it shows: The next order’s size and its % of equity. Compare it with your broker.
- Drawdown
- What it shows: The drop now, next to the worst one on your chart
Notices only GoldDigger shows
… differs from tested XAUUSD · tip: check Order size and Initial capital for this marketCustom setup. Another market. Allowed. Check your size and capital for it.
Feed … (tested: EIGHTCAP:XAUUSD) · fine, gold prices differ slightly between brokersCustom setup. Fine to use. EIGHTCAP:XAUUSD shows the tested trades.
Timeframe … differs from tested 1h · fine to explore, results not verifiedCustom setup. Switch to 1h for the tested setup.
Smallest order 1 oz = …x the Optimized … % size · fits about … …Info. One ounce is larger than your size. Raise Initial capital to about the amount shown, or accept the larger order.
1 unit = … …, above Max position value … % · use about … … capital or Max position value 0 = off or micro gold MGC1!Check. On gold futures one contract is too large. Use the capital shown, set the cap to 0, or use MGC1!.
The notices all 8 share: every notice and its fix. Hide them: Settings › Display › Show notices.
Good to know
Calculated when the 1-hour bar closes. The order fills at the next bar’s open.
- Holds trades overnight and over weekends. Swap and weekend gaps are not in the backtest.
- No fixed stop-loss. A sudden move or a weekend gap can make one loss larger than usual.
- Sizes are whole ounces. On a small account one ounce can be a large share.
- Gold futures work too: sizes then count contracts.
- Our ready-made layout runs our own size setting, so its figures differ from the script’s default report. The trades are the same.
Changelog
Pine v6 update
- Same entries and exits as before, checked trade by trade over the entire history.
- New: the status panel, the notices, clear trade marks and the Send alerts to menu.
- Your saved size, start date and alert texts are kept.
After this update
- Delete your old GoldDigger alert.
- Don’t reset the settings. Your Order size, Start date and alert texts are kept.
- Properties: set Initial capital to your account size.
- Check Next order in the panel. The smallest order is one ounce.
- Start date: today (only for live trading with an alert).
- Send alerts to: keep Custom for exactly your old messages, or pick your service.
- Create one alert: condition GoldDigger (Interval as it is), message {{strategy.order.alert_message}} instead of TradingView’s own text, your service’s webhook URL.
Questions
Can I trade gold at another broker?
Yes. Keep the strategy on EIGHTCAP:XAUUSD 1h and send the orders to your broker. If your broker names gold differently (XAUUSD.m, GOLD), enter that name under Broker symbol.
Why is my order bigger than my size setting?
The smallest order is one ounce. On a small account that can be more than your size asks for. The panel says so and names the capital that fits.
How many lots does PineConnector send?
The ounces divided by Ounces per lot. Most MetaTrader gold symbols hold 100 ounces per lot. Check yours before going live.
Does it fit a prop account?
It holds trades overnight and over weekends, so accounts that must be flat every day don’t fit. Your firm’s rules decide.
Which gold feed should my chart use?
EIGHTCAP:XAUUSD, the tested feed. Other gold feeds work and show a note; their trades can differ slightly.
Does it work on gold futures?
Yes. Run it on the future’s chart; sizes then count contracts. When one contract is too large, the panel suggests the micro future MGC1!.
Still stuck?
Ask our AI assistant (the button at the bottom, 24/7), or email support@pineindicators.com with your TradingView username, the strategy and a screenshot of the panel. A person replies within 24 hours, weekends included.