OPEN-SOURCE SCRIPT
Edo Control

Edo Control — Structural Market Context from Williams %R and ADX, with State-Classified Control Candles, an Intensity Heatmap and Integrated Multi-Timeframe Reading
Williams %R, introduced by Larry Williams, measures on each bar where price closes inside its recent range and translates that into an overbought and oversold scale. ADX and the DMI directional system, developed by J. Welles Wilder in 1978, measure something different and complementary: how much strength the move has and which way it leans. Each one answers its own question well, but separately they leave gaps. Williams %R tells you whether price is stretched, not whether the trend has strength. ADX tells you whether there is strength, not where in the range price sits. And neither one, on its own, tells you whether what is happening on the current chart is consistent with the higher timeframes.
Edo Control was built to close those gaps without giving up the classic logic. Instead of reading %R and ADX as two loose oscillators, it crosses them bar by bar into a single state matrix that colors every candle, condenses them into an intensity layer, and projects the same reading onto three timeframes at once. The result is not a buy or sell signal: it is a framework of structural context that answers a question prior to any trade, the question of whether current market conditions even justify considering an entry.
It is worth saying what it is not. Edo Control does not generate entry or exit signals, does not predict direction and does not automate decisions. It describes the state of the market; the decision remains the trader's.
WHAT THE INDICATOR DOES
Edo Control organizes price information into three coordinated visual layers that share a single calculation logic. The Control Candles classify each candle into a structural state according to the interaction between Williams %R and directional strength. The Heatmap translates the intensity and health of the move into a background color layer, in three reading modes. The multi-timeframe module replicates the same state reading across three simultaneous timeframes to assess agreement or conflict between frames. The three layers are independent: each one can be turned on or off separately, so the trader has full control over the visual load of the chart.
CONCEPTUAL CALCULATION BASIS
The core of the indicator combines two classic measurements. The first is position in the range: Williams %R over a period of 40 places the close inside the recent high-low range relative to the equilibrium level at −50. The second is directional strength: the DMI/ADX system, with length 7, measures the intensity of the move and which direction dominates, comparing +DI against −DI. From there, a context score integrates both dimensions conceptually: how far price moves away from the equilibrium of the range, modulated by the strength with which it is moving. A stretched move without strength, and a contained move with growing strength, produce different readings. That same score feeds the three layers —the candle classification, the Heatmap color and the multi-timeframe values—, so everything seen on the chart comes from a single coherent source.
THE CONTROL CANDLES
Each candle is assigned a state based on three combined checks: which side of the −50 Williams %R level it sits on, the bullish or bearish zone of the range, and how far; whether %R is accelerating or decelerating versus the previous bar; and whether directional strength is rising or fading versus the previous bar. The combination of those three checks produces a map of up to twelve color states grouped into four reading families.
The impulse and continuation family gathers the states where price advances with a dominant body and growing strength in the direction of the move. The rejection and change family captures the %R crosses over the −50 level that mark a possible bias shift, bullish to bearish or the reverse. The decision and transition family groups medium strength or mixed sequences, where the move neither confirms nor exhausts clearly. And the reference and extreme family covers strong continuation states and the extreme zones of the range that serve as structural anchors.
This classification does not predict the next candle: it translates its internal structure into a color, so the trader reads at a glance whether recent activity is impulse, rejection, indecision or reference, without analyzing candle by candle. The system works only with confirmed data, so the state of a closed candle is not redrawn.
THE HEATMAP, AN INTENSITY LAYER
The Heatmap paints the chart background according to the context score, with three selectable modes. The Multicolor mode is a three-point gradient running from trend exhaustion (MIN) to stable trend (MID) and maximum acceleration (MAX); it is the richest reading, because it shows the health of the move and not just its direction. The Bicolor mode resolves four directional strength states by combining DMI direction with intensity: high or low bullish strength and high or low bearish strength. The Hybrid mode simplifies the reading to two states, healthy trend or warning and exhaustion.
The Heatmap opacity is configurable, 70% by default, so it does not cover the candles. The intensity layer is historical context of how price has been moving, never a support or resistance zone nor a prediction of future volatility.
MULTI-TIMEFRAME
The multi-timeframe module computes the same context score on three timeframes at once and displays them as three column bars with their normalized value, from 0 to 1, and labels to the right of the chart. The timeframes are assigned automatically according to the chosen trading profile, ensuring coherence between the operating horizon and the context frames: the Scalper profile works on 1m, 3m and 5m; Intraday on 5m, 15m and 1h; Swing on 1h, 4h and Daily; and Long Term on Daily, Weekly and Monthly. When the three timeframes point the same way a confluence occurs; when they diverge, the market is in transition. Confluence is context information, not an entry trigger.
INFORMATION PANEL
Edo Control includes legend panels that can be toggled independently, positionable in the four corners and with two sizes and Dark or Light mode. The Last TF Candle Monitor shows the context value of the latest candle on the three timeframes. The Candles Guide is the legend of the Control Candle states with their color and description. The Heatmap Guide describes the active Heatmap mode and updates when the mode changes. The legend is available in English and Spanish.
LEARNING MODE
An educational option displays over the historical candles the internal state numbering, from 0 to 11, and explanatory tooltips on hover, to study how each combination of %R and directional strength translates into a state. It is meant for the first familiarization sessions; it is best disabled during live trading to reduce visual load. The depth of history, from 50 to 400 bars, is configurable.
ALERTS
Although Edo Control's philosophy is to offer context rather than entry or exit signals, it includes a set of six alert conditions consistent with that nature, configurable from the standard TradingView dialog. They warn of context transitions, not of buy or sell orders. Two of them watch the Heatmap: the score entering the exhaustion zone (MIN), the first sign that the move is losing strength, and entering the maximum acceleration zone (MAX), when the move extends with strength. Another two watch the rejection candles: Williams %R crossing above the −50 level, which points to a possible bearish-to-bullish turn, and the cross below, which points to the opposite turn. The last two watch multi-timeframe confluence: when the three timeframes of the profile place %R above −50 at once, or below at once.
The multi-timeframe confluence is evaluated on the −50 axis of Williams %R, the same one that classifies the rejection candles, and not on the numeric value of the score, which measures context intensity and is directionally neutral.
HOW TO READ IT
A clean reading follows a sequence from higher to lower timeframe. Start with the macro context, the value and color of the latest candle on the higher timeframe, which sets the backdrop. Then check the intermediate context, to see whether the middle timeframe confirms or contradicts the higher frame. Then drop to the current situation: the type of recent Control Candles and the active Heatmap zone. And integrate the three layers into a synthesis.
Some reading patterns are common. In a healthy continuation, impulse candles chain together, the Heatmap stays in MID or MAX in the direction of the move and multi-timeframe confluence points the same way. In an exhaustion, the Heatmap migrates toward MIN while price still advances and decision or rejection candles appear. In a possible turn, a rejection candle coincides with a sign change in directional strength and the loss of confluence between frames. And in an indecision, decision candles dominate, the Heatmap turns neutral and the timeframes conflict: the context offers no clear structural edge.
ORIGINALITY AND JUSTIFICATION
Williams %R and ADX/DMI are classic, public-domain indicators; Edo Control neither reinvents nor renames them. What it adds is the coordination: instead of reading two oscillators in separate panes, it integrates both into a single twelve-state matrix that colors each candle directly, derives from them an intensity layer with three reading modes, and replicates that same reading across three timeframes coherent with the operating horizon. The combination answers something neither one resolves separately: reading position in the range, strength of the move and coherence between frames at a single glance and under a common logic. That integration, and not the components themselves, is the indicator's own method.
CONFIGURATION
Multi-timeframe: trading profile selection (Scalper, Intraday, Swing or Long Term) and visibility of the multi-TF bars. Core settings: enable the Control Candles, enable the Heatmap, Heatmap mode (Multicolor, Bicolor or Hybrid) and Heatmap opacity, from 10 to 100% with 70 by default. Legends: enable the Last TF Candle Monitor, the Candles Guide and the Heatmap Guide, position in any of the four corners, opacity, size and language, English or Spanish. Learning: enable learning mode, tooltips, history depth of 50, 100, 200 or 300 bars with an option to force 400, and label size and opacity. Style and visibility: colors and visibility per timeframe from the standard TradingView tabs.
OPEN SOURCE
Edo Control is published as an open source and free indicator. The full Pine Script is publicly available on TradingView for study, adaptation and integration into any workflow.
This indicator is a technical analysis tool intended exclusively for educational and informational purposes. It does not generate automatic buy or sell signals and should not be considered financial advice. Trading in financial markets carries a significant risk of capital loss. Past results do not guarantee future results. Always use proper risk management.
Williams %R, introduced by Larry Williams, measures on each bar where price closes inside its recent range and translates that into an overbought and oversold scale. ADX and the DMI directional system, developed by J. Welles Wilder in 1978, measure something different and complementary: how much strength the move has and which way it leans. Each one answers its own question well, but separately they leave gaps. Williams %R tells you whether price is stretched, not whether the trend has strength. ADX tells you whether there is strength, not where in the range price sits. And neither one, on its own, tells you whether what is happening on the current chart is consistent with the higher timeframes.
Edo Control was built to close those gaps without giving up the classic logic. Instead of reading %R and ADX as two loose oscillators, it crosses them bar by bar into a single state matrix that colors every candle, condenses them into an intensity layer, and projects the same reading onto three timeframes at once. The result is not a buy or sell signal: it is a framework of structural context that answers a question prior to any trade, the question of whether current market conditions even justify considering an entry.
It is worth saying what it is not. Edo Control does not generate entry or exit signals, does not predict direction and does not automate decisions. It describes the state of the market; the decision remains the trader's.
WHAT THE INDICATOR DOES
Edo Control organizes price information into three coordinated visual layers that share a single calculation logic. The Control Candles classify each candle into a structural state according to the interaction between Williams %R and directional strength. The Heatmap translates the intensity and health of the move into a background color layer, in three reading modes. The multi-timeframe module replicates the same state reading across three simultaneous timeframes to assess agreement or conflict between frames. The three layers are independent: each one can be turned on or off separately, so the trader has full control over the visual load of the chart.
CONCEPTUAL CALCULATION BASIS
The core of the indicator combines two classic measurements. The first is position in the range: Williams %R over a period of 40 places the close inside the recent high-low range relative to the equilibrium level at −50. The second is directional strength: the DMI/ADX system, with length 7, measures the intensity of the move and which direction dominates, comparing +DI against −DI. From there, a context score integrates both dimensions conceptually: how far price moves away from the equilibrium of the range, modulated by the strength with which it is moving. A stretched move without strength, and a contained move with growing strength, produce different readings. That same score feeds the three layers —the candle classification, the Heatmap color and the multi-timeframe values—, so everything seen on the chart comes from a single coherent source.
THE CONTROL CANDLES
Each candle is assigned a state based on three combined checks: which side of the −50 Williams %R level it sits on, the bullish or bearish zone of the range, and how far; whether %R is accelerating or decelerating versus the previous bar; and whether directional strength is rising or fading versus the previous bar. The combination of those three checks produces a map of up to twelve color states grouped into four reading families.
The impulse and continuation family gathers the states where price advances with a dominant body and growing strength in the direction of the move. The rejection and change family captures the %R crosses over the −50 level that mark a possible bias shift, bullish to bearish or the reverse. The decision and transition family groups medium strength or mixed sequences, where the move neither confirms nor exhausts clearly. And the reference and extreme family covers strong continuation states and the extreme zones of the range that serve as structural anchors.
This classification does not predict the next candle: it translates its internal structure into a color, so the trader reads at a glance whether recent activity is impulse, rejection, indecision or reference, without analyzing candle by candle. The system works only with confirmed data, so the state of a closed candle is not redrawn.
THE HEATMAP, AN INTENSITY LAYER
The Heatmap paints the chart background according to the context score, with three selectable modes. The Multicolor mode is a three-point gradient running from trend exhaustion (MIN) to stable trend (MID) and maximum acceleration (MAX); it is the richest reading, because it shows the health of the move and not just its direction. The Bicolor mode resolves four directional strength states by combining DMI direction with intensity: high or low bullish strength and high or low bearish strength. The Hybrid mode simplifies the reading to two states, healthy trend or warning and exhaustion.
The Heatmap opacity is configurable, 70% by default, so it does not cover the candles. The intensity layer is historical context of how price has been moving, never a support or resistance zone nor a prediction of future volatility.
MULTI-TIMEFRAME
The multi-timeframe module computes the same context score on three timeframes at once and displays them as three column bars with their normalized value, from 0 to 1, and labels to the right of the chart. The timeframes are assigned automatically according to the chosen trading profile, ensuring coherence between the operating horizon and the context frames: the Scalper profile works on 1m, 3m and 5m; Intraday on 5m, 15m and 1h; Swing on 1h, 4h and Daily; and Long Term on Daily, Weekly and Monthly. When the three timeframes point the same way a confluence occurs; when they diverge, the market is in transition. Confluence is context information, not an entry trigger.
INFORMATION PANEL
Edo Control includes legend panels that can be toggled independently, positionable in the four corners and with two sizes and Dark or Light mode. The Last TF Candle Monitor shows the context value of the latest candle on the three timeframes. The Candles Guide is the legend of the Control Candle states with their color and description. The Heatmap Guide describes the active Heatmap mode and updates when the mode changes. The legend is available in English and Spanish.
LEARNING MODE
An educational option displays over the historical candles the internal state numbering, from 0 to 11, and explanatory tooltips on hover, to study how each combination of %R and directional strength translates into a state. It is meant for the first familiarization sessions; it is best disabled during live trading to reduce visual load. The depth of history, from 50 to 400 bars, is configurable.
ALERTS
Although Edo Control's philosophy is to offer context rather than entry or exit signals, it includes a set of six alert conditions consistent with that nature, configurable from the standard TradingView dialog. They warn of context transitions, not of buy or sell orders. Two of them watch the Heatmap: the score entering the exhaustion zone (MIN), the first sign that the move is losing strength, and entering the maximum acceleration zone (MAX), when the move extends with strength. Another two watch the rejection candles: Williams %R crossing above the −50 level, which points to a possible bearish-to-bullish turn, and the cross below, which points to the opposite turn. The last two watch multi-timeframe confluence: when the three timeframes of the profile place %R above −50 at once, or below at once.
The multi-timeframe confluence is evaluated on the −50 axis of Williams %R, the same one that classifies the rejection candles, and not on the numeric value of the score, which measures context intensity and is directionally neutral.
HOW TO READ IT
A clean reading follows a sequence from higher to lower timeframe. Start with the macro context, the value and color of the latest candle on the higher timeframe, which sets the backdrop. Then check the intermediate context, to see whether the middle timeframe confirms or contradicts the higher frame. Then drop to the current situation: the type of recent Control Candles and the active Heatmap zone. And integrate the three layers into a synthesis.
Some reading patterns are common. In a healthy continuation, impulse candles chain together, the Heatmap stays in MID or MAX in the direction of the move and multi-timeframe confluence points the same way. In an exhaustion, the Heatmap migrates toward MIN while price still advances and decision or rejection candles appear. In a possible turn, a rejection candle coincides with a sign change in directional strength and the loss of confluence between frames. And in an indecision, decision candles dominate, the Heatmap turns neutral and the timeframes conflict: the context offers no clear structural edge.
ORIGINALITY AND JUSTIFICATION
Williams %R and ADX/DMI are classic, public-domain indicators; Edo Control neither reinvents nor renames them. What it adds is the coordination: instead of reading two oscillators in separate panes, it integrates both into a single twelve-state matrix that colors each candle directly, derives from them an intensity layer with three reading modes, and replicates that same reading across three timeframes coherent with the operating horizon. The combination answers something neither one resolves separately: reading position in the range, strength of the move and coherence between frames at a single glance and under a common logic. That integration, and not the components themselves, is the indicator's own method.
CONFIGURATION
Multi-timeframe: trading profile selection (Scalper, Intraday, Swing or Long Term) and visibility of the multi-TF bars. Core settings: enable the Control Candles, enable the Heatmap, Heatmap mode (Multicolor, Bicolor or Hybrid) and Heatmap opacity, from 10 to 100% with 70 by default. Legends: enable the Last TF Candle Monitor, the Candles Guide and the Heatmap Guide, position in any of the four corners, opacity, size and language, English or Spanish. Learning: enable learning mode, tooltips, history depth of 50, 100, 200 or 300 bars with an option to force 400, and label size and opacity. Style and visibility: colors and visibility per timeframe from the standard TradingView tabs.
OPEN SOURCE
Edo Control is published as an open source and free indicator. The full Pine Script is publicly available on TradingView for study, adaptation and integration into any workflow.
This indicator is a technical analysis tool intended exclusively for educational and informational purposes. It does not generate automatic buy or sell signals and should not be considered financial advice. Trading in financial markets carries a significant risk of capital loss. Past results do not guarantee future results. Always use proper risk management.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
EdoLab Markets – Precision Trading Tools
Get Exclusive Indicators:
edolab.io
All content provided is for informational and educational purposes only. Past performance does not guarantee future results.
Get Exclusive Indicators:
edolab.io
All content provided is for informational and educational purposes only. Past performance does not guarantee future results.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
EdoLab Markets – Precision Trading Tools
Get Exclusive Indicators:
edolab.io
All content provided is for informational and educational purposes only. Past performance does not guarantee future results.
Get Exclusive Indicators:
edolab.io
All content provided is for informational and educational purposes only. Past performance does not guarantee future results.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.