The "ORTI Moving Average Convergence Divergence (Static Timeframe Multi-Period)" is now a public script, based into a existing study named "MACD aka Moving Average Convergence Divergence", but with some better functions about time frame and its measurament. As a redesigned and recalculated set of the common plotted averages, a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price.
The cherry on the top for this version is, when you want to get a predetermined count in (ranges) units of time, as: minutes, hours or days, in any graph you could get a static average, and this count will be automatically respected. For example, an average could be configurated to know a trend per day, week or month... or whatever comes to mind, and at every single chart that you move through (5m, 15m, 1h, 4h, etc), you will see the same average to make your own "trend analysis" into a micro/macro market view.
But now, with the option to convert the " Exponential Moving Average " to adapt into 9 different kinds of "Moving Averages" and by any of the most used Moving Averages, an hybrid basically.
The following options to convert the "Exponential Moving Average ( EMA ) to:
• Double Exponential Moving Average ( DEMA )
• Exponential Moving Average ( EMA )
• Hull Moving Average ( HMA )
• Modified Moving Average ( MMA ) *
• Rolling Moving Average ( RMA ) *
• Simple Moving Average ( SMA )
• Smoothed Moving Average ( SMMA ) *
• Volume-weighted Moving Average ( VWMA )
• Weighted Moving Average ( WMA )
* Same Moving Averages: a Modified Moving Average is otherwise known as the Running Moving Average or Smoothed Moving Average.
The MACD is usually calculated by subtracting the 26-period Exponential Moving Average ( EMA ) from the 12-period EMA . The result of that calculation is the MACD line. A nine-day EMA of the MACD , called the "Signal Line", is then plotted on top of the MACD line which can function as a trigger for buy and sell signals. Traders may buy the security when the MACD crosses above its signal line and sell, or short, the security when the MACD crosses below the signal line.
The MACD has a positive value whenever the 12-period EMA is above the 26-period EMA and a negative value when the 12-period EMA is below the 26-period EMA . The more distant the MACD is above or below its baseline indicates that the distance between the two EMAs is growing. In the following chart, you can see how the two EMAs applied to the price chart correspond to the MACD (blue) crossing above or below its baseline (red dashed) in the indicator below the price chart.
The MACD is often displayed with a histogram which graphs the distance between the MACD and its signal line. If the MACD is above the signal line, the histogram will be above the MACD’s baseline. If the MACD is below its signal line, the histogram will be below the MACD’s baseline. Traders use the MACD’s histogram to identify when bullish or bearish momentum is high.
For more technical information look at Investopedia.
Note: The previous calculation example is not the default, the parameters can be adjusted according to the criteria of the merchant.