OPEN-SOURCE SCRIPT
Position Sizer (% of Acct & Shares Req)

- This indicator calculates % position size and share quantity required based on total capital and user-defined risk percentages
- This indicator differs from the Shares Qty indicator in that it is based on %'s rather than a user-defined, fixed dollar amount to risk (for those who prefer to calculate risk in this manner instead)
- Tracks real-time Low of Day (LoD) during regular trading hours (RTH) for accurate stop placement
- Current price as well as output rows 2 and 3 can be toggled on/off, per preference
- Allows stop loss selection between LoD, Low of Week (LoW), and Prior Day Low (PDL)
- Keeps data updating intraday to reflect changing LoD and price conditions
- Provides a second “Stop Loss Compare” dropdown to compare two stop methods side by side
- Displays all results in a dynamic on-chart table that updates with live prices
- Shows capital amount, stop type, stop price, and share counts for three risk levels
========= - Risk rows displayed as: [x%] Risk of Cap Amt: [pos. size as % of Cap Amt], [# shares req.]
=========
Disclaimer:
This indicator is for educational and informational purposes only. It should not be used as the sole basis for trading decisions. Always combine with other forms of analysis, proper risk management techniques, and consider your individual trading plan and risk tolerance. All calculations and outputs are provided as-is, and it is your responsibility to verify their accuracy before making any trading decisions.
Skrip open-source
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.
Pernyataan Penyangkalan
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.
Skrip open-source
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.
Pernyataan Penyangkalan
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.