OPEN-SOURCE SCRIPT

3 Moving Averages Crossover (High, Low, Close)

Moving Averages:

We calculate the 60-period simple moving averages (SMA) for the high, low, and close prices.
These moving averages are plotted on the chart:
Red for the high price.
Blue for the low price.
Green for the close price.
Trading Logic:

A long position is entered when the moving average of the close price crosses above both the high and low moving averages.
A short position is entered when the moving average of the close price crosses below both the high and low moving averages.
Moving AveragesPine utilitiesTrend Analysis

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