OPEN-SOURCE SCRIPT
1M Scalping Strategy

This script is an educational Heikin Ashi and EMA study designed to help traders observe pullback/doji conditions and EMA reclaim behavior.
The script uses Heikin Ashi candle data together with a configurable EMA, defaulted to 100. It is designed mainly for short-term chart review and backtesting, especially on lower timeframes such as the 1-minute chart.
There are two main study conditions included:
1. HA Pullback Watch
The pullback watch condition looks for price location relative to the EMA and a specific Heikin Ashi candle sequence.
For a bullish pullback watch, the script looks for:
- Heikin Ashi price above the EMA
- Two red Heikin Ashi pullback candles
- The pullback candles having little to no upper wick
- A green doji-style Heikin Ashi candle forming after the pullback
For a bearish pullback watch, the script looks for:
- Heikin Ashi price below the EMA
- Two green Heikin Ashi pullback candles
- The pullback candles having little to no lower wick
- A red doji-style Heikin Ashi candle forming after the pullback
These conditions are marked as watch or confirmed conditions depending on whether the candle is still forming or has closed.
2. EMA Reclaim Watch
The EMA reclaim portion of the script looks for price moving from one side of the EMA to the other.
A bullish EMA reclaim condition happens when Heikin Ashi price was recently below the EMA, then pushes back above the EMA with a stronger green candle near the EMA area.
A bearish EMA reclaim condition happens when Heikin Ashi price was recently above the EMA, then pushes back below the EMA with a stronger red candle near the EMA area.
The script includes optional settings for:
- EMA length
- Doji body percentage
- Wick tolerance
- Strong candle body percentage
- EMA reclaim lookback
- EMA touch tolerance
- Volume filter
- Showing or hiding different study markers
The chart markers are intended to help users study possible pullback and EMA reclaim behavior. They are not financial advice, trade recommendations, or guaranteed buy/sell signals. Because the script uses Heikin Ashi data, users should be aware that Heikin Ashi candles are calculated candles and may not represent actual traded prices.
This script should be used for educational study, manual review, and backtesting only. Users should apply their own analysis, risk management, and confirmation before making any trading decisions.
The script uses Heikin Ashi candle data together with a configurable EMA, defaulted to 100. It is designed mainly for short-term chart review and backtesting, especially on lower timeframes such as the 1-minute chart.
There are two main study conditions included:
1. HA Pullback Watch
The pullback watch condition looks for price location relative to the EMA and a specific Heikin Ashi candle sequence.
For a bullish pullback watch, the script looks for:
- Heikin Ashi price above the EMA
- Two red Heikin Ashi pullback candles
- The pullback candles having little to no upper wick
- A green doji-style Heikin Ashi candle forming after the pullback
For a bearish pullback watch, the script looks for:
- Heikin Ashi price below the EMA
- Two green Heikin Ashi pullback candles
- The pullback candles having little to no lower wick
- A red doji-style Heikin Ashi candle forming after the pullback
These conditions are marked as watch or confirmed conditions depending on whether the candle is still forming or has closed.
2. EMA Reclaim Watch
The EMA reclaim portion of the script looks for price moving from one side of the EMA to the other.
A bullish EMA reclaim condition happens when Heikin Ashi price was recently below the EMA, then pushes back above the EMA with a stronger green candle near the EMA area.
A bearish EMA reclaim condition happens when Heikin Ashi price was recently above the EMA, then pushes back below the EMA with a stronger red candle near the EMA area.
The script includes optional settings for:
- EMA length
- Doji body percentage
- Wick tolerance
- Strong candle body percentage
- EMA reclaim lookback
- EMA touch tolerance
- Volume filter
- Showing or hiding different study markers
The chart markers are intended to help users study possible pullback and EMA reclaim behavior. They are not financial advice, trade recommendations, or guaranteed buy/sell signals. Because the script uses Heikin Ashi data, users should be aware that Heikin Ashi candles are calculated candles and may not represent actual traded prices.
This script should be used for educational study, manual review, and backtesting only. Users should apply their own analysis, risk management, and confirmation before making any trading decisions.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.