OPEN-SOURCE SCRIPT
Trade Sizing

This script is a calculation tool for sizing a trade.
The aim here is to select two price (Opening and TP) and one point (Stop Loss) that will form the sizing of a trade.
You can configure :
The starting capital
The risk
The maker or taker fees
The tool will then display the different levels (Opening, SL, TP), and calculate the Break Even, the Quantity to buy, the different gains and loss ratio and their values.
There is a statistical Stop Loss selectable option. It is calculated in relation to the ATR and an exclusion percentage (configurable).
There are a lot of displays options (hide and show) and also cosmetic options (colors).
Special option : it's possible to define a TF value to keep the display size and the statistical SL value at this wanted TF.
The aim here is to select two price (Opening and TP) and one point (Stop Loss) that will form the sizing of a trade.
You can configure :
The starting capital
The risk
The maker or taker fees
The tool will then display the different levels (Opening, SL, TP), and calculate the Break Even, the Quantity to buy, the different gains and loss ratio and their values.
There is a statistical Stop Loss selectable option. It is calculated in relation to the ATR and an exclusion percentage (configurable).
There are a lot of displays options (hide and show) and also cosmetic options (colors).
Special option : it's possible to define a TF value to keep the display size and the statistical SL value at this wanted TF.
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.