OPEN-SOURCE SCRIPT
GuidedByGod-Position Size Calculator -NQ/ES/YM

Position Size Calculator — NQ/ES/YM (Mini & Micro)
A simple risk-based position sizing tool for Nasdaq (NQ/MNQ), S&P (ES/MES), and Dow (YM/MYM) futures.
Enter how much you're willing to risk (either a fixed dollar amount or a % of your account) and your stop-loss distance in points. The indicator instantly tells you how many contracts to trade so your risk stays exactly where you want it — no manual math, no guessing.
Features:
Works with both mini and micro contracts across NQ, ES, and YM
Auto-detects the contract from your chart, or set it manually
Risk by fixed $ amount or % of account
Stop loss by points, or by entry/stop price
Clean, color-coded panel — green when your size is valid, red if something's off
Fully customizable: dark/light theme, accent color, text size, panel position
Compact mode for a minimal footprint on your chart
Built-in customizable reminder banner to reinforce good risk habits every time you look at the chart
Built for traders who want a quick, reliable way to size positions consistently — especially useful for prop firm evaluations and funded accounts where risk discipline matters most.
A simple risk-based position sizing tool for Nasdaq (NQ/MNQ), S&P (ES/MES), and Dow (YM/MYM) futures.
Enter how much you're willing to risk (either a fixed dollar amount or a % of your account) and your stop-loss distance in points. The indicator instantly tells you how many contracts to trade so your risk stays exactly where you want it — no manual math, no guessing.
Features:
Works with both mini and micro contracts across NQ, ES, and YM
Auto-detects the contract from your chart, or set it manually
Risk by fixed $ amount or % of account
Stop loss by points, or by entry/stop price
Clean, color-coded panel — green when your size is valid, red if something's off
Fully customizable: dark/light theme, accent color, text size, panel position
Compact mode for a minimal footprint on your chart
Built-in customizable reminder banner to reinforce good risk habits every time you look at the chart
Built for traders who want a quick, reliable way to size positions consistently — especially useful for prop firm evaluations and funded accounts where risk discipline matters most.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.