Table of Contents

Class SampleProperties

Namespace
ATAS.Indicators.Technical
Assembly
ATAS.Indicators.Technical.dll
public class SampleProperties : Indicator, INotifyPanelPropertyChanged, IPropertiesEditorOwner, IMarketTimeProvider
Inheritance
object
SampleProperties
Implements
Inherited Members
Extension Methods

Constructors

SampleProperties()

public SampleProperties()

Properties

ActivateProperties

[Display(Name = "Enable Properties", GroupName = "Activate properties")]
public bool ActivateProperties { get; set; }

Property Value

bool

ActiveFilter1

[Display(Name = "Number property", GroupName = "Activate properties")]
public Filter ActiveFilter1 { get; set; }

Property Value

Filter

ActiveFilter2

[Display(Name = "Bool property", GroupName = "Activate properties")]
public FilterBool ActiveFilter2 { get; set; }

Property Value

FilterBool

ActiveFilter3

[Display(Name = "String property", GroupName = "Activate properties")]
public FilterString ActiveFilter3 { get; set; }

Property Value

FilterString

Boolean

[Display(Name = "Boolean", GroupName = "Examples")]
public bool Boolean { get; set; }

Property Value

bool

Brush

[Display(Name = "Brush", GroupName = "Examples")]
public BrushSettings Brush { get; set; }

Property Value

BrushSettings

CategoryManager

[Display(Name = "Category", GroupName = "Management")]
public bool CategoryManager { get; set; }

Property Value

bool

ColorsSource

[IsExpanded]
[Display(Name = "Colors", GroupName = "Examples")]
public ObservableCollection<Color> ColorsSource { get; set; }

Property Value

ObservableCollection<Color>

CustomProperty

[IsExpanded]
[Display(Name = "Custom class", GroupName = "Custom class properties")]
public CustomClass CustomProperty { get; set; }

Property Value

CustomClass

DateTime

[Display(Name = "Date", GroupName = "Examples")]
[Mask(MaskTypes.DateTime, "dd.MM.yyyy")]
public DateTime DateTime { get; set; }

Property Value

DateTime

Decimal

[Display(Name = "Decimal", GroupName = "Examples")]
[NumericEditor(0, 100, Step = 0.5, DisplayFormat = "F2")]
public decimal Decimal { get; set; }

Property Value

decimal

Directory

[Display(Name = "Directory", GroupName = "Examples")]
[SelectDirectoryEditor(IsTextEditable = false, ShowNewFolderButton = true)]
public string Directory { get; set; }

Property Value

string

Email

[Display(Name = "E-mail", GroupName = "Examples")]
[RegularExpression("^([\\w\\.\\-]+)@([\\w\\-]+)((\\.(\\w){2,3})+)$")]
public string Email { get; set; }

Property Value

string

Enum

[Display(Name = "Enum", GroupName = "Examples")]
public SampleProperties.FilterTypes Enum { get; set; }

Property Value

SampleProperties.FilterTypes

ExpandableProperty

[Display(Name = "Expandable property", GroupName = "Custom class properties")]
public CustomClass ExpandableProperty { get; set; }

Property Value

CustomClass

File

[Display(Name = "File", GroupName = "Examples")]
[SelectFileEditor(Environment.SpecialFolder.MyDocuments, Filter = "Text files (*.txt)|*.txt", IsTextEditable = false)]
public string File { get; set; }

Property Value

string

Files

[Display(Name = "Files", GroupName = "Examples")]
[SelectFileEditor(Environment.SpecialFolder.MyDocuments, Filter = "Text files (*.txt)|*.txt", IsTextEditable = false, Multiselect = true)]
public string Files { get; set; }

Property Value

string

FilterDecimal

[Display(Name = "Filter Decimal", GroupName = "Examples")]
[Range(-100, 100)]
[DisplayFormat(DataFormatString = "##0.0##")]
public Filter FilterDecimal { get; set; }

Property Value

Filter

FilterInt

[Display(Name = "Filter Integer", GroupName = "Examples")]
public FilterInt FilterInt { get; set; }

Property Value

FilterInt

FilterRange

