DojiEmoji

Indicator: SMA/EMA (Multi timeframes)

This moving average indicator will plot the SMA or EMA sourced from a different timeframe on the current chart.

Applications:
Say you are viewing an hourly chart but you also want to know the ema20 sourced from a higher timeframe (i.e daily) of the same security. The problem with using most built-in indicators is that the MA values are usually calculated from the current chart, so to do that, you will have to toggle between 1h/1D. This script will eliminate this hassle by plotting out the desired alternative timeframe on the same chart.

Dynamic settings
By default the alternative timeframe is 1D, but this can be customized further:
- 1 week chart -> plots out 1 month MA
- 1 day chart -> plots out 1 week MA
- 1 hour chart -> plots out 1 day MA
Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?