OPEN-SOURCE SCRIPT

Position Size for ATR Trailing Stop

Mis à jour
This indicator will calculate your position size, short or long, based on the ATR Trailing Stop indicator of mine, and are needed to be used together. General risk management suggests risking just 1 percent of your equity and using low leverage.
Notes de version
Changed the Equity to be Float with no minimum value so you can set it to XBT Satoshi value.
Notes de version
This new version allows you to set Manual Entries rather than the current price in case you want to set Limit Orders, and Manual Stops in case you want to override the ATR Trailing Stop and set your own instead. It thus becomes a general purpose Position Size Calculator.
Notes de version
The original version was designed with XBTUSD on BitMex in mind, this new premium version deals with BTC pairs on Mex, or equity that is valued in USD(T) like Bitfinex. It also includes fees within the risk percentage, and you can set what percentage for fees based on whether you are using a market order and paying the Taker fee for entry, or a limit order and receiving the Maker rebate, though I suggest assuming a Stop Market gets hit for dealing with worst case scenario on total risk.
Notes de version
Added ETHUSD on BitMex position sizing, which has an unusual contract size.
ATRpositionpositionsizeSIZEstopsVolatility

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script 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 nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité