OPEN-SOURCE SCRIPT

positionsize calculator

Aggiornato
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/
Note di rilascio
Add a breakeven line. When the price hit this line, you can move your stop loss to your entry price.
Note di rilascio
Fixed the breakeven line code. The previous one can cause the script not working
Note di rilascio
Revised the calculation about the actual risk/reward
Note di rilascio
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.
Note di rilascio
Added the English version. You can change it to English version by replacing the code I provided.
Note di rilascio
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.
Note di rilascio
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.
Note di rilascio
Added two features.
1. improve the box visual quality.
2. Now you can see the profit you get from the table in real time.
Note di rilascio
Minor adjust
Note di rilascio
Changed some translated words.
Note di rilascio
Change the algorithm of breakeven and added target2 option.
Note di rilascio
fixed the algorithm
Note di rilascio
fixed bug
Note di rilascio
fixed bug
Pine utilitiesPortfolio managementsentiment

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità