PROTECTED SOURCE SCRIPT
Position Size Calculator

A simple, clean position sizing tool designed for futures traders who want to know exactly how many contracts to trade based on their risk parameters.
How It Works
Enter your dollar risk amount and the indicator automatically calculates the number of contracts you can trade with your stop loss placed at the candle's high or low. No more manual math — just glance at the table and execute.
Features
Adjustable Risk Amount — Set any dollar amount you're willing to risk per trade (default $500)
Risk:Reward Ratio — Customize your R:R target (1:1, 1:2, 1:3, etc.) to see your take profit level and potential profit
Multiple Contract Types — Pre-configured tick values for MNQ, MGC, MES, MCL, or enter custom values for any instrument
Flexible Stop Loss Placement — Use current or previous candle, choose high/low automatically based on candle direction, or manually select. Add a buffer for extra protection
Entry Options — Calculate from close, open, high, low, or a custom price
What The Table Shows
Contract type and point value
Entry price and stop loss price
Stop loss distance in points
Take profit target based on your R:R
Risk per contract
Number of contracts to trade (highlighted)
Actual dollar risk with calculated position size
Target profit at your R:R
Best Used For
Futures day traders who size positions based on a fixed dollar risk and want quick, accurate contract calculations without cluttering the chart.
How It Works
Enter your dollar risk amount and the indicator automatically calculates the number of contracts you can trade with your stop loss placed at the candle's high or low. No more manual math — just glance at the table and execute.
Features
Adjustable Risk Amount — Set any dollar amount you're willing to risk per trade (default $500)
Risk:Reward Ratio — Customize your R:R target (1:1, 1:2, 1:3, etc.) to see your take profit level and potential profit
Multiple Contract Types — Pre-configured tick values for MNQ, MGC, MES, MCL, or enter custom values for any instrument
Flexible Stop Loss Placement — Use current or previous candle, choose high/low automatically based on candle direction, or manually select. Add a buffer for extra protection
Entry Options — Calculate from close, open, high, low, or a custom price
What The Table Shows
Contract type and point value
Entry price and stop loss price
Stop loss distance in points
Take profit target based on your R:R
Risk per contract
Number of contracts to trade (highlighted)
Actual dollar risk with calculated position size
Target profit at your R:R
Best Used For
Futures day traders who size positions based on a fixed dollar risk and want quick, accurate contract calculations without cluttering the chart.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.