OPEN-SOURCE SCRIPT
Position Size Gev_

Risk ($)
The amount of money you are willing to lose if the stop-loss is hit.
Base Stop Price
The stop-loss price you set. The stop is recalculated in real time as price moves.
Fee (%) round-trip
Estimated total trading fees for opening and closing the position.
Stop Mode
With Buffer: adds extra distance to the stop, resulting in a smaller position size
No Buffer: uses the Base Stop Price exactly as entered
Stop Buffer (%)
The percentage added to the stop distance when Stop Mode is set to With Buffer.
Live adjustment behavior
The stop price updates continuously as price moves, and the position size is recalculated live to stay aligned with the selected Risk ($).
The amount of money you are willing to lose if the stop-loss is hit.
Base Stop Price
The stop-loss price you set. The stop is recalculated in real time as price moves.
Fee (%) round-trip
Estimated total trading fees for opening and closing the position.
Stop Mode
With Buffer: adds extra distance to the stop, resulting in a smaller position size
No Buffer: uses the Base Stop Price exactly as entered
Stop Buffer (%)
The percentage added to the stop distance when Stop Mode is set to With Buffer.
Live adjustment behavior
The stop price updates continuously as price moves, and the position size is recalculated live to stay aligned with the selected Risk ($).
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.