Eclipse Transition Scanner TradingView Indicator

Most crossover tools fire on every touch of two lines. Also, eclipse Transition Scanner, a moving average crossover indicator TradingView traders can drop on any chart, waits for a tighter setup. It wants the 12 and 34 EMAs to hug each other first, inside 0.2 ATR across the last four bars. Indeed, only then does a cross count. Volume and RSI add two more gates before an arrow prints.

It is free and open source. Still, you can add it to any chart from the Eclipse Transition Scanner script page on TradingView, and the full Pine source is published there for you to read.

What Eclipse Transition Scanner plots on the price chart

The script draws both EMAs three times each, so the 12 reads as a cyan glow band and the 34 as a purple one. Thus, signals print as triangles below or above the bar with ECLIPSE text. A label follows each one, carrying the eclipse score out of 100 and the current EMA spread in ATR. Hence, the signal bar takes a solid color. A background tint marks compression and high-score bars. Next, a nine-row dashboard in the top right tracks score, state, spread, RSI and volume.

How Eclipse Transition Scanner is built

The compression gate

The script starts with two EMAs: 12 bars fast, 34 bars slow. Then, it takes the absolute gap between them and divides that gap by ATR(14). That turns spread into a unit you can compare across symbols and sessions. Yet, a wide gap on gold and a wide gap on EURUSD then mean the same thing.

Next comes the eclipse test. Truly, the script takes the highest spread over the last four bars and divides it by ATR. That value must sit at or under 0.2. Plainly, so the two averages must have stayed pressed together through the whole window, not just on the cross bar. A cross that arrives after a long trend leg fails this test, because the trailing spread was still wide.

Two more filters run on the cross bar itself. Also, volume must reach 1.25 times its own 20-bar average. RSI(14) must sit above 52 for a buy or below 48 for a sell. Indeed, miss any one of these gates and no signal prints.

How the eclipse score adds up

The score runs from 0 to 100 and comes from four parts. Still, compression pays up to 35 points, and it pays more the tighter the spread sits under the 0.2 limit. Relative volume pays up to 25, scaled by how far volume exceeds its average. Thus, RSI distance from 50 pays up to 25. The cross itself adds a flat 20.

Two of those parts only fill in on a qualifying cross bar. Hence, the RSI block and the 20-point cross block both read zero otherwise. So the dashboard score sits low most of the time and jumps on the bar that matters. Next, the default threshold of 70 therefore needs a real cross plus at least one strong secondary reading.

The state label mirrors the score: TOTAL at 85 and above, PARTIAL at 70, PENUMBRA at 50, CLEAR below that. Then, a 15-bar cooldown then blocks a second arrow, and every signal waits for the bar to close before it prints.

How to read the signals

Read the two glow bands first. Yet, when the cyan 12 EMA and the purple 34 EMA sit almost on top of each other, the market has gone flat and the script is armed. The background tint marks that state. Truly, a cross out of it is what the tool hunts.

Then read the label. Plainly, score and spread both print on it. A cross out of 0.05 ATR compression on heavy volume scores far higher than one scraping past 70. Also, treat the score as a description of setup quality, not as a forecast.

Signals need a closed bar, so the triangle lands once the cross bar finishes. Nothing shifts afterwards. The dashboard is different. Indeed, it reads the live bar, so the score you watch mid-candle can still fall before the close.

Every Eclipse Transition Scanner setting explained

The script exposes 18 inputs, grouped in the settings panel exactly as shown below. Defaults are the published values.

Eclipse Settings

SettingWhat it doesDefaultRange
Fast MA LengthSets the fast ma length used in the calculation.123 to 50
Slow MA LengthSets the slow ma length used in the calculation.3410 to 200
Eclipse Proximity WindowBars around the cross where spread must stay minimal42 to 15
Max Pre-Cross Spread (ATR)Fast-Slow spread in ATR within the proximity window0.20.05 to 1.0
Volume Average LengthSets the volume average length used in the calculation.205 to 100
Volume Confirm MultiplierSets the volume confirm multiplier used in the calculation.1.251.0 to 3.0
RSI LengthSets the rsi length used in the calculation.143 to 50
Bullish RSI FloorSets the bullish rsi floor used in the calculation.5240 to 65
Bearish RSI CeilingSets the bearish rsi ceiling used in the calculation.4835 to 60
ATR LengthSets the atr length used in the calculation.145 to 50

Signal Settings

SettingWhat it doesDefaultRange
Eclipse Score ThresholdSets the eclipse score threshold used in the calculation.7040 to 95
Signal Cooldown BarsSets the signal cooldown bars used in the calculation.153 to 50

