ApplyDefaultValue
<< Click to Display Table of Contents >> ApplyDefaultValue |
Sets the default BarsPeriod values used for a custom Bar Type.
This method does not return a value.
period |
The BarsPeriod chosen by the user when utilizing this Bars type |
You must override the method in your Bars Type with the following syntax:
public override void ApplyDefaultValue(BarsPeriod period)
{
}
public override void ApplyDefaultValue(BarsPeriod period) { period.BarsPeriodTypeName = "MyBarType"; period.Value = 1; } |