OPEN-SOURCE SCRIPT

Position Size Calc. (Minimalist)

Updated
This is a simplified position size calculator in the form of a table.

The reason I published this script is because all other position size calculator scripts try to provide way too much when it should be much simpler, position in strange areas of the chart and leave unwanted chart pollution.

This is a bare-bones functional table that takes your risk level, entry, stop and take profit as inputs, and calculates your loss, profit and required position size for your chosen risk level as a result.

Inspired by a table type position size calculator made by DojiEmoji design/color-wise. Functionally different however.

I hope you find this script useful and include it on your trading journey.
Release Notes
Added Lot Size Calculator Functionality.

Now users can select their account currency denomination and calculate their relevant lot size for Forex trading pairs irrespective of whether or not the pair is denominated by their account currency or not.

This feature is in beta and improvements may be made.
Release Notes
Fixed a bug where for certain pairs the exchange rate could not be fetched.
Removed 'CNH' account denomination currency temporarily as exchange rates for USDCNH pairs cannot be fetched.
Release Notes
Fixed a calculation error for lot size calculations
Release Notes
Fixed a bug where certain pairs did not function for providing lot sizes
Fixed a bug where the incorrect lot size was returned for pairs not in the specified account currency.
Release Notes
fixed a bug where lot size was arbitrarily adjusted using the ticker exchange rate
Release Notes
Fixed a bug where for some pairs the calculator would not appear, given it wouldn't initially ignore the invalid symbol before the manual check.
calculatormanagementPortfolio managementpositionriskSIZE

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?


Also on:

Disclaimer