Table of Contents

Class SuperTrend

Namespace
ATAS.Indicators.Technical
Assembly
ATAS.Indicators.Technical.dll
[Display(ResourceType = typeof(Strings), Description = "SuperTrendDescription")]
[HelpLink("https://help.atas.net/support/solutions/articles/72000602482")]
public class SuperTrend : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
Inheritance
object
SuperTrend
Implements
Inherited Members
Extension Methods

Constructors

SuperTrend()

public SuperTrend()

Properties

AlertFile

[Display(ResourceType = typeof(Strings), Name = "AlertFile", GroupName = "Alerts", Description = "AlertFileDescription", Order = 110)]
public string AlertFile { get; set; }

Property Value

string

AlertPerBar

[Display(ResourceType = typeof(Strings), Name = "AlertPerBar", GroupName = "Alerts", Description = "AlertPerBarDescription", Order = 120)]
public bool AlertPerBar { get; set; }

Property Value

bool

DownColor

[Display(ResourceType = typeof(Strings), Name = "BearishColor", GroupName = "Drawing", Description = "BearishColorDescription", Order = 210)]
public Color DownColor { get; set; }

Property Value

Color

Multiplier

[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Multiplier", GroupName = "Settings", Description = "MultiplierDescription", Order = 30)]
public decimal Multiplier { get; set; }

Property Value

decimal

Period

[Parameter]
[Display(ResourceType = typeof(Strings), Name = "Period", GroupName = "Settings", Description = "PeriodDescription", Order = 20)]
[Range(1, 10000)]
public int Period { get; set; }

Property Value

int

UpColor

[Display(ResourceType = typeof(Strings), Name = "BullishColor", GroupName = "Drawing", Description = "BullishColorDescription", Order = 200)]
public Color UpColor { get; set; }

Property Value

Color

UseAlert

[Display(ResourceType = typeof(Strings), Name = "UseAlerts", GroupName = "Alerts", Description = "UseAlertDescription", Order = 100)]
public bool UseAlert { get; set; }

Property Value

bool

Methods

OnCalculate(int, decimal)

The main indicator calculation method is called for each bar on the history, then it is called on each tick.

protected override void OnCalculate(int bar, decimal value)

Parameters

bar int

Bar number.

value decimal

Input data series value.

OnInitialize()

The method is executed before the first calculation.

protected override void OnInitialize()