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
Splash The
Joined 06.12.2022
- Type: Free
- Language: C#
- Trading Platform: cTrader Automate
- Filename: Wilder 3.algo
- Rating: 0
- Downloads: 308
Notification Publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section you may use the Copyright Infringement Notification form to submit a claim.
Comments
Only logged in users can post a comment
Comments not found