You are on page 1of 1

Moving Trend indicator

Rather than using two moving averages which is slow. Using Moving Trend and Moving Averages give better and
faster signals. Something to explore for those who like crossovers.

Code:
MovTrend20 = LinearReg( Close, 20 ); // calculate moving trend
// plot moving trend, moving average and price bars
Plot( MovTrend20, "MovTrend-20", colorRed, styleThick );
Plot( MA( Close, 20 ), "MA-20", colorBlue, styleThick );
Plot( Close, "Price", IIf(Close > Open, colorDarkGreen,
colorDarkRed), styleBar) ;

You might also like