OPEN-SOURCE SCRIPT
Gold Smart Scalper AI V2

1. The "Red Zone" (News Management)
The strategy logic does not "know" when the Federal Reserve is speaking.
Rule: Disable the strategy or stop taking signals 15 minutes before and after high-impact news (CPI, NFP, FOMC).
Why: During these times, Gold can move $30 in seconds. Slippage will cause your $1.50 Stop Loss to execute much further away, leading to massive drawdown.
2. Session Selection
Gold "Scalping" requires high liquidity and tight spreads.
Discretionary Filter: Only trade during the London/New York overlap (13:00 – 17:00 UTC).
Avoid: The late Asian session or Sunday market open. Spreads often widen to $0.50–$1.00, meaning you are already down 30-50% of your Stop Loss the moment you enter.
3. Market "Mood" (Trend vs. Range)
Trend Context: If the 50 EMA (the White line) is completely flat, the market is in a "Bracket." In this state, EMA crossovers generate many false signals.
The Adjustment: Discretionary traders wait for the 50 EMA to show a clear slope (up or down) before trusting the 9/21 crossover signals.
The strategy logic does not "know" when the Federal Reserve is speaking.
Rule: Disable the strategy or stop taking signals 15 minutes before and after high-impact news (CPI, NFP, FOMC).
Why: During these times, Gold can move $30 in seconds. Slippage will cause your $1.50 Stop Loss to execute much further away, leading to massive drawdown.
2. Session Selection
Gold "Scalping" requires high liquidity and tight spreads.
Discretionary Filter: Only trade during the London/New York overlap (13:00 – 17:00 UTC).
Avoid: The late Asian session or Sunday market open. Spreads often widen to $0.50–$1.00, meaning you are already down 30-50% of your Stop Loss the moment you enter.
3. Market "Mood" (Trend vs. Range)
Trend Context: If the 50 EMA (the White line) is completely flat, the market is in a "Bracket." In this state, EMA crossovers generate many false signals.
The Adjustment: Discretionary traders wait for the 50 EMA to show a clear slope (up or down) before trusting the 9/21 crossover signals.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.