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
Note that publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section, please use the Copyright Infringement Notification form to submit a claim.
Comments
Log in to add a comment.
No comments found.