OPEN-SOURCE SCRIPT
Mis à jour Atlas IMA

# Publication package: Atlas IMA
## Recommended public title
Atlas IMA
## Recommended publication mode
Public and open-source.
Before publishing, confirm that you created the script or have permission to publish every non-public-domain part of its code. TradingView can moderate reused open-source code that is not properly credited.
## English description (place this first)
Atlas IMA is an adaptive composite moving-average indicator designed to organize price action into directional bias, market regime, volatility phase, and moving-average confluence. “IMA” is the name of the composite average used by this script; it does not imply access to institutional order flow, private positioning, or proprietary market data.
### How it works
The script calculates four price memories representing momentum, trend, regime, and structure. Each memory blends EMA, HMA, WMA, and RMA calculations. The weights and lengths are selected from an automatic asset profile for Nasdaq 100, gold, oil, and forex, or from manual settings.
The four memories are combined into a final adaptive average. Its response changes according to:
- ATR relative to its historical average, used to identify compression and expansion.
- Directional efficiency, calculated as net displacement divided by the accumulated absolute price path.
- Alignment and separation of the four memories.
- Price position and the slope of the final average.
The directional bias has five states: Strong Bullish, Bullish, Neutral, Bearish, and Strong Bearish. A strong state requires trend alignment and a minimum separation measured in ATR, which prevents tightly clustered averages from being classified as a strong directional condition.
The phase engine reports Compression, Pre-change, Expansion, Exhaustion, or Transition. Pre-change requires the average memories to be in ATR-normalized confluence, price to be near the final average, and either a memory crossover or weakening slope. It does not predict the direction of the next move.
### Confluence and decision zone
Confluence is measured by dividing the distance between the highest and lowest memory by ATR. This normalization makes the threshold more comparable across symbols and price scales. The optional decision zone is centered on Atlas IMA and is displayed only during Compression or Pre-change by default.
### Multi-timeframe behavior
MTF mode is optional. When “MTF with closed/confirmed candle” is enabled, the script uses the previous completed higher-timeframe value together with `barmerge.lookahead_on`. The expression is offset inside the requested timeframe, so future higher-timeframe values are not used. When closed-candle mode is disabled, the active higher-timeframe value can change until that candle closes.
Signals and alert conditions are confirmed on the chart candle close by default. The displayed average and panel can still update during the open realtime candle. Users who require stable MTF values should keep closed-candle MTF mode enabled.
### Main settings
- Asset profile: automatic profile selection or manual parameters.
- Source and MTF source: price source, timeframe, and confirmed/live MTF behavior.
- Adaptive memories: momentum, trend, regime, and structure lengths.
- Weighting and lag: component weights, lag engine, and additional smoothing.
- Regime and volatility: ATR, ATR memory, efficiency, compression, expansion, and strong-bias thresholds.
- Confluence and decision: ATR-normalized confluence threshold and decision-zone width.
- Visual: clean/full/main-only presets, panel, optional markers, colors, and close confirmation.
### Spanish interface translation
The script interface is in Spanish. The principal labels translate as follows:
- Perfil de activo: Asset profile. Auto: Automatic. Oro: Gold. Petroleo: Oil. Manual: Manual.
- Precio origen: Source price. Usar origen MTF SAFE: Use MTF source. Timeframe origen MTF: MTF source timeframe.
- MTF con vela cerrada / confirmado: MTF using a closed/confirmed candle.
- Mostrar panel: Show panel. Posicion panel: Panel position.
- Memorias adaptativas: Adaptive memories. Momentum, tendencia, regimen and estructura: Momentum, trend, regime and structure.
- Motor de lag: Lag engine. Conservador, Adaptativo and Rapido: Conservative, Adaptive and Fast.
- Suavizado adicional IMA: Additional IMA smoothing.
- Regimen y volatilidad: Regime and volatility. Memoria ATR: ATR memory. Eficiencia tendencia: Trend efficiency.
- Compresion and expansion: Compression and expansion. Separacion ATR minima para bias fuerte: Minimum ATR separation for strong bias.
- Mostrar zona de confluencia: Show confluence zone. Rango maximo confluencia x ATR: Maximum confluence range in ATR.
- Mostrar Zona IMA de decision: Show IMA decision zone. Ancho Zona IMA x ATR: IMA zone width in ATR.
- Zona decision solo en compresion / pre-cambio: Show the decision zone only in Compression/Pre-change.
- Preset visual: Visual preset. Completo, Limpio and Solo principal: Full, Clean and Main only.
- Mostrar senales de bias/fase: Show bias/phase signals. Fondo suave por bias: Soft bias background.
- Confirmar senales y alertas al cierre: Confirm signals and alerts at candle close.
- Alcista/Bajista/Neutral: Bullish/Bearish/Neutral. Fuerte: Strong.
- Tendencia/Rango/Transicion: Trend/Range/Transition.
- Compresion/Pre-cambio/Expansion/Agotamiento: Compression/Pre-change/Expansion/Exhaustion.
- Confluencia Activa/No: Confluence Active/No.
### Suggested interpretation
Atlas IMA is a context filter, not an entry system. A directional bias is more meaningful when the regime is Trend and the memories are aligned. Compression and Pre-change indicate conditions to monitor, not automatic trades. Transition and Neutral states explicitly represent insufficient directional evidence.
### Limitations
- The indicator does not include position sizing, stops, targets, or backtested performance.
- Moving averages are lagging calculations and will react after abrupt reversals.
- Parameters are asset-oriented but are not independently optimized for every timeframe.
- The current candle can change before it closes; close-confirmed alerts reduce, but do not eliminate, every form of realtime uncertainty.
- Live MTF mode can revise while its source candle remains open.
- Results on non-standard chart types are based on synthetic chart prices and may differ from standard candles.
- No accuracy, profitability, or future-performance claim is made.
## Descripcion en espanol
Atlas IMA es un indicador de media movil compuesta y adaptativa que organiza el movimiento del precio en bias direccional, regimen, fase de volatilidad y confluencia. “IMA” es el nombre de la media compuesta del script; no significa que utilice flujo de ordenes institucional, posiciones privadas ni datos propietarios.
El indicador calcula cuatro memorias de precio: momentum, tendencia, regimen y estructura. Cada memoria combina EMA, HMA, WMA y RMA. Posteriormente adapta la respuesta de la media final utilizando ATR relativo, eficiencia direccional, alineacion de las memorias, separacion en ATR, pendiente y posicion del precio.
El bias puede ser Alcista fuerte, Alcista, Neutral, Bajista o Bajista fuerte. Las fases disponibles son Compresion, Pre-cambio, Expansion, Agotamiento y Transicion. Pre-cambio exige confluencia normalizada por ATR, precio cercano a la IMA y debilitamiento de pendiente o cruce entre memorias. No predice la direccion del siguiente movimiento.
El modo MTF confirmado utiliza la vela anterior ya cerrada del marco solicitado. Las senales y alertas se confirman al cierre de la vela del grafico por defecto. Si se selecciona MTF vivo, sus valores pueden cambiar hasta que cierre la vela de origen.
Atlas IMA debe utilizarse como filtro de contexto, no como sistema automatico de entradas. No incorpora gestion de riesgo, stops, objetivos ni resultados historicos de estrategia. Las medias presentan retraso, los parametros no estan optimizados individualmente para todas las temporalidades y no se afirma ninguna precision o rentabilidad futura.
## Chart checklist before publishing
- Use standard candles.
- Remove every other indicator from the publication chart. The orange arrows/dots visible in the current screenshots must not appear unless they come from Atlas IMA and are explained.
- Remove unrelated drawings and horizontal levels.
- Keep the full symbol, timeframe, and Atlas IMA name visible.
- Use the default Clean preset so the average and panel are easy to identify.
- Choose a chart segment that shows at least two different regimes without selecting only unusually successful moments.
- Verify the title contains only ASCII characters.
- Review the description and ownership/credit information before submitting.
## Release notes
Current release
- Added ATR-normalized confluence.
- Tightened Pre-change requirements.
- Added close-confirmed signals and alerts.
- Added optional confirmed closed-candle MTF behavior.
- Added adaptive smoothing control.
- Removed visual bridging across inactive zones.
- Simplified the default chart presentation.
## Recommended public title
Atlas IMA
## Recommended publication mode
Public and open-source.
Before publishing, confirm that you created the script or have permission to publish every non-public-domain part of its code. TradingView can moderate reused open-source code that is not properly credited.
## English description (place this first)
Atlas IMA is an adaptive composite moving-average indicator designed to organize price action into directional bias, market regime, volatility phase, and moving-average confluence. “IMA” is the name of the composite average used by this script; it does not imply access to institutional order flow, private positioning, or proprietary market data.
### How it works
The script calculates four price memories representing momentum, trend, regime, and structure. Each memory blends EMA, HMA, WMA, and RMA calculations. The weights and lengths are selected from an automatic asset profile for Nasdaq 100, gold, oil, and forex, or from manual settings.
The four memories are combined into a final adaptive average. Its response changes according to:
- ATR relative to its historical average, used to identify compression and expansion.
- Directional efficiency, calculated as net displacement divided by the accumulated absolute price path.
- Alignment and separation of the four memories.
- Price position and the slope of the final average.
The directional bias has five states: Strong Bullish, Bullish, Neutral, Bearish, and Strong Bearish. A strong state requires trend alignment and a minimum separation measured in ATR, which prevents tightly clustered averages from being classified as a strong directional condition.
The phase engine reports Compression, Pre-change, Expansion, Exhaustion, or Transition. Pre-change requires the average memories to be in ATR-normalized confluence, price to be near the final average, and either a memory crossover or weakening slope. It does not predict the direction of the next move.
### Confluence and decision zone
Confluence is measured by dividing the distance between the highest and lowest memory by ATR. This normalization makes the threshold more comparable across symbols and price scales. The optional decision zone is centered on Atlas IMA and is displayed only during Compression or Pre-change by default.
### Multi-timeframe behavior
MTF mode is optional. When “MTF with closed/confirmed candle” is enabled, the script uses the previous completed higher-timeframe value together with `barmerge.lookahead_on`. The expression is offset inside the requested timeframe, so future higher-timeframe values are not used. When closed-candle mode is disabled, the active higher-timeframe value can change until that candle closes.
Signals and alert conditions are confirmed on the chart candle close by default. The displayed average and panel can still update during the open realtime candle. Users who require stable MTF values should keep closed-candle MTF mode enabled.
### Main settings
- Asset profile: automatic profile selection or manual parameters.
- Source and MTF source: price source, timeframe, and confirmed/live MTF behavior.
- Adaptive memories: momentum, trend, regime, and structure lengths.
- Weighting and lag: component weights, lag engine, and additional smoothing.
- Regime and volatility: ATR, ATR memory, efficiency, compression, expansion, and strong-bias thresholds.
- Confluence and decision: ATR-normalized confluence threshold and decision-zone width.
- Visual: clean/full/main-only presets, panel, optional markers, colors, and close confirmation.
### Spanish interface translation
The script interface is in Spanish. The principal labels translate as follows:
- Perfil de activo: Asset profile. Auto: Automatic. Oro: Gold. Petroleo: Oil. Manual: Manual.
- Precio origen: Source price. Usar origen MTF SAFE: Use MTF source. Timeframe origen MTF: MTF source timeframe.
- MTF con vela cerrada / confirmado: MTF using a closed/confirmed candle.
- Mostrar panel: Show panel. Posicion panel: Panel position.
- Memorias adaptativas: Adaptive memories. Momentum, tendencia, regimen and estructura: Momentum, trend, regime and structure.
- Motor de lag: Lag engine. Conservador, Adaptativo and Rapido: Conservative, Adaptive and Fast.
- Suavizado adicional IMA: Additional IMA smoothing.
- Regimen y volatilidad: Regime and volatility. Memoria ATR: ATR memory. Eficiencia tendencia: Trend efficiency.
- Compresion and expansion: Compression and expansion. Separacion ATR minima para bias fuerte: Minimum ATR separation for strong bias.
- Mostrar zona de confluencia: Show confluence zone. Rango maximo confluencia x ATR: Maximum confluence range in ATR.
- Mostrar Zona IMA de decision: Show IMA decision zone. Ancho Zona IMA x ATR: IMA zone width in ATR.
- Zona decision solo en compresion / pre-cambio: Show the decision zone only in Compression/Pre-change.
- Preset visual: Visual preset. Completo, Limpio and Solo principal: Full, Clean and Main only.
- Mostrar senales de bias/fase: Show bias/phase signals. Fondo suave por bias: Soft bias background.
- Confirmar senales y alertas al cierre: Confirm signals and alerts at candle close.
- Alcista/Bajista/Neutral: Bullish/Bearish/Neutral. Fuerte: Strong.
- Tendencia/Rango/Transicion: Trend/Range/Transition.
- Compresion/Pre-cambio/Expansion/Agotamiento: Compression/Pre-change/Expansion/Exhaustion.
- Confluencia Activa/No: Confluence Active/No.
### Suggested interpretation
Atlas IMA is a context filter, not an entry system. A directional bias is more meaningful when the regime is Trend and the memories are aligned. Compression and Pre-change indicate conditions to monitor, not automatic trades. Transition and Neutral states explicitly represent insufficient directional evidence.
### Limitations
- The indicator does not include position sizing, stops, targets, or backtested performance.
- Moving averages are lagging calculations and will react after abrupt reversals.
- Parameters are asset-oriented but are not independently optimized for every timeframe.
- The current candle can change before it closes; close-confirmed alerts reduce, but do not eliminate, every form of realtime uncertainty.
- Live MTF mode can revise while its source candle remains open.
- Results on non-standard chart types are based on synthetic chart prices and may differ from standard candles.
- No accuracy, profitability, or future-performance claim is made.
## Descripcion en espanol
Atlas IMA es un indicador de media movil compuesta y adaptativa que organiza el movimiento del precio en bias direccional, regimen, fase de volatilidad y confluencia. “IMA” es el nombre de la media compuesta del script; no significa que utilice flujo de ordenes institucional, posiciones privadas ni datos propietarios.
El indicador calcula cuatro memorias de precio: momentum, tendencia, regimen y estructura. Cada memoria combina EMA, HMA, WMA y RMA. Posteriormente adapta la respuesta de la media final utilizando ATR relativo, eficiencia direccional, alineacion de las memorias, separacion en ATR, pendiente y posicion del precio.
El bias puede ser Alcista fuerte, Alcista, Neutral, Bajista o Bajista fuerte. Las fases disponibles son Compresion, Pre-cambio, Expansion, Agotamiento y Transicion. Pre-cambio exige confluencia normalizada por ATR, precio cercano a la IMA y debilitamiento de pendiente o cruce entre memorias. No predice la direccion del siguiente movimiento.
El modo MTF confirmado utiliza la vela anterior ya cerrada del marco solicitado. Las senales y alertas se confirman al cierre de la vela del grafico por defecto. Si se selecciona MTF vivo, sus valores pueden cambiar hasta que cierre la vela de origen.
Atlas IMA debe utilizarse como filtro de contexto, no como sistema automatico de entradas. No incorpora gestion de riesgo, stops, objetivos ni resultados historicos de estrategia. Las medias presentan retraso, los parametros no estan optimizados individualmente para todas las temporalidades y no se afirma ninguna precision o rentabilidad futura.
## Chart checklist before publishing
- Use standard candles.
- Remove every other indicator from the publication chart. The orange arrows/dots visible in the current screenshots must not appear unless they come from Atlas IMA and are explained.
- Remove unrelated drawings and horizontal levels.
- Keep the full symbol, timeframe, and Atlas IMA name visible.
- Use the default Clean preset so the average and panel are easy to identify.
- Choose a chart segment that shows at least two different regimes without selecting only unusually successful moments.
- Verify the title contains only ASCII characters.
- Review the description and ownership/credit information before submitting.
## Release notes
Current release
- Added ATR-normalized confluence.
- Tightened Pre-change requirements.
- Added close-confirmed signals and alerts.
- Added optional confirmed closed-candle MTF behavior.
- Added adaptive smoothing control.
- Removed visual bridging across inactive zones.
- Simplified the default chart presentation.
Notes de version
addt automatic cripto profile detection and adjusted cripto parametersScript open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.