OPEN-SOURCE SCRIPT
Updated

Position Size Tool

233
Manual Stop Line: You are now prompted to enter an initial value to make the line visible, which can be re-opened from the indicator settings (simply select reset points). This can be helpful when switching between charts and the line falls outside of vision due to the price difference.


Limit Line :
Release Notes
Thanks for the original script from StockLeave !

This is a quick position sizing tool that automatically calculates the position size for long or short trades based on the selected price and stop-loss method. The tool supports the following five types of stop-loss:
1.Current bar's high
2.Current bar's low
3.Previous bar's high
4.Previous bar's low
5.Manually entered stop-loss price

Additionally, you can set a target price (Limit) at the bottom. When using the Manual Stop, the system will automatically calculate the optimal position size based on the manual stop-loss and the target price.

All calculations are performed automatically, making it easy to quickly evaluate the optimal position size under different stop-loss strategies.

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.