OPEN-SOURCE SCRIPT
Target/Stop Distance Tracker

This is a custom, dynamic utility indicator designed specifically for futures traders who trade 5-contract position sizes on the Micro Nasdaq-100 (MNQ) and Micro S&P 500 (MES). Instead of manually calculating point distances for your trades, this script automatically calculates and visualizes exactly how many points the market needs to move to hit your specific dollar-based profit targets and stop losses.
Key Features
Auto-Symbol Detection: The script automatically knows whether you are looking at an MNQ or MES chart and adjusts the point value math ($2/pt for MNQ, $5/pt for MES) in the background.
Fixed Dollar Goals: It is hardcoded to your specific trading plan for a 5-contract size:
MNQ: Calculates the distance for a $500 Profit Target (50 points) and a $250 Stop Loss (25 points).
MES: Calculates the distance for a $300 Profit Target (12 points) and a $250 Stop Loss (10 points).
Live Price Tracking: The target and stop levels update dynamically with the current price.
Minimalist Visuals: Uses clean, floating text labels that stay anchored strictly to the current, active candle. It will not clutter your chart with trailing labels from previous candles or bulky background boxes.
Directional Toggle: Includes a simple input in the settings to switch between "Long" and "Short" positions, automatically flipping the target above or below the current price.
How to Use It
Simply add it to your MNQ or MES chart. Open the indicator settings to check or uncheck the "Long Position?" box depending on your trade direction. The indicator will instantly project your required exit points perfectly scaled to your 5-contract position limits.
Key Features
Auto-Symbol Detection: The script automatically knows whether you are looking at an MNQ or MES chart and adjusts the point value math ($2/pt for MNQ, $5/pt for MES) in the background.
Fixed Dollar Goals: It is hardcoded to your specific trading plan for a 5-contract size:
MNQ: Calculates the distance for a $500 Profit Target (50 points) and a $250 Stop Loss (25 points).
MES: Calculates the distance for a $300 Profit Target (12 points) and a $250 Stop Loss (10 points).
Live Price Tracking: The target and stop levels update dynamically with the current price.
Minimalist Visuals: Uses clean, floating text labels that stay anchored strictly to the current, active candle. It will not clutter your chart with trailing labels from previous candles or bulky background boxes.
Directional Toggle: Includes a simple input in the settings to switch between "Long" and "Short" positions, automatically flipping the target above or below the current price.
How to Use It
Simply add it to your MNQ or MES chart. Open the indicator settings to check or uncheck the "Long Position?" box depending on your trade direction. The indicator will instantly project your required exit points perfectly scaled to your 5-contract position limits.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.