OPEN-SOURCE SCRIPT
Telah dikemas kini

AA Smart Structure Engine

4 880
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
Nota Keluaran
🔔 Added Alert Functionality

This 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.
Nota Keluaran
🔔 New Feature — Candle Close Confirmation

A 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.

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.