OPEN-SOURCE SCRIPT

Position Size Tool

Cập nhật
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.
Phát hành các Ghi chú
Table size option.
Phát hành các Ghi chú
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).
Phát hành các Ghi chú
Labels
Phát hành các Ghi chú
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.
Phát hành các Ghi chú
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.
Phát hành các Ghi chú
Labels
candleCandlestick analysisPortfolio managementpositionpositionsizeriskriskamanagementriskrewardsharesSIZEstatisticstool

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm