Adding a custom indicator to Watchlist
How to add a custom indicator to Watchlist panel properly? This guide will show you a useful method using which you can easily add an indicator.
Last updated
Was this helpful?
Was this helpful?
public class DoubleSMA: Indicator, IWatchlistIndicator
{
[InputParameter("First SMA period", 0, 1, 999, 1, 1)]
public int FirstPeriod = 5;
[InputParameter("Second SMA period", 1, 1, 999, 1, 1)]
public int SecondPeriod = 10;
public int MinHistoryDepths => this.FirstPeriod + this.SecondPeriod ;
… DoubleSMA indicator code
}