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.
הערות שחרור:
Added Arnaud Legoux and Least Squares
הערות שחרור:
Added smoothed MA
הערות שחרור:
Added Triple Exponential MA
הערות שחרור:
TEMA simplified by 4 lines
הערות שחרור:
Cleaned up code, double and triple ema no longer calculate until they are called for. Added quadruple ema.
הערות שחרור:
Moved smoothed MA's into switch so they don't calculate until called.
הערות שחרור:
Changed Smoothed to Welles Wilder, found a new way to do the calculation
הערות שחרור:
Added the Ehlers version of Kaufman's adaptive moving average
הערות שחרור:
Added option to choose timeframe. Repainting now removed by default.