OPEN-SOURCE SCRIPT
Trade Sizing

This script is a calculation tool for sizing a trade.
The aim here is to select two price (Opening and TP) and one point (Stop Loss) that will form the sizing of a trade.
You can configure :
The starting capital
The risk
The maker or taker fees
The tool will then display the different levels (Opening, SL, TP), and calculate the Break Even, the Quantity to buy, the different gains and loss ratio and their values.
There is a statistical Stop Loss selectable option. It is calculated in relation to the ATR and an exclusion percentage (configurable).
There are a lot of displays options (hide and show) and also cosmetic options (colors).
Special option : it's possible to define a TF value to keep the display size and the statistical SL value at this wanted TF.
The aim here is to select two price (Opening and TP) and one point (Stop Loss) that will form the sizing of a trade.
You can configure :
The starting capital
The risk
The maker or taker fees
The tool will then display the different levels (Opening, SL, TP), and calculate the Break Even, the Quantity to buy, the different gains and loss ratio and their values.
There is a statistical Stop Loss selectable option. It is calculated in relation to the ATR and an exclusion percentage (configurable).
There are a lot of displays options (hide and show) and also cosmetic options (colors).
Special option : it's possible to define a TF value to keep the display size and the statistical SL value at this wanted TF.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.