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が提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。