OPEN-SOURCE SCRIPT
已更新 AA Smart Structure Engine

AA Smart Structure Engine — Market Structure & Impulse Signals
📄 DESCRIPTION
AA Smart Structure Engine is a market structure indicator designed to identify potential trend continuations and reversals using a combination of:
Higher High / Lower High (HH / LH)
Lower Low / Higher Low (LL / HL)
Impulse candle confirmation (ATR + candle strength)
The indicator provides clear BUY and SELL signals based on confirmed price structure and momentum.
⚙️ How It Works
The indicator uses pivot-based structure detection to define key market movements:
HH (Higher High) — potential exhaustion in uptrend
LH (Lower High) — continuation of bearish structure
LL (Lower Low) — potential exhaustion in downtrend
HL (Higher Low) — continuation of bullish structure
A signal is only generated when structure aligns with a valid impulse candle, defined as:
Candle body > 50% of total range
Candle body > ATR × impulse factor
📈 Signal Logic
BUY Signal:
LL or HL structure formed
Bullish impulse candle
Confirmed closed candle
SELL Signal:
HH or LH structure formed
Bearish impulse candle
Confirmed closed candle
The indicator includes a built-in filter to avoid duplicate signals in the same direction.
🎯 Key Features
Market structure detection (HH, HL, LH, LL)
Impulse-based confirmation (ATR + candle strength)
No repaint (signals appear only after candle close)
Clean visual signals (BUY / SELL labels)
Customizable signal colors
⚙️ Inputs
Pivot Length — controls structure sensitivity
ATR Length — volatility calculation period
Impulse Strength — defines candle strength threshold
BUY / SELL Colors — visual customization
📌 How to Use
This indicator can be used as:
An entry confirmation tool
A trend-following filter
A market structure shift detector
Best used in combination with:
Higher timeframe analysis
Support and resistance levels
Trend filters (EMA, Kijun, etc.)
⚠️ Disclaimer
This indicator does not guarantee profits and should not be considered financial advice.
Always use proper risk management and combine it with a broader trading strategy.
🏷️ TAGS
market structure, smart money, price action, trend, forex, crypto, trading
📄 DESCRIPTION
AA Smart Structure Engine is a market structure indicator designed to identify potential trend continuations and reversals using a combination of:
Higher High / Lower High (HH / LH)
Lower Low / Higher Low (LL / HL)
Impulse candle confirmation (ATR + candle strength)
The indicator provides clear BUY and SELL signals based on confirmed price structure and momentum.
⚙️ How It Works
The indicator uses pivot-based structure detection to define key market movements:
HH (Higher High) — potential exhaustion in uptrend
LH (Lower High) — continuation of bearish structure
LL (Lower Low) — potential exhaustion in downtrend
HL (Higher Low) — continuation of bullish structure
A signal is only generated when structure aligns with a valid impulse candle, defined as:
Candle body > 50% of total range
Candle body > ATR × impulse factor
📈 Signal Logic
BUY Signal:
LL or HL structure formed
Bullish impulse candle
Confirmed closed candle
SELL Signal:
HH or LH structure formed
Bearish impulse candle
Confirmed closed candle
The indicator includes a built-in filter to avoid duplicate signals in the same direction.
🎯 Key Features
Market structure detection (HH, HL, LH, LL)
Impulse-based confirmation (ATR + candle strength)
No repaint (signals appear only after candle close)
Clean visual signals (BUY / SELL labels)
Customizable signal colors
⚙️ Inputs
Pivot Length — controls structure sensitivity
ATR Length — volatility calculation period
Impulse Strength — defines candle strength threshold
BUY / SELL Colors — visual customization
📌 How to Use
This indicator can be used as:
An entry confirmation tool
A trend-following filter
A market structure shift detector
Best used in combination with:
Higher timeframe analysis
Support and resistance levels
Trend filters (EMA, Kijun, etc.)
⚠️ Disclaimer
This indicator does not guarantee profits and should not be considered financial advice.
Always use proper risk management and combine it with a broader trading strategy.
🏷️ TAGS
market structure, smart money, price action, trend, forex, crypto, trading
發行說明
🔔 Added Alert FunctionalityThis update introduces built-in alert conditions for both BUY and SELL signals. Alerts are triggered only after candle close, ensuring non-repainting behavior and higher signal reliability. Each signal generates a single alert, preventing duplicates and unnecessary notifications.
發行說明
🔔 New Feature — Candle Close ConfirmationA new optional “Signal After Candle Close” setting has been added.
When enabled, signals are confirmed only after the candle closes, helping to avoid premature entries during candle formation and reducing false signals caused by intrabar noise.
ON → More reliable, confirmed signals
OFF → Faster, more aggressive entries
This feature allows better control between early entries and signal accuracy, especially in volatile market conditions.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
Free telegram channel t.me/alexmasterforex
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
Free telegram channel t.me/alexmasterforex
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。