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.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.