Futures Context Desk

← All strategies

Gold Trend Dip

A rule-based intraday strategy for gold. On 3-minute bars it counts how many of the last 20 close-to-close changes were up and how many were down.

Market
gold, under any of the names it trades as.
Runs on
any accepted symbol, 3-minute chart (required).

Free on request during the launch period.

Open on TradingView
Gold Trend Dip on a chart. Waiting: the decision window shaded, the status box top right.
Waiting: the decision window shaded, the status box top right.
Gold Trend Dip on a chart. In a trade: the entry, stop and target lines, with the exit label.
In a trade: the entry, stop and target lines, with the exit label.

Screenshots show what the script draws. They show no results — TradingView's own Strategy Tester report on the script page is the only place those appear.

The rules, in full

That is the whole rule set, exactly as published. Nothing is held back for subscribers.

What you see on the chart

Alerts

1. Open a 3-minute gold chart - XAUUSD, GOLD, GC1!, MGC1!, GLD... - and add the strategy.

2. Create Alert: Condition = this strategy, then "alert() function calls only". TradingView calls this a technical alert, and a free Basic account cannot create one - Basic allows 3 price alerts and no technical alerts at all, so the Create Alert dialog will not let you save it. Essential is the lowest plan that works (20 technical alerts); Plus 100, Premium 400. On Essential and Plus an alert also expires after two months and has to be created again; on Premium and Ultimate it does not expire. Phone notifications themselves are free on every plan - tick "Notify on app" and have the TradingView app installed and signed in on the same account.

3. Each message is one short line: what happened and at what price first, then the exchange and ticker, then the numbers, separated by "|". Nothing else to read.

LONG 3886.9 on COMEX:GC1! | SL 3858.4 | TP 3943.9 | fills next open

EXIT 3904.2 on COMEX:GC1! | Target hit | +17.3 pts | position 0

EXIT at market on OANDA:XAUUSD | hard close 16:09 ET

SHORT SKIPPED on AMEX:GLD | opposite position open

ARMED on OANDA:XAUUSD | LONG if close < 3880.1

The ticker is in every line, so you can watch several gold symbols at once and still tell them apart at a glance. Alerts are per chart: create one on each symbol you want watched.

4. Messages fire once per bar close. Three toggles in the Alerts group: entry signals (LONG / SHORT and SKIPPED), exits (EXIT and hard close) and setup armed (off by default). Entry alerts still fire when "Enable trading" is off, but not on non-gold symbols unless the market lock is overridden.

5. Free Basic plan, the nearest workaround: the status box's last row prints a "Price alert" level - the price a 3-minute bar has to CLOSE through for a signal (both sides while the direction is unsettled, one once the box says ARMED). A Basic account cannot alert on the strategy, but it can set a plain price alert on the symbol at that number (Alt+A, Condition = the symbol, "Crossing", Notify on app). Be clear about what it is: it rings when price TOUCHES the level, so it fires earlier and more often than the rule trades, and the level is the extreme of the last 3 closes, so it moves with every bar. Treat it as "go and look at the chart", never as a signal.

Settings

Limits, and what this cannot do

Educational tool. Not financial advice. Past behaviour does not predict future results.

Before you decide

The script page on TradingView carries TradingView's own Strategy Tester report, generated by TradingView from this script. We do not write those numbers and we do not repeat them here. Read them at the source: Gold Trend Dip on TradingView.

← All strategies