OPEN-SOURCE SCRIPT
UniMacro: Scalp Mod + AutoTrailing

⚡ Don't guess the direction. Follow the "Market Driver".
The UniMacro Scalp is a specialized correlation-based indicator designed for scalping indices, specifically optimized for DAX (DE40/GER40) and its reaction to the US Market.
European markets often lag behind or mirror the strong moves of their US counterparts. This script mathematically identifies which US index (S&P 500, Dow Jones, or Nasdaq) is currently "driving" the price action and generates signals only when the correlation is statistically significant.
How It Works
The "Driver" Logic: The script monitors SPX500, US30, and NAS100 in real-time. It automatically detects which index has the highest correlation with your current chart (e.g., DAX).
Signal Filter: Trades are only taken if:
The Correlation Coefficient is > 0.80 (Strong Link).
The "Driver" index is trending (Above/Below SMA 50).
Scalping Risk Management: The indicator comes with built-in ATR-based SL/TP settings tuned for quick scalps (tight stops, quick profits).
Auto-Trailing: Includes an automatic Trailing Stop that activates instantly to lock in profits during volatility spikes.
The Dashboard
A compact table in the top-right corner displays:
Real-time correlation with US Indices.
Highlights the current "Driver" (Green = Strong Correlation).
Best Setup for DAX
Asset: DAX (GER40 / DE40), UK100, or CAC40.
Timeframe: 1m or 5m (Scalping Mode).
Settings: Default settings are tuned for high volatility. Adjust the Correlation Period to 10-15 for even faster reactions on the 1-minute chart.
Risk Warning: This is a scalping tool based on historical correlations. Correlations can break during news events. Use with proper risk management.
👇 Boost this script if you trade the Open! 🚀
The UniMacro Scalp is a specialized correlation-based indicator designed for scalping indices, specifically optimized for DAX (DE40/GER40) and its reaction to the US Market.
European markets often lag behind or mirror the strong moves of their US counterparts. This script mathematically identifies which US index (S&P 500, Dow Jones, or Nasdaq) is currently "driving" the price action and generates signals only when the correlation is statistically significant.
How It Works
The "Driver" Logic: The script monitors SPX500, US30, and NAS100 in real-time. It automatically detects which index has the highest correlation with your current chart (e.g., DAX).
Signal Filter: Trades are only taken if:
The Correlation Coefficient is > 0.80 (Strong Link).
The "Driver" index is trending (Above/Below SMA 50).
Scalping Risk Management: The indicator comes with built-in ATR-based SL/TP settings tuned for quick scalps (tight stops, quick profits).
Auto-Trailing: Includes an automatic Trailing Stop that activates instantly to lock in profits during volatility spikes.
The Dashboard
A compact table in the top-right corner displays:
Real-time correlation with US Indices.
Highlights the current "Driver" (Green = Strong Correlation).
Best Setup for DAX
Asset: DAX (GER40 / DE40), UK100, or CAC40.
Timeframe: 1m or 5m (Scalping Mode).
Settings: Default settings are tuned for high volatility. Adjust the Correlation Period to 10-15 for even faster reactions on the 1-minute chart.
Risk Warning: This is a scalping tool based on historical correlations. Correlations can break during news events. Use with proper risk management.
👇 Boost this script if you trade the Open! 🚀
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.