TASC 2017-09 | The Reverse EMA Indicator (Ehlers)

Modified on 2017/08/01 08:48 by Eugene — Categorized as: TASC Traders Tips

Traders' Tip text

Once again, Mr. Ehlers shares an universal oscillator with features like minimum lag and a single input parameter that lets it highlight cycle, momentum, and trend components.


Figure 1. Application of the indicator to SPY in comparison to Ehlers RoofingFilter.

After updating our TASCIndicators library to v2017.08 or later, the ReverseEMA indicator can be found under the TASC Magazine Indicators group. You can plot it on a chart or use it as an entry or exit condition in a Rule-based Strategy without having to program a line of code yourself.

Get the companion Strategy's C# code by downloading it right from Wealth-Lab's "Open Strategy" dialog:

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;
using TASCIndicators;

namespace WealthLab.Strategies { public class TASC201709 : WealthScript { private StrategyParameter paramAlpha;

public TASC201709() { paramAlpha = CreateParameter("Alpha", 0.1, 0.05, 0.5, 0.05); } protected override void Execute() { var re = ReverseEMA.Series(Close, paramAlpha.Value); ChartPane rePane = CreatePane(30,false,false); HideVolume(); PlotSeries(rePane, re, Color.Red, LineStyle.Solid, 2); //RoofingFilter for comparison var rf = RoofingFilter.Series(Close); ChartPane rfPane = CreatePane(25,false,false); PlotSeries(rfPane,rf,Color.DarkBlue,LineStyle.Solid,1); } } }

Eugene (Gene Geren)
Wealth-Lab team