Gold Asia-London Engulf
A rule-based intraday strategy for gold. Each night it measures the Asia range (20:00 to 02:00 ET) and the London range (02:00 to 08:00 ET).
- Market
- gold, under three kinds of symbol.
- Runs on
- any accepted symbol, 10-minute chart (recommended).
Free on request during the launch period.
Open on TradingViewThe rules, in full
- Asia range = highest and lowest price from 20:00 ET (the evening before) to 02:00 ET. London range = highest and lowest price from 02:00 ET to 08:00 ET. A bar belongs to a window by its start time.
- Long setup: London high above the Asia high, and the London low between the Asia low and the Asia high.
- Short setup: London low below the Asia low, and the London high between the Asia low and the Asia high.
- Anything else (London inside Asia, London outside on both sides, or fully above / below Asia): no trade that day.
- No trade if the 20:00-08:00 ET data has a stretch of 30 minutes or more without a bar (the window edges count), or no bars at all.
- No trade if, just before 08:20 ET, price is already at or below the London low (long) or at or above the London high (short).
- Entry: market order at 08:20 ET (sent at the close of the bar ending 08:20 ET, filled at the next bar's open). At most one trade per session, and none if a position is already open.
- Stop = 0.35 x U from the entry fill, rounded to the tick away from the fill. Target = 2 x the stop distance. U = median high-low range of the previous 20 daily bars (18:00-17:00 ET). The target counts only when price trades 1 tick through it.
- Any trade still open is closed at 16:10 ET (13:30 ET on the early-close dates listed in the settings): the close order goes in on the first bar that ends at or after that time and fills at the next bar's open, so it needs a bar at the cap time.
That is the whole rule set, exactly as published. Nothing is held back for subscribers.
What you see on the chart
- Green ▲ LONG label below / red ▼ SHORT label above the bar where the Strategy Tester filled the trade (the bar opening at 08:20 ET), drawn from the real fill; hover for the fill price, stop, target and the Asia / London levels. The signal bar (the bar ending at 08:20 ET, whose close sends the order) can be highlighted (optional).
- "EXIT +/- pts" label at each exit; hover for the reason (Target, Stop or Time exit) and the P/L.
- Orange Asia high / low lines (from 02:00 ET) and blue London high / low lines (from 08:00 ET) until the hard close, each named with its price at the right edge.
- While a trade is open (from the fill bar to the exit bar): white entry line at the real fill, red stop line and green target line at the exit order working on each bar, each named with its price at the right edge, with light red (risk) and light green (reward) zones.
- Optional light shading of the Asia and London windows.
- Compact status box (top right): the symbol and how it was read (gold futures / spot / CFD gold / gold ETF); state (WAITING while the ranges build or when there is no engulf, SETUP LONG / SHORT between 08:00 and 08:20 ET (not shown when the overnight gap or U rule already rules the day out), IN LONG / IN SHORT with stop and target, DONE today with the short reason); Asia and London high / low; signals sent, trades filled in the Strategy Tester and days loaded, or a short yellow note if none yet. Hover any row for more.
- An orange reminder row on a spot / CFD or ETF symbol: on a CFD "1 contract" is one ounce, not a futures contract, so size and commission have to be set in Properties.
- Red banner in the middle of the chart on any symbol that is not gold (no orders unless the override is on). Orange banner when the timeframe is not supported, naming the 10-minute chart (no orders).
Alerts
1. Open a 10-minute gold chart - XAUUSD, GOLD, GC1!, MGC1!... - 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 extras, separated by "|". Nothing else to read.
LONG 3886.9 on COMEX:GC1! | SL 3858.4 | TP 3943.9 | flat 16:10 ET | fills next open
LONG 3887.1 on COMEX:GC1! | SL 3858.6 | TP 3944.1 | filled
EXIT 3904.2 on COMEX:GC1! | Target | +17.3 pts | LONG from 3887.1
ARMED on OANDA:XAUUSD | LONG at 08:20 ET | unless price <= London low 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. Four toggles in the Alerts group: entry signal, fill (the same line, ending in "| filled" instead of "| fills next open"), exit, and setup armed (off by default). Entry and fill alerts fire only when an order is placed.
5. Free Basic plan: this one needs no alert at all, which is better than a workaround. The entry is decided by the clock - a market order at 08:20 ET - so the status box's last row says to set a phone alarm for 08:20 ET, open the chart when it rings and read the entry, stop and target off the box. That is exact, free on any plan, repeatable every day, and it uses none of the three price alerts a free account gets. One warning: the London extreme in the levels row is the opposite of a trigger - if price reaches it before 08:20 ET the setup is cancelled - so never put a price alert there as if it announced an entry.
Settings
- Enable trading: off = ranges, status box and the optional SETUP alert only; no orders, so no LONG / SHORT labels or entry alerts (the status box still names the day's signal).
- Rule: Asia 20:00-02:00 ET, London 02:00-08:00 ET, entry 08:20 ET, 30-minute gap limit, 0.35 x U stop, 2:1 target, U from 20 daily bars. These are the defaults the strategy is designed around; changing them changes the strategy.
- Session Settings: hard close 16:10 ET, early-close dates and the early-close time (13:30 ET).
- Market lock: "Allow orders on non-gold symbols" is off by default. Gold is recognised by its contract root or ticker together with the instrument type: the futures roots (GC, MGC, GOLD, GOLDM, GOLDGUINEA, GOLDPETAL, 1OZ, AU, GD, JAU), any cfd / forex / commodity quote starting with XAU or containing GOLD, and the bullion ETF roots (GLD, GLDM, IAU, IAUM, SGOL, BAR, AAAU, OUNZ, PHYS, GBS, SGLN, PHAU, 4GLD). A gold mining share fails the type test and is rejected. Turn the override on only to experiment elsewhere - and note that passing the lock is not the same as having the overnight bars the rule needs.
- Alerts, Display Options (levels, window shading, trade lines and zones, labels and label size, signal-bar highlight, level names, status box, Show details, box position) and Colors (incl. box theme).
- Properties default to 100,000 USD initial capital, 1 contract, no pyramiding, 1.20 commission per contract per side (a micro-futures figure), 1 tick slippage and 5% margin. Enter your own size and cost for the instrument you trade - these defaults are wrong for spot, for CFDs and for full-size GC.
Limits, and what this cannot do
- Pine fills at the next bar's open plus 1 tick and estimates the price path inside each bar (a bar touching both stop and target is a guess); results on chart bars can differ from live fills.
- The 30-minute gap check can only see missing bars, so it is most exact on the 1-minute chart.
- On the entry bar the stop and target are estimates from the signal bar's close; they are reset from the real fill on the next bar.
- Different gold symbols are different data: a spot / CFD feed, a futures contract and an ETF do not print the same bars, do not keep the same hours and do not start their daily bar at the same time, so the same rule produces a different trade list on each. Read each one on its own chart.
- U comes from TradingView daily bars and can differ around contract rolls and short holiday sessions. On futures use a continuous contract (GC1! / MGC1!) with the full electronic (overnight) session; an RTH-only session has no Asia / London bars, so there are no trades.
- Early-close dates are a manual list that ends with 2027-11-26; check the exchange calendar and edit it if needed. On an early close that is not on the list the hard close stays at 16:10 ET, and with no bars at or after that time the open trade is carried to the next session and flattened on its first bar.
- 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 Asia-London Engulf on TradingView.