OPEN-SOURCE SCRIPT
已更新 AA PRO ENTRY ENGINE (ATR LOCKED + RE-ENTRY)

🚀 AA PRO ENTRY ENGINE (ATR LOCKED + RE-ENTRY)
AA PRO ENTRY ENGINE (ATR LOCKED) is an advanced trend-following indicator designed to identify high-probability continuation entries using a combination of market structure (HL/LH), EMA trend filtering, and ATR-based momentum confirmation.
Unlike traditional indicators that often generate excessive noise, this tool focuses on clean, filtered signals aligned with the dominant market trend.
🔑 How It Works
The indicator is built on three core components:
1️⃣ Trend Filter (EMA)
The trend is defined using an EMA:
BUY → price above EMA and EMA is rising
SELL → price below EMA and EMA is falling
2️⃣ Market Structure (HL / LH)
Entries are based on structural price behavior:
BUY signal → formation of a Higher Low (HL)
SELL signal → formation of a Lower High (LH)
This allows entries during pullbacks instead of late breakout entries.
3️⃣ ATR Lock (Momentum Confirmation)
A key feature of this indicator:
BUY signals are allowed only when ATR trend is bullish (green)
SELL signals only when ATR trend is bearish (red)
This significantly reduces:
counter-trend signals
low-momentum entries
📊 Signal Types
The indicator provides two types of signals:
🔵 BUY / SELL (Primary Signals)
The first signal in a new trend.
🟢 BUY+ / 🔴 SELL+ (Re-entries)
Additional entries within the same trend after new HL/LH formations.
Useful for position scaling and trend stacking.
⚙️ Built-in Filters
To reduce noise and improve signal quality, the indicator includes:
ATR-based distance from EMA
Candle impulse filter (avoids weak/doji candles)
Minimum bars between signals
Optional “signal after candle close” (non-repainting approach)
📈 How to Use
Works on all timeframes
Best suited for trending markets
Basic Guidelines:
Trade only in the direction of EMA + ATR trend
BUY signals above EMA
SELL signals below EMA
Use BUY+ / SELL+ for scaling into positions
⚠️ Disclaimer
This indicator:
is not designed for ranging markets
does not guarantee profits
does not include built-in risk management
It is recommended to combine it with:
higher timeframe analysis
support/resistance levels
proper risk management
💡 Concept
The goal of this indicator is to eliminate noise and focus on:
✔ market structure
✔ confirmed trend
✔ momentum
The result is a tool that highlights clean continuation entries, suitable for:
scalping
intraday trading
swing trading
AA PRO ENTRY ENGINE (ATR LOCKED) is an advanced trend-following indicator designed to identify high-probability continuation entries using a combination of market structure (HL/LH), EMA trend filtering, and ATR-based momentum confirmation.
Unlike traditional indicators that often generate excessive noise, this tool focuses on clean, filtered signals aligned with the dominant market trend.
🔑 How It Works
The indicator is built on three core components:
1️⃣ Trend Filter (EMA)
The trend is defined using an EMA:
BUY → price above EMA and EMA is rising
SELL → price below EMA and EMA is falling
2️⃣ Market Structure (HL / LH)
Entries are based on structural price behavior:
BUY signal → formation of a Higher Low (HL)
SELL signal → formation of a Lower High (LH)
This allows entries during pullbacks instead of late breakout entries.
3️⃣ ATR Lock (Momentum Confirmation)
A key feature of this indicator:
BUY signals are allowed only when ATR trend is bullish (green)
SELL signals only when ATR trend is bearish (red)
This significantly reduces:
counter-trend signals
low-momentum entries
📊 Signal Types
The indicator provides two types of signals:
🔵 BUY / SELL (Primary Signals)
The first signal in a new trend.
🟢 BUY+ / 🔴 SELL+ (Re-entries)
Additional entries within the same trend after new HL/LH formations.
Useful for position scaling and trend stacking.
⚙️ Built-in Filters
To reduce noise and improve signal quality, the indicator includes:
ATR-based distance from EMA
Candle impulse filter (avoids weak/doji candles)
Minimum bars between signals
Optional “signal after candle close” (non-repainting approach)
📈 How to Use
Works on all timeframes
Best suited for trending markets
Basic Guidelines:
Trade only in the direction of EMA + ATR trend
BUY signals above EMA
SELL signals below EMA
Use BUY+ / SELL+ for scaling into positions
⚠️ Disclaimer
This indicator:
is not designed for ranging markets
does not guarantee profits
does not include built-in risk management
It is recommended to combine it with:
higher timeframe analysis
support/resistance levels
proper risk management
💡 Concept
The goal of this indicator is to eliminate noise and focus on:
✔ market structure
✔ confirmed trend
✔ momentum
The result is a tool that highlights clean continuation entries, suitable for:
scalping
intraday trading
swing trading
版本注释
Added a MTF (Multi-Timeframe) filter that allows the indicator to use data from a higher timeframe (e.g. 15m) while displaying on a lower timeframe chart (e.g. 5m).All logic (EMA, ATR, structure, and signals) is now calculated on the selected timeframe, providing cleaner trend direction and more reliable signals.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
Free telegram channel t.me/alexmasterforex
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
Free telegram channel t.me/alexmasterforex
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。