OPEN-SOURCE SCRIPT

Position Size Tool

已更新
Updated - Version 2

This tool is used to calculate the size of a trade.

Settings - Type in total account size and % of capital that can be risked on each trade.

The table will display:
Column 1 - Stop placement based on low, mid or high value of the current candle.
Column 2 - Percent risk on the trade.
Column 3 - Amount of shares that can be traded (calculated from account size, risk and selected stop placement).

Green color is intended for long position, stop at the low of the candle.
Red color is intended for short position, stop at the high of the candle.
Middle value can shift between either color since its measured from open to close.
發布通知
Table size option.
發布通知
Added a movable stop line for specific stop placement, can for example be helpful on shorter timeframes or custom values. The line have its own size / risk input which can be accessed from the inputs tab. You can hide the function via the styles tab. Line have two colors, in case above current price will be Green (buy stop order) or below price Red (sell stop order).
發布通知
Labels
發布通知
Added checkbox for the option to remove the main table information or movable line based on preference. This can be used in case one does not use both functions and want to have more space / clearer information.
發布通知
Account Input: Account size and risk are now entered in one place.

Table: Added headers and the option to show or hide individual sections to make it more customizable.

Manual Stop Line: You are now prompted to enter an initial value to make the line visible, which can be re-opened from the indicator settings (simply select reset points). This can be helpful when switching between charts and the line falls outside of vision due to the price difference.

Layout: More user friendly settings tab and added some tooltips.
發布通知
Labels
candleCandlestick analysisPortfolio managementpositionpositionsizeriskriskamanagementriskrewardsharesSIZEstatisticstool

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明