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. اقرأ المزيد في شروط الاستخدام.