OPEN-SOURCE SCRIPT

Variable Keltner Channel For DCA

Atualizado
Hello Everyone,

Sharing the indicator that I'm using for Dollar Cost Averaging into the stocks & ETFs in my portfolio.
Instead of entering regularly each month, entry only happens when the share price is below the indicator.

This indicator is based on Exponential Moving Average & Keltner Channel.
When 21 EMA is above 34 EMA, the line is 1 ATR below the 21 EMA. (green color)
When 21 EMA is below 34 EMA, the line is 2 ATR below the 21 EMA. (red color)

Exploring ways to refine this further, especially during sideways or transition to downtrend, do comment if you have any idea.
This strategy itself was based on SMA 50 strategy for DCA.
Notas de Lançamento
Hello Everyone,

Trend is now determined by 8 EMA, 21 EMA, & 55 EMA.
To respond quicker to change in trend and better during sustained downtrends.

When 8 EMA is above 21 EMA, and 21 EMA is above 55 EMA, line is 1 ATR below 21 EMA (green).
When either 8 EMA is below 21 EMA, or 21 EMA is below 55 EMA, line is 2 ATR below 21 EMA (orange).
When both 8 EMA is below 21 EMA, and 21 EMA is below 55 EMA, line is 2.5 ATR below 21 EMA (red).

As always, do share if you have any idea for improvements!
Notas de Lançamento
Hello Everyone,

Update to the DCA line as I find myself entering at the 21 EMA during uptrends.

When 8 EMA is above 21 EMA, and 21 EMA is above 55 EMA, line is at 21 EMA (green).
When either 8 EMA is below 21 EMA, or 21 EMA is below 55 EMA, line is 1.25 ATR below 21 EMA (orange).
When both 8 EMA is below 21 EMA, and 21 EMA is below 55 EMA, line is 2.5 ATR below 21 EMA (red).
Keltner Channels (KC)

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