ApplyDefaultValue

View as Markdown

Definition

Sets the default BarsPeriod values used for a custom Bar Type.

Method Return Value

This method does not return a value.

Parameters

ParameterDescription
periodThe BarsPeriod chosen by the user when utilizing this Bars type

Syntax

You must override the method in your Bars Type with the following syntax:

public override void ApplyDefaultValue(BarsPeriod period) \{ \}

Examples

1public override void ApplyDefaultValue(BarsPeriod period)
2{
3 period.BarsPeriodTypeName = "MyBarType";
4 period.Value = 1;
5}