OPEN-SOURCE SCRIPT
Octuple Mean Average

Here you can combine up to 8 moving averages and make 1 "OMA" (Octuple Mean Average)
In this way:
- advantages of several ma's can be mixed
- a mean averages can be improved without the need to change the length
(for example if you want a RMA, SMA,... to react faster combine it with 1 or more EMA's)
- smoothing and shifting possibilities (combine with a dema and adjust the lookback),
again without the need to change the length
- ...
This is a combination of a RMA, VWMA, DEMA and TEMA:

Here is a DEMA (lookback 20), smoothed by adding a RMA:

Or, 3x RMA, 2x SMA, 1x EMA and 1x WMA:

Color can be made unicolor by disabling 'bicolor ?'
When disabled the first color only is applied
Bicolor options:
- OMA changes color when it is rising/falling
- OMA changes color when source is above/below OMA
Cheers!
In this way:
- advantages of several ma's can be mixed
- a mean averages can be improved without the need to change the length
(for example if you want a RMA, SMA,... to react faster combine it with 1 or more EMA's)
- smoothing and shifting possibilities (combine with a dema and adjust the lookback),
again without the need to change the length
- ...
This is a combination of a RMA, VWMA, DEMA and TEMA:
Here is a DEMA (lookback 20), smoothed by adding a RMA:
Or, 3x RMA, 2x SMA, 1x EMA and 1x WMA:
Color can be made unicolor by disabling 'bicolor ?'
When disabled the first color only is applied
Bicolor options:
- OMA changes color when it is rising/falling
- OMA changes color when source is above/below OMA
Cheers!
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Who are PineCoders?
tradingview.com/chart/SSP/yW5eOqtm-Who-are-PineCoders/
TG Pine Script® Q&A: t.me/PineCodersQA
- We cannot control our emotions,
but we can control our keyboard -
tradingview.com/chart/SSP/yW5eOqtm-Who-are-PineCoders/
TG Pine Script® Q&A: t.me/PineCodersQA
- We cannot control our emotions,
but we can control our keyboard -
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.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Who are PineCoders?
tradingview.com/chart/SSP/yW5eOqtm-Who-are-PineCoders/
TG Pine Script® Q&A: t.me/PineCodersQA
- We cannot control our emotions,
but we can control our keyboard -
tradingview.com/chart/SSP/yW5eOqtm-Who-are-PineCoders/
TG Pine Script® Q&A: t.me/PineCodersQA
- We cannot control our emotions,
but we can control our keyboard -
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.