Category Other  Published on 15/02/2023

3 Welles Wilder MA's

Description

For a Simple Setup

Pre set to 21,50 and 200.

 


using cAlgo.API;
using cAlgo.API.Indicators;

namespace cAlgo
{
    [Indicator(IsOverlay = true, AutoRescale = false, AccessRights = AccessRights.None)]
    public class Wilder3 : Indicator
    {
        [Parameter("Source")]
        public DataSeries Source { get; set; }
        [Output("Wilder 21", LineColor = "5500FF00", PlotType = PlotType.Line, Thickness = 1)]
        public IndicatorDataSeries FastMaResult { get; set; }
        [Output("Wilder 50", LineColor = "55FF0000", PlotType = PlotType.Line, Thickness = 1)]
        public IndicatorDataSeries MediMaResult { get; set; }
        [Output("Wilder 200", LineColor = "550077CC", PlotType = PlotType.Line, Thickness = 1)]
        public IndicatorDataSeries SlowMaResult { get; set; }
        MovingAverage Fast;
        MovingAverage Medi;
        MovingAverage Slow;
        protected override void Initialize()
        {
        Fast = Indicators.WellesWilderSmoothing(Source, 21);
        Medi = Indicators.WellesWilderSmoothing(Source, 50);
        Slow = Indicators.WellesWilderSmoothing(Source, 200);
        }
        public override void Calculate(int index)
        {
        FastMaResult[index] = Fast.Result[index];
        MediMaResult[index] = Medi.Result[index];
        SlowMaResult[index] = Slow.Result[index];
        }
    }
}


VE
VEI5S6C4OUNT0

Joined on 06.12.2022

  • Distribution: Free
  • Language: C#
  • Trading platform: cTrader Automate
  • File name: Wilder 3.algo
  • Rating: 0
  • Installs: 726
  • Modified: 15/02/2023 14:39
Comments
Log in to add a comment.
No comments found.