OPEN-SOURCE SCRIPT
Gabriel UCS 31 Timeframes Scanner Game Changer

This is a separate companion indicator — add it to the same chart alongside the strategy. It scans 31 timeframes simultaneously using the identical 10-factor confluence engine:
What it shows: A color-coded table with one row per timeframe — 10s through 1M — each showing:
• Net P&L % (simulated cumulative return)
• Trade count
• Win rate %
• Verdict: ✓ PROFIT (green) or ✗ LOSS (red)
How it works: Each timeframe gets its own request.security() call running the full confluence engine + a simplified trade simulator (entry at signal, exit at ATR stop or target). It's not identical to the Strategy Tester (no commission, no scale-out), but it correctly identifies which intervals have positive expectancy for your threshold setting.
Usage: Load it on chosen Symbol, glance at the table — every green row is worth backtesting with the full strategy. Saves you from manually clicking through 60+ intervals.
Caveat: TradingView may limit some sub-minute timeframes depending on your plan and the symbol's data availability. If a row shows 0 trades, that timeframe likely has no data.
only accepts time-based intervals (seconds, minutes, hours, days, weeks, months). It cannot request tick or range chart data. Those chart types are proprietary to TradingView's charting engine and have no timeframe string you can pass programmatically.
What you can do for ticks/ranges: The scanner covers everything from 10s to 1M automatically. For tick and range intervals, you'd still need to manually switch the strategy (not the scanner) to each one — but the scanner narrows your search dramatically. If 25 of 31 time-based intervals are red, the odds of tick/range being profitable are low for that symbol.
What it shows: A color-coded table with one row per timeframe — 10s through 1M — each showing:
• Net P&L % (simulated cumulative return)
• Trade count
• Win rate %
• Verdict: ✓ PROFIT (green) or ✗ LOSS (red)
How it works: Each timeframe gets its own request.security() call running the full confluence engine + a simplified trade simulator (entry at signal, exit at ATR stop or target). It's not identical to the Strategy Tester (no commission, no scale-out), but it correctly identifies which intervals have positive expectancy for your threshold setting.
Usage: Load it on chosen Symbol, glance at the table — every green row is worth backtesting with the full strategy. Saves you from manually clicking through 60+ intervals.
Caveat: TradingView may limit some sub-minute timeframes depending on your plan and the symbol's data availability. If a row shows 0 trades, that timeframe likely has no data.
only accepts time-based intervals (seconds, minutes, hours, days, weeks, months). It cannot request tick or range chart data. Those chart types are proprietary to TradingView's charting engine and have no timeframe string you can pass programmatically.
What you can do for ticks/ranges: The scanner covers everything from 10s to 1M automatically. For tick and range intervals, you'd still need to manually switch the strategy (not the scanner) to each one — but the scanner narrows your search dramatically. If 25 of 31 time-based intervals are red, the odds of tick/range being profitable are low for that symbol.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.