Kelly Leverage [Sim]

This is a risk management tool to determine the max leverage you should use based on your long and short conditions calculated via edge / risk. How? The script calculates the max drawdown (risk) based on your strategy and the max upside (edge) for a specified sample size of trades adjustable in the inputs section. Feel free to improve upon this or adjust code as you see fit.


Release Notes: Some bug fixes.
Release Notes: This is a good one if you know how to use it.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?