OPEN-SOURCE SCRIPT
Updated Position Sizing Calculator_V1

Added a Table Text Size setting so you can control how big the text appears in the on-chart table.
New input: Table Text Size with options Tiny / Small / Normal / Large / Huge
New input: Table Text Size with options Tiny / Small / Normal / Large / Huge
Release Notes
Add an Option to choose the Currency USD/INRRelease Notes
Updated for Account Split (Number of Positions)Release Notes
-Single Currency (USD/INR) setting used for both Account Size input and Position Size display-Risk + position sizing calculations now run directly in the selected currency
-All inputs grouped at the top for easier configuration
Release Notes
-Added two separate checkboxes: Show Slot Capital and Show Risk Capital-Slot Capital row displays Account Size / Number of Positions (per-position allocation)
-Risk Capital row displays the calculated risk amount based on the selected Risk Basis and Risk %
-Table auto-adjusts row count based on which rows (Slot/Risk/TP) are enabled
-Improved visibility and flexibility without changing core sizing calculations
-More Table Position Options
Release Notes
-Add Stoploss based on EMARelease Notes
-Auto Earnings Mode (earnings-only): automatically reduces risk/position size on earnings (and optional N bars after).-Earnings marker controls: show/hide marker, choose above/below bar, customize marker text.
-Minimum Stop Distance (%): blocks sizing if the stop is too tight.
-Stop Distance (%) display: optional table row showing the computed stop distance used for sizing.
-Dynamic table height: table auto-sizes its row count so bottom anchors don’t float.
-Timeframe-anchored entry basis: sizing now uses ATR TF close or EMA TF close (positional consistency).
Release Notes
- Added a negative manual offset for the EMA to position the SL below the EMA.Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.