Home / Indicators / Gold 1H EMA Crossover
Flagship

Gold 1H EMA Crossover

A rules-based 9/21 EMA crossover system for XAUUSD on the 1-hour chart, with 200 EMA trend filters and MACD confirmation.

Timeframe: XAUUSD, standard 1-hour chartPlatform: TradingView (invite-only)Type: Indicator, no orders placed
Testing note: This strategy was developed and tested on IC Markets XAUUSD data only. Results may differ on other brokers' price feeds, symbols and timeframes. Past performance is not indicative of future results.
Gold 1H EMA CrossoverILLUSTRATION

Illustrative graphic only. Not real market data.

OverviewWhat it does

Our flagship gold system: 9/21 EMA crossover with H1 and H4 trend filters, MACD confirmation, reference levels and a status dashboard.

FeaturesWhat is inside

9 / 21 EMA crossover

Confirmed crossovers of the 9 and 21 EMAs, evaluated at the close of each 1-hour candle.

H1 and completed-H4 trend filters

Requires price to sit on the correct side of the 1-hour 200 EMA and the last completed 4-hour candle to align with a rising or falling 4-hour 200 EMA. Each filter can be switched off.

MACD confirmation

Choose Off, histogram sign, or histogram plus zero line (the default) for the momentum check.

EARLY watch markers

Marks crossovers that pass every test except the MACD zero line as an amber “EARLY” watch event. These are watch-only and never change the reference position.

Reference levels

Plots a reference entry (the next 1-hour open), an ATR-based safety stop (2.5× ATR by default) and TP1 and TP2 reference levels at 1R and 2R by default.

Opposite-cross exit

The primary exit reference is the opposite confirmed EMA cross, shown with exit markers. TP levels are reference only.

Direction control

Show both directions, long only or short only.

Optional delayed long confirmation

An optional one-bar delayed long rule (“L+1”) is available and switched off by default.

Status dashboard

EMA state, H1 trend, H4 regime, MACD, reference position state, entry/stop, TP1/TP2, primary exit and current action.

One combined alert

Create a single TradingView alert using “Any alert() function call” and receive every enabled event with its direction and meaning.

On your chartWhat you will see

  • 9 EMAFast moving average
  • 21 EMASlow moving average
  • H1 200 EMA1-hour trend filter
  • Completed H4 200 EMA4-hour trend filter, fixed during each 4H candle
  • L / S markersConfirmed long and short crossover labels (reversals show as S>L and L>S)
  • EARLY L / EARLY SAmber watch-only labels
  • Entry, SL, TP1, TP2Reference lines plus ENTRY, SL, TP1 and TP2 markers
  • Gold candle highlightCandle colouring on confirmed eligible crossover candles

Signals confirm at the close of the 1-hour candle; reference levels plot from the next 1-hour open. The indicator does not place orders.

Dashboard (illustrative)
EMA 9/21BULLISH
H1 trendABOVE 200
H4 regimeLONG REGIME
MACDBULLISH
Paper stateFLAT
Entry / SLNONE
TP1 / TP2NONE
Primary exitOPPOSITE CROSS
ActionWAITING

PreviewChart screenshot

Chart screenshot coming soonReal TradingView screenshots will be added here.

Where to use itRecommended timeframe and markets

XAUUSD, standard 1-hour chart

Built for XAUUSD on a standard 1-hour candlestick chart. The indicator stops with an error on any other timeframe or chart type.

  • Requires a standard 1-hour candlestick chart; XAUUSD is the intended market.
  • “Paper” in the dashboard refers to a simulated reference position used to draw levels. No orders are placed.

AlertsBuilt-in TradingView alerts

  • Confirmed long and short crossovers
  • Early long and early short watch events
  • Optional delayed long (L+1)
  • Exit long and exit short on the opposite cross
  • ATR safety stop touched
  • TP1 and TP2 reference levels reached
  • 10 individual alert conditions plus one combined “any alert() function call” alert

Alerts are created from the TradingView alert dialog. Alert availability depends on your TradingView plan.

CustomiseSettings you can adjust

  • EMA lengths (9 / 21) and trend EMA length (200)
  • H1 and H4 filter toggles
  • MACD rule and lengths
  • ATR length, stop multiple, TP1 and TP2 R multiples
  • Signal direction
  • Marker, level and dashboard visibility
  • Combined alert options

ImportantTesting note

Testing note: This strategy was developed and tested on IC Markets XAUUSD data only. Results may differ on other brokers' price feeds, symbols and timeframes. Past performance is not indicative of future results.

Before you subscribeRequirements

  • A TradingView account (TradingView is a third-party platform and is not affiliated with Apex Edge).
  • Your TradingView username, entered at checkout, so access can be added to your account.
  • This indicator is an education and analysis tool. It is general information only, does not place orders and is not personal financial advice. Past performance is not indicative of future results.

Keep exploringOther indicators

Put clearer structure on your TradingView charts

Pick the indicators you need or take them all. Cancel any time on Whop, and learn how everything works for free on YouTube first.