Gold Ema Rsi Alignment
- Indicators
- Version: 1.0
- Activations: 10
Gold EMA RSI Alignment reads M5, M15, H1 and H4 on gold, and marks the first closed bar on which all four point the same way.
Every row of its panel says which bar it read: a higher timeframe bar closed long before the bar you are watching, and a row with no time on it points at the wrong candle. When the four do not agree, the Blocking line names each timeframe still out of line, and repeats the three readings that held it back: whether its close sits above or below EMA50, the sign of its slope, and its RSI.
THE PANEL, WORD FOR WORD FROM A CHART
Gold EMA RSI Alignment
Alignment 3 of 4 aligned (Up)
M5 08.14 15:55 Up close 4373.49 EMA50 4360.37 slope + RSI 60.8
M15 08.14 15:45 Up close 4373.49 EMA50 4349.93 slope + RSI 69.0
H1 08.14 15:00 Flat close 4373.49 EMA50 4365.52 slope - RSI 57.4
H4 08.14 12:00 Up close 4373.49 EMA50 4307.21 slope + RSI 53.4
Blocking H1 (close above EMA50, slope -, RSI 57.4)
Chart TF H1 Signals today Long 0 / Short 0
State Waiting for H1 to turn Up
Check it yourself: the H1 close sits above EMA50 but the slope is falling, so H1 reads Flat, and Blocking repeats those numbers. All four rows show the same close here because those bars had just closed together; usually they differ.
THE WHOLE RULE
Closed bars only. C is the close of the last closed bar, E0 the EMA(50) on it, E3 the EMA(50) 3 bars earlier, R the RSI(14) on it.
Up C > E0 and E0 > E3 and R > 50
Down C < E0 and E0 < E3 and R < 50
Anything else is Flat: one missing condition holds the alignment back. Equal E0 and E3 count as falling. All four timeframes get the same rule.
IT DOES NOT REPAINT
When the chart bar closes, every timeframe reports the newest bar that had already closed by then, not a live value that did not exist yet. The forming bar is never drawn on, so the same history always gives the same arrows. Across 20,000 bars, all 595 arrows matched a separately written calculation in place and direction.
One arrow prints where the reading turns from not aligned to aligned, and none is added while that alignment lasts. A flip straight from Up to Down prints a new one, below the low or above the high.
The chart timeframe decides how many you see, not a setting: over the gold data measured, M5 averaged about 6 arrows a day and H4 about 1, and Signals today counts them for the current day. That describes the rule, not outcomes.
THE ELEVEN INPUTS
InpShowPanel, InpPanelCorner, InpPanelFontSize, InpColorLong, InpColorShort, InpColorPanelText, InpColorBlocking, InpArrowSize, InpAlertPopup, InpAlertPush, InpAlertEmail.
All 11 are display or notification; none of them moves an arrow. InpColorBlocking sets the colour of the Blocking line and of the warnings that come with it. Popup, push and email are separate switches, and one alert per bar carries the symbol, the chart timeframe, the marked bar's time and all four RSI values. Its last line reads either "all four closes above rising EMA50" or "all four closes below falling EMA50".
WHAT IT DOES NOT DO
- It does not place, close or modify orders.
- It offers nothing to tune: no threshold, period or multiplier.
- It shows every arrow the rule produces and hides none.
- It does not move or erase what it has drawn.
DEMO
Run the demo on M5. The Strategy Tester's visual mode cannot feed a timeframe below the chart, so on H1 or higher the M5 row stays empty, which is the tester, not the indicator.
REQUIREMENTS
A MetaTrader 5 indicator for gold, panel in English. Each timeframe needs 400 closed bars before it judges. Machine checks found no trading calls, no DLL imports and no outbound requests.
The panel describes what has already happened on closed bars, and says nothing about the next bar.
