Gold Five-Point Wave
From the 08:20 ET open it marks swing highs and lows on 2-minute bars and looks for the classic five-point wave: four alternating swing points that tighten into a wedge, then a fifth push that breaks the line through points 1 and 3.
- Market
- gold futures only.
- Runs on
- GC or MGC, 2-minute chart (required).
Free on request during the launch period.
Open on TradingViewThe rules, in full
- Bars: 2-minute bars from 08:20 ET each day. Swing points restart every day. If there is no 08:20 bar (no trade in the first 2 minutes), the day is skipped.
- Swing high: a bar whose high is above the highs of the 2 bars before and the 2 bars after it (known 2 bars later). Swing low mirrored. Highs and lows alternate; a new point of the same type replaces the last one only if it is more extreme.
- Bull wave: low 1, high 2, low 3, high 4 with point 3 below point 1, and point 4 above point 1 but below point 2. Bear wave: the mirror (high 1, low 2, high 3, low 4).
- Point 5 (bull): a bar trades below the 1-3 line (the line through points 1 and 3, extended). If any low after point 4 goes below point 3 - 0.25 x (point 2 - point 3), the wave is void. A newly recorded swing high cancels a bull wave (a newly recorded swing low cancels a bear wave); a lower high right after point 4 is ignored.
- Long: after point 5, the first bar that closes back above the 1-3 line, provided the 1-4 line (through points 1 and 4) is still above that close. Short: the mirror. Each wave gives at most one trade; a close back across the 1-3 line that fails the 1-4 check or comes after the signal window uses the wave up without a trade.
- Signal bars must close between 08:22 and 12:00 ET. At most 2 signals per day.
- Entry: market order on the next bar's open.
- Stop = 0.50 x U from the entry fill (rounded up to a whole tick). U = median high-low range of the previous 20 completed daily bars (18:00-17:00 ET). There is no fixed target. Until U is ready, signals are shown as skipped.
- Progress check: once, at the close of the first bar ending 30 minutes or more after the entry. If the best price since the entry has not moved at least half the stop distance in the trade's favour, the trade is closed at the next bar's open. Otherwise it is held until the stop or the hard close.
- Each signal is its own trade, so two same-direction trades can overlap (pyramiding 2). No hedging: a signal opposite to an open trade is skipped but still counts toward the daily limit (so does a signal whose side is switched off).
- Any trade still open is closed at the open of the 2-minute bar that contains 16:09 ET (the 16:08 bar).
That is the whole rule set, exactly as published. Nothing is held back for subscribers.
What you see on the chart
- Green ▲ LONG / red ▼ SHORT label on the bar where the trade actually filled, at the fill price, so it sits on the Strategy Tester's entry (hover for the fill price and time, the stop and the progress check time). The signal bar (the bar before the fill) lights up green / red (optional; gray when the signal was skipped). With "Enable trading" off there is no fill, so a lighter "▲ LONG signal · no order" label marks the signal bar instead.
- At each signal the wave is drawn: gray lines through points 1-2-3-4 (numbered), an orange dotted 1-3 line and a teal dashed 1-4 line.
- While a wave is live: the orange 1-3 line, the teal 1-4 line and a gray "Point-5 limit" line, projected a few bars ahead.
- Small gray "LONG skipped" / "SHORT skipped" label when a signal is opposite to an open trade, its side is switched off or the daily range U is not ready yet.
- "EXIT +/- pts" label at the real exit bar and exit price of each closed trade; hover for the reason (Stop, Time exit: no progress in 30 min, Time exit 16:09 ET, or closed by the opposite signal when no-hedge is off).
- While a trade is open (newest trade): white entry line, red stop line and a thin green progress line (the price the trade must reach by the check time; removed once the check is passed), each named with its price at the right edge, with light red (risk) and light green (progress) zones. When two trades are open, a thinner red line shows the older trade's stop.
- Light blue shading over the signal window.
- Compact status box (top right by default, 4 rows): market; state (WAITING with a short reason, SETUP LONG / SETUP SHORT with the close that triggers it, IN LONG / IN SHORT, DONE today); key levels (1-3 line, 1-4 line and point-5 limit, or entry, stop and check time, or the daily range and stop size); signals today, signals on chart, trades in the Strategy Tester and days loaded, or a yellow note if none yet. Hover a row for more. "Show details" adds the window and exit times, today's last four swing points, the last setup, history loaded and U.
- Banner in the middle of the chart: red on any symbol that is not gold futures, spot / CFD gold and the bullion ETFs included (no orders unless the lock is switched off); the status box names what the symbol was read as, so an overridden lock still tells you where you are. Orange when the chart is not 2-minute (no signals).
Alerts
1. Open a 2-minute GC or MGC chart 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 | no TP | check 09:12 ET | flat 16:09 ET | fills next open
LONG 3887.1 on COMEX:GC1! | SL 3858.6 | no TP | check 09:12 ET | filled
EXIT 3858.6 on COMEX:GC1! | Stop | -28.5 pts | position 0
SHORT SKIPPED on COMEX:MGC1! | opposite position open
ARMED on COMEX:GC1! | BULL wave | LONG if close > 3880.1 | void past 3870.0
The ticker is in every line, so a GC chart and an MGC chart can be watched at once and still be told apart at a glance. Alerts are per chart: create one on each symbol you want watched.
4. Messages fire once per bar close. Four toggles in the Alerts group: entry signals (including SKIPPED), fills, exits and wave formed (off by default). Entry alerts still fire when "Enable trading" is off, but not on unsupported symbols unless "Allow orders on other symbols" is on.
5. On a free Basic account, which has no technical alerts, the last status-box row shows "Price alert: <level>" - the 1-3 line of the wave being watched - and a plain price alert on the symbol is free. Read the row's tooltip first: that line slopes, so the number is only its value for the next bar; re-read the row and edit the alert whenever you look at the chart. It reads "none yet" until a wave has formed, and it means price reached the line, not that the strategy entered (the entry needs a bar to close back across it) - open the chart before acting.
Settings
- Enable trading: off = wave, signals, labels and alerts only, no orders.
- Skip signals opposite to an open position (on). If you turn it off, an opposite signal closes and reverses the open trade.
- Sides: Both (default), Long only or Short only.
- Market Lock: Allow orders on other symbols (off by default).
- Wave Rule, Session Settings and Exit groups: 2 bars each side for swing points, 0.25 point-5 limit, 2 signals a day (maximum 2), 08:20 ET start, 12:00 ET last signal bar, 16:09 ET hard close, 0.50 x U stop, 30-minute progress check needing 0.5 x the stop distance, U from 20 days. These are the defaults the strategy is designed around; changing them changes the strategy.
- Alerts, Display Options and Colors.
- Properties default to 100,000 USD initial capital, 1 contract, 1.20 USD commission per contract per order (micro), 1 tick slippage, pyramiding 2 and 5% margin. Enter your own commission, especially for GC.
Limits, and what this cannot do
- Few signals: about one every 3 trading days. A short chart history shows only a handful of trades; load more bars for a larger sample. On very long histories TradingView keeps only the newest 500 labels and 500 lines, so the oldest trades may have no label on the chart (the Strategy Tester still lists them).
- Pine fills at the next bar's open plus 1 tick and estimates the price path inside each bar (a bar touching the stop is judged from its high/low); results on chart bars can differ from live fills.
- On 2-minute bars the 30-minute progress check is made at the close of the bar ending 30 minutes after the entry, and the hard close fills at 16:08.
- U comes from TradingView daily bars and can differ around contract rolls and short holiday sessions.
- On early-close days, change "Last signal bar close" and "Hard close" by hand.
- The script only sees its own trades.
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 Five-Point Wave on TradingView.