Visual Settings

SettingWhat it doesDefaultRange
Show Eclipse DashboardToggles show eclipse dashboard on the chart.onon / off
Show Eclipse BackgroundToggles show eclipse background on the chart.onon / off
Show 3-Layer Signal GlowToggles show 3-layer signal glow on the chart.onon / off
Show MA GlowToggles show ma glow on the chart.onon / off
Buy ColorColour used for buy color.#39ff14
Sell ColorColour used for sell color.#ff2d78

Alerts built into Eclipse Transition Scanner

The script ships 11 alert conditions. Still, open the alert dialog on the chart, pick the indicator as the condition source, then choose the event you want. Alerts fire on the close of the bar, so they follow the same confirmed-bar rule the on-chart signals use.

  • ETS Buy Eclipse
  • ETS Sell Eclipse
  • ETS Any Signal
  • ETS Total Eclipse
  • ETS Proximity
  • ETS Bull Cross
  • ETS Bear Cross
  • ETS Volume Confirm
  • ETS Webhook JSON

Other markets and timeframes

Every threshold here stays relative. Thus, the script measures spread in ATR, volume against its own 20-bar average, and RSI on a fixed 0 to 100 scale. Nothing assumes pip values or a price level. Hence, so the same defaults carry to indices, gold, crypto and stocks. Volume is the one caveat. Next, spot forex charts report broker tick volume rather than exchange volume, and some symbols report none at all. Where volume is missing, the 1.25x gate blocks every signal.

Limitations worth knowing

This marks entries, nothing else. Then, it carries no stop, no target and no position sizing. It also holds no trend context beyond the cross itself, so a signal against a strong higher timeframe trend looks identical to one that runs with it.

Compression is the whole premise. In a market that trends cleanly without pausing, the 0.2 ATR window rarely fills, and the scanner can stay silent for hundreds of bars. Loosening that input to 0.4 restores cadence but admits far looser crosses.

The volume gate depends on the data feed. Yet, Forex tick volume counts price updates, not contracts. The 15-bar cooldown also suppresses a genuine second cross that follows soon after the first, which matters most on fast intraday charts.

Get Eclipse Transition Scanner on TradingView

Open Eclipse Transition Scanner on TradingView

If you also trade MetaTrader, the MT4 and MT5 indicator library is available below.

Get the complete indicator library

One email unlocks the full MT4 and MT5 indicator library. Truly, this TradingView script stays free on TradingView – the button above adds it to your chart.

Using it alongside MetaTrader

Adding a script on TradingView takes one click, so there is no install step here. Plainly, if you want the same idea on MetaTrader, the MT4 and MT5 indicator installation guide walks through copying files into the data folder and attaching them to a chart. You can also browse the full MetaTrader indicator library, the MT4 indicators section, or the other free TradingView scripts published on this profile. For related chart tools see the MT5 indicators section and the forex trading strategies guides.

External references

Frequently asked questions

Does the Eclipse Transition Scanner repaint?

No. Also, both signals gate on barstate.isconfirmed, and the arrows plot from those same gated variables. So an arrow appears only after its bar closes and never vanishes later. Indeed, the dashboard is the exception – it reads the live bar, so its score moves until the candle closes.

What does the eclipse score measure?

Setup quality on the cross bar. Still, it sums compression up to 35 points, relative volume up to 25, RSI distance from 50 up to 25, and a flat 20 for the cross. It describes how cleanly the setup matches the rules. Thus, it says nothing about the outcome of a trade.

Why do whole weeks pass with no signal?

The compression gate blocks them. Hence, the widest EMA spread across the last four bars must stay at or under 0.2 ATR. Trending markets never compress that far. Next, raise Max Pre-Cross Spread toward 0.4 for more signals, and expect looser crosses in return.

Is it multi-timeframe?

No. Then, the script holds no request.security call, so every value comes from the chart timeframe you load it on. To watch a higher timeframe, open a second chart and add the indicator there.

How much should I rely on this indicator?

Treat it as one input, not a decision. Yet, it is a chart analysis tool, not trading advice. Test it on your own markets and timeframes before relying on it. Results are not guaranteed; past performance is not indicative of future results.

Dominic Walsh - Forex trader and MT4/MT5 developer

About the author

Written by Dominic Walsh, a Forex trader and MT4/MT5 indicator, Expert Advisor and script developer. Every tool on forexmt4systems.com is tested on live charts before release and ships with ready-to-use compiled MT4 (.ex4) and MT5 (.ex5) files. Learn more about the trader and developer behind this site.

Leave a Comment