BigBitsIO

Scripting Tutorial 6 - Triple Many Moving Averages Forecasting

This script is for a triple moving average indicator where the user can select from different types of moving averages, price sources and lookback periods.

Features:
- 3 Moving Averages with variable MA types, periods, price sources and ability to disable each individually
- Crossovers are plotted on the chart with detailed information regarding the crossover (Ex: 50 SMA crossed over 200 SMA )
- Forecasting available for all three MAs. MA values are forecasted 5 values out and plotted as if a continuation to the MA.
- Forecast bias also applies to all forecasting. Bias means we can forecast based on an anticipated bullish , bearish or neutral direction in the market.
- To understand bias, please read the source code, or if you can't read the code just send me a message on here or Twitter . Twitter should be linked on my profile.


This script is meant as an educational script with well-formatted styling, and references for specific functions.
Sep 24
Notas de Lançamento: Added some more code comments to clarify what is happening in the script.
Oct 01
Notas de Lançamento: Added some validations, metadata.
Remover dos scripts favoritos Adicionar aos scripts favoritos
DISCLAIMER: For educational and entertainment purposes only. Nothing in this content should be interpreted as financial advice or a recommendation to buy or sell any sort of security or investment including all types of crypto. DYOR, TYOB.

Comentários

I guess there should be a correction for MA3Source, I guess it should be MA3Source and I guess you should change them all.
If i am incorrect please notify me. Regards and thanks for the development.

MA3Forecast2 = (ma(MA3Type, MA3Source, MA3Period - 2) * (MA3Period - 2) + ((MA1Source * 2) + (Bias * 2))) / MA3Period
Resposta
Is there a reason why i am getting an error when attempting to use an EMA of 5? The program is telling me that i cannot have a value of "0" in the EMA function. It will, however, display a result when i change the value to anything greater than 5. Any thoughts?
Resposta
Início Rastreador de Fundamentos Rastreador Forex Rastreador de Criptomoedas Calendário Econômico Como Funciona Recursos gráficos Preços Indique um Amigo Regras da Casa Central de Ajuda Soluções para Sites & Corretoras Widgets Soluções em Gráficos Biblioteca de Gráficos Lightweight Blog & Notícias Twitter
Perfil Configurações de perfil Conta e cobrança Indique um Amigo Meus Tíquetes de Suporte Central de Ajuda Ideias Publicadas Seguidores Seguindo Mensagens Privadas Conversa Deslogar