Table of Contents

Class ACDC

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

Constructors

ACDC()

public ACDC()

Properties

NegColor

[Display(ResourceType = typeof(Strings), Name = "Negative", GroupName = "Drawing", Description = "NegativeValueDescription", Order = 620)]
public Color NegColor { get; set; }

Property Value

Color

PosColor

[Display(ResourceType = typeof(Strings), Name = "Positive", GroupName = "Drawing", Description = "PositiveValueDescription", Order = 610)]
public Color PosColor { get; set; }

Property Value

Color

SmaPeriod1

[Parameter]
[Range(1, 10000)]
[Display(ResourceType = typeof(Strings), Name = "SMAPeriod1", GroupName = "Settings", Description = "SMAPeriod1Description", Order = 100)]
public int SmaPeriod1 { get; set; }

Property Value

int

SmaPeriod2

[Parameter]
[Range(1, 10000)]
[Display(ResourceType = typeof(Strings), Name = "SMAPeriod2", GroupName = "Settings", Description = "SMAPeriod2Description", Order = 110)]
public int SmaPeriod2 { get; set; }

Property Value

int

SmaPeriod3

[Parameter]
[Range(1, 10000)]
[Display(ResourceType = typeof(Strings), Name = "SMAPeriod3", GroupName = "Settings", Description = "SMAPeriod3Description", Order = 120)]
public int SmaPeriod3 { get; set; }

Property Value

int

SmaPeriod4

[Parameter]
[Range(1, 10000)]
[Display(ResourceType = typeof(Strings), Name = "SMAPeriod4", GroupName = "Settings", Description = "SMAPeriod4Description", Order = 130)]
public int SmaPeriod4 { get; set; }

Property Value

int

Methods

OnApplyDefaultColors()

Invoked to apply default colors to the drawing elements.

protected override void OnApplyDefaultColors()

Remarks

This method can be overridden in derived classes to customize or set default color values for the drawing elements. When this method is called, it is an opportunity for the derived class to apply its own default color scheme to the drawing elements used in the specific implementation.

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.