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.
版本注释:
- Removed redundant comments in the code
版本注释:
Added stop loss size to 'LONG' & 'SHORT' cells
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?