OPEN-SOURCE SCRIPT
仓位计算器

# 仓位计算器
通过开仓、止损、止盈计算固定盈亏比适合的开仓数量,根据开仓和止损判断开仓方向。
首次使用需要手动设置开仓、止盈、止损,之后可以手动拖拽价格线设置值然后自动计算仓位信息。
---
# Position Calculator
Calculates the optimal position size with a fixed profit/loss ratio based on opening, stop-loss, and take-profit levels. Determines the direction of the position based on the opening and stop-loss settings.
Initial use requires manual setting of opening, take-profit, and stop-loss. Afterward, you can manually drag the price line to set values and the system will automatically calculate position information.
通过开仓、止损、止盈计算固定盈亏比适合的开仓数量,根据开仓和止损判断开仓方向。
首次使用需要手动设置开仓、止盈、止损,之后可以手动拖拽价格线设置值然后自动计算仓位信息。
---
# Position Calculator
Calculates the optimal position size with a fixed profit/loss ratio based on opening, stop-loss, and take-profit levels. Determines the direction of the position based on the opening and stop-loss settings.
Initial use requires manual setting of opening, take-profit, and stop-loss. Afterward, you can manually drag the price line to set values and the system will automatically calculate position information.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.