OPEN-SOURCE SCRIPT
Atualizado Candle Size & Risk Manager - D.A.T

בכיף! הנה תיאור מקצועי, ברור ומסודר באנגלית שתוכל פשוט להעתיק ולהדביק כשאתה מפרסם או שומר את האינדיקטור ב-TradingView:
Candle Size & Risk Manager
Overview
The Candle Size & Risk Manager is a clean, non-intrusive tool designed to help traders calculate their exact position size instantly based on a predefined dollar risk. Instead of cluttering your chart with annoying floating labels, this indicator uses a smart Table UI and TradingView's built-in Status Line to give you the exact data you need, exactly when you need it.
Key Features
Dynamic Position Sizing: Automatically calculates how many contracts/shares to buy or sell based on your specific Risk (USD) and the High-Low range of the candle (Entry at one end, Stop Loss at the other).
Smart Table UI (Prev & Curr): A minimal, customizable table displays the statistics for the previously closed candle side-by-side with the current live candle. The live candle data is slightly transparent, allowing you to focus on the confirmed, closed candle for precise execution.
Hover for Historical Data: Want to backtest or check a previous setup? Simply hover your crosshair over any historical candle. The exact Quantity (Qty), Stop Distance, and Candle Value will instantly update in the Status Line and Data Window at the top of your screen.
Auto Point Value Detection: Built-in automatic detection for popular futures tickers (e.g., NQ, MNQ, ES, MES), with an option to manually override the point value for other instruments or stocks.
Long/Short Toggle: Easily switch between Long (Entry at High/Low, Stop at the opposite) and Short scenarios directly from the settings to adapt your risk calculation on the fly.
How to Use
Set your fixed Risk per Trade in USD.
Choose your intended position direction (Long or Short).
Check the corner table for immediate execution sizing on the last closed candle, or hover over past price action to study your setups cleanly.
Candle Size & Risk Manager
Overview
The Candle Size & Risk Manager is a clean, non-intrusive tool designed to help traders calculate their exact position size instantly based on a predefined dollar risk. Instead of cluttering your chart with annoying floating labels, this indicator uses a smart Table UI and TradingView's built-in Status Line to give you the exact data you need, exactly when you need it.
Key Features
Dynamic Position Sizing: Automatically calculates how many contracts/shares to buy or sell based on your specific Risk (USD) and the High-Low range of the candle (Entry at one end, Stop Loss at the other).
Smart Table UI (Prev & Curr): A minimal, customizable table displays the statistics for the previously closed candle side-by-side with the current live candle. The live candle data is slightly transparent, allowing you to focus on the confirmed, closed candle for precise execution.
Hover for Historical Data: Want to backtest or check a previous setup? Simply hover your crosshair over any historical candle. The exact Quantity (Qty), Stop Distance, and Candle Value will instantly update in the Status Line and Data Window at the top of your screen.
Auto Point Value Detection: Built-in automatic detection for popular futures tickers (e.g., NQ, MNQ, ES, MES), with an option to manually override the point value for other instruments or stocks.
Long/Short Toggle: Easily switch between Long (Entry at High/Low, Stop at the opposite) and Short scenarios directly from the settings to adapt your risk calculation on the fly.
How to Use
Set your fixed Risk per Trade in USD.
Choose your intended position direction (Long or Short).
Check the corner table for immediate execution sizing on the last closed candle, or hover over past price action to study your setups cleanly.
Notas de Lançamento
What's New:Actual Risk Calculation: Added a backend calculation (actualRiskDollars) that multiplies the recommended, rounded-down position size by the dollar risk per contract/share of that specific candle.
New Table Row: Added a dedicated "Actual Risk" row to the visual table for both the Previous (closed) and Current (live) candles. This value is color-coded in red so you can spot your true monetary risk at a glance.
Status Line Integration: The Actual Risk has also been added to the top Status Line and Data Window, meaning it will dynamically update when you hover over any historical candle.
Why this matters:
Because this indicator responsibly rounds down your position size to ensure you never exceed your maximum risk limit, your actual risk in a trade is often slightly lower than your inputted max risk.
For example, if your max risk is $100 and the math suggests 1.8 contracts, the script will tell you to buy 1 contract. Your actual risk is no longer $100, but rather the exact dollar size of the stop loss for that 1 contract.
Seeing this precise "Actual Risk" number is crucial for traders, as it prevents skewed Risk:Reward (R:R) expectations and helps you calculate your exact profit targets accurately.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.