OPEN-SOURCE SCRIPT
已更新 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/
版本注释
Add a breakeven line. When the price hit this line, you can move your stop loss to your entry price.版本注释
Fixed the breakeven line code. The previous one can cause the script not working版本注释
Revised the calculation about the actual risk/reward版本注释
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.
版本注释
Added the English version. You can change it to English version by replacing the code I provided.版本注释
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.版本注释
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.
版本注释
Added two features.1. improve the box visual quality.
2. Now you can see the profit you get from the table in real time.
版本注释
Minor adjust版本注释
Changed some translated words.版本注释
Change the algorithm of breakeven and added target2 option.版本注释
fixed the algorithm版本注释
fixed bug版本注释
fixed bug开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。