OPEN-SOURCE SCRIPT

6 EMA SMA RMA + Forecasting

Description:

Hey hi, this Script is a bit simple. Let's start with some definitions.

Moving Average (MA)
In statistics, a moving average is a calculation used to analyze data points by creating a series of averages of different subsets of the full data set. In finance, a moving average (MA) is a stock indicator that is commonly used in technical analysis . The reason for calculating the moving average of a stock is to help smooth out the price data by creating a constantly updated average price . This makes this tool one of the most important for technical analysis .

Forecasting
Forecasting is the process of making predictions based on past and present data and most commonly by analysis of trends . In the same way that the moving average (MA) the forecasting is something highly desirable, in this way we opted to develop an indicator that allows the use of up to 6 moving averages combined with the forecasting.

In addition to having the option of up to 6 moving averages, these can be of different types, being able to choose between up to 3 options (it is proposed to add more options later) which are listed below.
  • Exponential Moving Average ( EMA )
  • Simple Moving Average ( SMA )
  • Running Moving Average (RMA)


In addition to the above, 2 prediction methods were added, which are listed and detailed below.
  • Repetition. Makes forecast repeating the last candle M times.
  • Linear Regression ( LR ). Linear Regression does N period LR forecast averaged with length-N Moving Average
Moving Averagesrmasma

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer