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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。