OPEN-SOURCE SCRIPT
Güncellendi NQ Position Size Calculator

NQ Position Size Line Calculator is designed specifically for Nasdaq 100 futures (NQ) and micro futures (MNQ) traders who want to maintain disciplined risk management. This visual tool eliminates the guesswork from position sizing by displaying distance lines and contract calculations directly on your chart.
The indicator creates horizontal lines at 10-tick intervals from your stop loss level, showing you exactly how many contracts to trade at each distance to maintain your predetermined risk amount. Whether you're trading regular NQ contracts or micro MNQ contracts, this calculator ensures you never risk more than intended while providing instant visual feedback for optimal position sizing decisions.
How to Use the Indicator
Step 1: Configure Your Settings
Contract Type: Choose between:
Display Options:
Step 2: Read the Visual Display
Once configured, the indicator displays:
Stop Loss Line:
Distance Lines:
Labels (if enabled):
Step 3: Use the Information Tables
The indicator provides two helpful tables:
Position Size Table (top-right):
Settings Table (bottom-right):
Step 4: Apply to Your Trading
For Long Positions:
For Short Positions:
Step 5: Trading Execution
Before Entering a Trade:
Risk Management Features:
The indicator creates horizontal lines at 10-tick intervals from your stop loss level, showing you exactly how many contracts to trade at each distance to maintain your predetermined risk amount. Whether you're trading regular NQ contracts or micro MNQ contracts, this calculator ensures you never risk more than intended while providing instant visual feedback for optimal position sizing decisions.
How to Use the Indicator
Step 1: Configure Your Settings
- Stop Loss Price: Enter your exact stop loss level (e.g., 20000.00)
- Risk Amount ($): Set your maximum dollar risk per trade (e.g., $500)
Contract Type: Choose between:
- NQ (Regular): $5 per tick - for larger accounts
- MNQ (Micro): $0.50 per tick - for smaller accounts or conservative sizing
Display Options:
- Max Lines: Number of distance lines to show (default: 30)
- Show Labels: Toggle tick distance and contract count labels
- Line Color: Customize the color of distance lines
- Label Size: Choose tiny, small, or normal label sizes
Step 2: Read the Visual Display
Once configured, the indicator displays:
Stop Loss Line:
- Thick yellow line marking your exact stop loss level
- Yellow label showing the stop loss price
Distance Lines:
- Dashed red lines at 10-tick intervals above and below your stop loss
- Lines appear on both sides for long and short position planning
Labels (if enabled):
- Green labels (right side): For long positions above your stop loss
- Red labels (left side): For short positions below your stop loss
- Format: "20T 5x" means 20 ticks distance, 5 contracts maximum
Step 3: Use the Information Tables
The indicator provides two helpful tables:
Position Size Table (top-right):
- Shows common tick distances (10, 20, 40, 80, 160 ticks)
- Displays risk per contract at each distance
- Contract count for your specified risk amount
- Total risk with rounded contract numbers
Settings Table (bottom-right):
- Confirms your current risk amount
- Shows selected contract type
- Displays current settings for quick reference
Step 4: Apply to Your Trading
For Long Positions:
- Look at the green labels on the right side of your chart
- Find your desired entry level
- Read the label to see: distance in ticks and maximum contracts
- Example: "30T 8x" = 30 ticks from stop, buy 8 contracts maximum
For Short Positions:
- Look at the red labels on the left side of your chart
- Find your desired entry level
- Read the label for tick distance and contract count
- Example: "40T 6x" = 40 ticks from stop, sell 6 contracts maximum
Step 5: Trading Execution
Before Entering a Trade:
- Identify your stop loss level and input it into the indicator
- Choose your entry point by looking at the distance lines
- Note the contract count from the corresponding label
- Verify the risk amount matches your trading plan
- Execute your trade with the calculated position size
Risk Management Features:
- Contract rounding: All position sizes are rounded down (never up) to ensure you don't exceed your risk limit
- Zero position filtering: Lines only show where position size is at least 1 contract
- Dual-sided display: Plan both long and short opportunities simultaneously
Sürüm Notları
# Update Notes: NQ Position Size CalculatorThe latest build focuses on copy-trading workflow, visual customization, and cleaner risk displays.
## Key Additions
- **Multi-Account Support**
- New *Number of Accounts* input automatically scales contract counts per account and for the full group.
- Optional toggle adds “x ea / x total” labels on every distance line.
- **Refined Tables**
- Position-size table now lists **Ticks · Risk / $ · Per Account · Group Total**, omitting total-risk columns for a cleaner view.
- Settings table trimmed to essentials (risk per account, account count, contract type).
- **Customizable Styling (Inputs Tab)**
- Colour pickers for distance lines, stop line, long/short labels, table background, and table headers.
- Adjustable stop-line width; transparency handled via colour alpha sliders.
- **Label Enhancements**
- Label background colours now selectable; values remain rounded down to whole contracts.
- Optional group-contract display embedded directly inside each label.
- **One-Time Drawing Logic**
- Lines and labels redraw only when the stop price or account count changes, preventing chart clutter.
Sürüm Notları
NQ Position Size and Risk Reward CalculatorWhat It Does:
This TradingView indicator is a comprehensive position sizing and risk management tool specifically designed for NQ (E-mini Nasdaq-100) and MNQ (Micro E-mini Nasdaq-100) futures traders. It calculates optimal position sizes based on your risk tolerance, displays potential entry and exit levels, and provides visual guidance for multiple prop firm accounts.
Key Features:
Position Size Calculator:
• Calculates exact contract quantities based on your risk amount and stop loss distance
• Supports both NQ (regular) and MNQ (micro) contracts with their respective tick values
• Shows position sizes for individual accounts and total group contracts across multiple prop firm accounts
• Uses the formula: Position Size = Risk Amount ÷ (Tick Distance × Tick Value)
Visual Elements:
• Distance Lines: Horizontal dashed lines at 10-tick intervals above and below your stop loss price
• Entry Line: Blue solid line showing your planned entry price (optional display)
• Stop Loss Line: Yellow solid line showing your stop loss level (always visible)
• Take Profit Line: Aqua solid line showing your R-multiple target price
• Labels: Display tick distances, position sizes per account, and total group contracts
Risk Reward Management:
• Calculates take-profit levels based on R-multiples (2R = 2x your risk)
• Supports R-multiples from 1.0 to higher values for better risk-reward ratios
• Automatically determines long vs short position based on entry vs stop loss relationship
Prop Firm Integration:
• Designed for traders using multiple prop firm accounts (1-20 accounts)
• Shows individual account position sizes and total group contract quantities
• Accounts for typical prop firm risk management requirements
Data Tables:
• Position Size Table: Shows common tick distances (10, 20, 40, 80, 160 ticks) with corresponding position sizes
• Settings Table: Displays current risk parameters, account count, and contract type
Contract Specifications:
• NQ (Regular): $5.00 per tick (0.25 point minimum move)
• MNQ (Micro): $0.50 per tick (0.25 point minimum move)
How to Use:
1. Set Your Stop Loss: Enter your stop loss price in the indicator settings
2. Define Your Risk: Set your risk amount per account (default: $500)
3. Configure Accounts: Specify number of prop firm accounts you're trading
4. Choose Contract Type: Select NQ (regular) or MNQ (micro) contracts
5. Set Entry Price: Enter your planned entry price to enable take-profit calculations
6. Adjust R-Multiple: Set your desired risk-reward ratio (default: 2R)
Visual Customization:
• Toggle display of distance lines, entry line, and take-profit line
• Customize colors for all lines and labels
• Adjust label sizes (tiny, small, normal)
• Control maximum number of distance lines displayed (10-50)
Trading Applications:
• Scalping: Use lower tick distances (10-20 ticks) for quick entries and exits
• Swing Trading: Use higher tick distances (40-160 ticks) for longer-term positions
• Risk Management: Visualize risk-reward ratios before entering trades
• Prop Firm Trading: Manage multiple accounts with consistent position sizing
Position Sizing Logic:
The indicator calculates position sizes using professional risk management principles. For each tick distance from your stop loss, it determines how many contracts you can trade while maintaining your predetermined risk amount. This ensures consistent risk management across all trades regardless of stop loss distance.
Multi-Account Management:
Designed for prop firm traders managing multiple accounts simultaneously[4][18]. The indicator shows both individual account position sizes and total group contract quantities, making it easy to execute trades across multiple accounts while maintaining proper risk management.
This indicator transforms complex position sizing calculations into clear visual guidance, helping traders make informed decisions about trade sizing, risk management, and profit targets in the NQ and MNQ futures markets.
Sürüm Notları
chart updateSürüm Notları
✨ New FeaturesLine Length Control
New Input: "Line Length " - Control how far lines extend horizontally across your chart
Range: 10-100 bars (default: 40 bars)
Affects: All distance lines, entry lines, stop loss lines, and take-profit lines
Label Positioning Control
New Input: "Label Distance from Lines" - Adjust how far labels appear from the price lines
Range: 10-100 bars (default: 45 bars)
Affects: All position size labels and TP labels
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.