vnhilton

Equities Risk Tool [vnhilton]

To quickly apply this indicator onto the chart, open the source code in Pine Editor & click 'Add to chart'. Perhaps in the future, TradingView will add a feature where you can have favourited indicators on the favourites toolbar alongside the favourited drawing tools. 🤔

Traders will need to calculate how many shares are needed for their position, where if price goes against them towards their stop loss, then they'll lose the amount that they risked on that trade. The formula for this is: Amount willing to risk / Stop loss distance. Traders can carry out these calculations via a calculator, spreadsheet or a simple program with outputs generated from inputs. These 3 methods have 1 thing in common, & it's that you have to manually input the the values, which isn't very convenient, especially for traders trading in a fast paced environment, where milliseconds matter. This indicator is similar to TradingView's Long & Short Position tools, & removes this inconvenience by allowing you to only click to submit your entry & stop out levels, without having to type a single thing (the only thing that would require typing is your account equity in the settings).

This indicator will display lines on the chart showing the entry, stop-out & several profit target levels. The entry & stop-out levels can be moved in any direction as desired, & the profit target levels following suit. You're able to adjust the different profit factors if you're aiming for different reward targets (e.g. You want a 1:2 RR trade, so the profit factor here will be 2 - 2 times the distance between the entry level & stop out level).

A table will also be displayed showing the direction of the position, alongside the shares required for several account risks which is useful if trading different quality setups from A-D for example. The calculated shares displayed are also shown in proportions as well. Here, you're able to see 25%-50%-75%-100% of calculated shares, which may be useful when scaling in/out of trades. All mentioned features are customisable.

Calculated shares for long & short positions can be rounded down to any decimal places. This can be useful if you intend to trade e.g. in batches of 100, then you would use a round down factor of -2.
Release Notes:
- Removed redundant comments in the code
Release Notes:
Added stop loss size to 'LONG' & 'SHORT' cells
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.

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.

Want to use this script on a chart?