Mysteriown

Position Calculator

This script calculates how much cryptos or dollars you have to bet with 4 variables : Risk Loss , Leverage, Entry and Stop Loss.

When you want to open a position, just complete the parameters and the script will tell you how much you have to bet in dollars or cryptos units, depending the way you're trading.

Note : don't foreget that you have to pay fees on exchanges whose are not included here, specially with high leverage trades.
Notes de version: Corrected calculation of the bet in cryptos.
Set 2 decimals for the bet in dollars et 3 for the one in cryptos.
Notes de version: Add some features :
  • Take Profit value
  • position areas (green/red); the length of the areas can be modified in parameters
  • ratio R/R rounded with 2 decimals in the label
  • alert to be notified when the position is closed by Stop Loss or Take Profit

Note : the position areas are not ticked by default because of the parameters are 0; first fill them and then tick the position option.
To be notified when the position is closed, just add the alert and you'll be notified when it happens.

Find my scripts useful, toss a coin ;)
BTC : 1L21iwaz4NFutu8rXwgTtg4siiiVLVmh5s
ETH : 0x7ca6a37111d578fc94e10e1d155a75a13be202aa
Notes de version: Added intermediate take profit in the R/R calculation with the possibility to indicate the price and %.
To use it, just tick the option in parameters.
Script open-source

Dans le plus pur esprit de TradingView, l'auteur de ce texte l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur ! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par les règles internes. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Commentaires

Nice work! A good addition would be 2 seperate profit targets. Many trading systems scale out and calculating R/R with pre-planned targets would be awesome.
Répondre
Mysteriown UpsideAlpha
@UpsideAlpha, Thanks for your feedback. For example, options to sell ...% of the position at TP1 and the rest at TP2 ?
Répondre
Mysteriown UpsideAlpha
@UpsideAlpha, Added it ;)
Répondre
Accueil Screener d'actions Screener Forex Screener Crypto Calendrier économique A propos Caractéristiques du graphique Prix Parrainer un ami Règles de conduite Centre d'aide Solutions site web & courtier Widgets Solutions de cartographie Bibliothèque de graphiques allégés Blog & News Twitter