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が提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?