[IsExpanded]
[Display(Name = "Range", GroupName = "Examples")]
public SampleProperties.Range FilterRange { get; set; }

Property Value

SampleProperties.Range

FilterText

[Display(Name = "Filter Text", GroupName = "Examples")]
[Mask(MaskTypes.Regular, "..-..")]
public FilterString FilterText { get; set; }

Property Value

FilterString

FilterType

[Display(Name = "Filter Enum", GroupName = "Examples")]
public Filter<SampleProperties.FilterTypes> FilterType { get; set; }

Property Value

Filter<SampleProperties.FilterTypes>

Filters

[Display(Name = "Filters", GroupName = "Examples")]
[DisplayFormat(DataFormatString = "F2")]
public ObservableCollection<Filter> Filters { get; set; }

Property Value

ObservableCollection<Filter>

Font

[Display(Name = "Font", GroupName = "Examples")]
public FontSetting Font { get; set; }

Property Value

FontSetting

HeatmapType

[Display(Name = "Heatmap", GroupName = "Examples")]
public HeatmapTypes HeatmapType { get; set; }

Property Value

HeatmapTypes

HotKeys

[Display(Name = "Hot Key", GroupName = "Examples")]
public Key[] HotKeys { get; set; }

Property Value

Key[]

Integer

[Display(Name = "Integer", GroupName = "Examples")]
[Range(0, 100)]
public int Integer { get; set; }

Property Value

int

IpAddress

[Display(Name = "IP-address", GroupName = "Examples")]
public EndPoint IpAddress { get; set; }

Property Value

EndPoint

ManagedProperty1

[Display(Name = "Managed Property 1", GroupName = "ManagedCategory")]
public int ManagedProperty1 { get; set; }

Property Value

int

ManagetProperty2

[Display(Name = "Managed Property 2", GroupName = "ManagedCategory")]
public int ManagetProperty2 { get; set; }

Property Value

int

NoBrowsable

[Browsable(false)]
public int NoBrowsable { get; set; }

Property Value

int

Numbers

[IsExpanded]
[Display(Name = "Numbers", GroupName = "Examples")]
[Range(0, 100)]
[DisplayFormat(DataFormatString = "P")]
public ObservableCollection<decimal> Numbers { get; set; }

Property Value

ObservableCollection<decimal>

Password

[Display(Name = "Password", GroupName = "Examples")]
public SecureString Password { get; set; }

Property Value

SecureString

Pen

[Display(Name = "Pen", GroupName = "Examples")]
public PenSettings Pen { get; set; }

Property Value

PenSettings

PropertyManager

[Display(Name = "Property", GroupName = "Management")]
public bool PropertyManager { get; set; }

Property Value

bool

Ranges

[Display(Name = "Ranges", GroupName = "Examples")]
public ObservableCollection<SampleProperties.Range> Ranges { get; set; }

Property Value

ObservableCollection<SampleProperties.Range>

Selector

[Display(Name = "Selector", GroupName = "Examples")]
[ComboBoxEditor(typeof(SampleProperties.EntitiesSource), DisplayMember = "Name", ValueMember = "Value")]
public int? Selector { get; set; }

Property Value

int?

TimeSpan

[Display(Name = "Time Span", GroupName = "Examples")]
[Mask(MaskTypes.DateTimeAdvancingCaret, "HH:mm:ss")]
public TimeSpan TimeSpan { get; set; }

Property Value

TimeSpan

TimeZone

[Display(Name = "Time Zone", GroupName = "Examples")]
public TimeZoneInfo TimeZone { get; set; }

Property Value

TimeZoneInfo

TrackBar

[Display(Name = "Track Bar", GroupName = "Examples")]
[NumericEditor(NumericEditorTypes.TrackBar, -100, 100)]
public int TrackBar { get; set; }

Property Value

int

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.

OnPropertiesEditorChanged(IPropertiesEditor?, IPropertiesEditor?)

Called when the PropertiesEditor property changes.

Added in ATAS 8.0.15.

protected override void OnPropertiesEditorChanged(IPropertiesEditor? oldValue, IPropertiesEditor? newValue)

Parameters

oldValue IPropertiesEditor

The previous properties editor instance.

newValue IPropertiesEditor

The new properties editor instance.