TradingView
darkbrewery
30 de Nov de 2021 18:34

Two Moving Average Cross 

VOLATILITY S&P 500TVC

Descrição

Choose two completely different moving averages and determine crossover points. Feel free to copy and paste the code into any strategy using MA crosses in order to optimize backtesting.

Notas de Lançamento

Added Arnaud Legoux and Least Squares

Notas de Lançamento

Added smoothed MA

Notas de Lançamento

Added Triple Exponential MA

Notas de Lançamento

TEMA simplified by 4 lines

Notas de Lançamento

Cleaned up code, double and triple ema no longer calculate until they are called for. Added quadruple ema.

Notas de Lançamento

Moved smoothed MA's into switch so they don't calculate until called.

Notas de Lançamento

Changed Smoothed to Welles Wilder, found a new way to do the calculation

Notas de Lançamento

Added the Ehlers version of Kaufman's adaptive moving average

Notas de Lançamento

Added option to choose timeframe. Repainting now removed by default.
Comentários
eli5mang
Thank you so much for this. It's perfect ! :)
Mais