OPEN-SOURCE SCRIPT
Cập nhật positionsize calculator

How to use:
Use the cursor to select the time, entry, stop loss, and target position. Enter the trading fee to calculate the reward/risk ratio and the actual reward/risk ratio (including the commission) according to the price you selected.
Known error:
Settings of this script can't be saved as default might due to the interactive price selection function. If anyone knows how to fix it, please let me know.
feature:
The visual Risk/Reward box, have three price labels on the right hand of the box.
Calculate the actual reward/risk ratio based on the trading fee.
The visual Risk/Reward box will extend automatically.
https://www.tradingview.com/x/y44RXuZZ/
https://www.tradingview.com/x/jvLOvAFv/
Use the cursor to select the time, entry, stop loss, and target position. Enter the trading fee to calculate the reward/risk ratio and the actual reward/risk ratio (including the commission) according to the price you selected.
Known error:
Settings of this script can't be saved as default might due to the interactive price selection function. If anyone knows how to fix it, please let me know.
feature:
The visual Risk/Reward box, have three price labels on the right hand of the box.
Calculate the actual reward/risk ratio based on the trading fee.
The visual Risk/Reward box will extend automatically.
https://www.tradingview.com/x/y44RXuZZ/
https://www.tradingview.com/x/jvLOvAFv/
Phát hành các Ghi chú
Add a breakeven line. When the price hit this line, you can move your stop loss to your entry price.Phát hành các Ghi chú
Fixed the breakeven line code. The previous one can cause the script not workingPhát hành các Ghi chú
Revised the calculation about the actual risk/rewardPhát hành các Ghi chú
Added alert option. Note that you have to open new alerts every time you enter a new trade and close them after the trade is finished.Added the risk/reward lost percent function based on the trading fee.
Phát hành các Ghi chú
Added the English version. You can change it to English version by replacing the code I provided.Phát hành các Ghi chú
Fixed Algorithm of calculating position size and actual reward/risk again. Now your position size will be calculated based on the risk per trade, taker and maker fee.Phát hành các Ghi chú
Added a couple of simple calculations that could help you determine how much Leverage should use and the lowest win rate required. All the calculation includes the trading fee.Added Break even label.
Phát hành các Ghi chú
Added two features.1. improve the box visual quality.
2. Now you can see the profit you get from the table in real time.
Phát hành các Ghi chú
Minor adjustPhát hành các Ghi chú
Changed some translated words.Phát hành các Ghi chú
Change the algorithm of breakeven and added target2 option.Phát hành các Ghi chú
fixed the algorithmPhát hành các Ghi chú
fixed bugPhát hành các Ghi chú
fixed bugMã 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.