OPEN-SOURCE SCRIPT
Diupdate 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
Catatan Rilis
🔔 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.
Catatan Rilis
🔔 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.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Free telegram channel t.me/alexmasterforex
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Free telegram channel t.me/alexmasterforex
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.