OPEN-SOURCE SCRIPT

Position Calculator

Updated
This script calculates how much cryptos or dollars you have to bet with 4 variables : Risk Loss [$], Leverage, Entry and Stop Loss.

When you want to open a position, just complete the parameters and the script will tell you how much you have to bet in dollars or cryptos units, depending the way you're trading.

Note : don't foreget that you have to pay fees on exchanges whose are not included here, specially with high leverage trades.
Release Notes
Corrected calculation of the bet in cryptos.
Set 2 decimals for the bet in dollars et 3 for the one in cryptos.
Release Notes
Added intermediate take profit in the R/R calculation with the possibility to indicate the price and %.
To use it, just tick the option in parameters.
alertsetupcalculatedriskcalculationcalculatorpositionsizingpositiontradingPrice/Earnings Ratio (P/E Ratio)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer