OPEN-SOURCE SCRIPT

QTY@RISK

Atualizado
What it does:
This indicator calculates the amount of shares to take at a predefined risk according to market volatility based on ATR.
This should help novice traders focus more on their trades and strategies instead of spending too much time calculating parameters.

How it works:
You have some configuration parameters
1. Number of candles used to calculate the ATR
2. ATR calculation method (SMA, RMA, EMA, WMA)
3. How much you want to risk in $.
4. Safety factor on ATR, to get a buffer
5. Size of your capital to be able to calculate the maximum amount of shares
6. Shares limit, if you have a certain limit of shares to take

The formula is simple:
Is the RISK/ATR * price > Equity ? then take the Equity/price
otherwise: SHARES = RISK/(ATR * safety_factor)

How to use it:
This indicator is most useful for intraday timeframe. If you trade on 1m, then use it in this timeframe
Notas de Lançamento
Updated this indicator with following features
- you can show up to 3 different ATRs and it's risk calculations
- added timeframe based calculation to see the ATR of 1m timeframe inside a 15s timeframe and so on
- you always can select one timeframe as CT = current timeframe to see always the ATR of your visible timeframe
- added OTF / Onetime Framing indicator on candle sticks (experimental)
calculatorCandlestick analysisheldentalhldtriskmanagment

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal