PriceChannels
StockSharp.Algo.Indicators
Price Channels indicator.
Inherits: BaseComplexIndicator<IPriceChannelsValue>
Constructors
PriceChannels
public PriceChannels()
priceChannels = PriceChannels()
Initializes a new instance of the PriceChannels.
Properties
Length
public int Length { get; set; }
value = priceChannels.Length
priceChannels.Length = value
Period length.
LowerChannel
public Lowest LowerChannel { get; }
value = priceChannels.LowerChannel
Lower channel (lowest low).
UpperChannel
public Highest UpperChannel { get; }
value = priceChannels.UpperChannel
Upper channel (highest high).
Methods
CreateValue
protected override IPriceChannelsValue CreateValue(DateTime time)
result = priceChannels.CreateValue(time)
Create .
- time
- Time
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = priceChannels.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = priceChannels.OnProcess(input)
To handle the input value.
- input
- The input value.
Returns: The resulting value.
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = priceChannels.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
ToString
public override string ToString()
result = priceChannels.ToString()
Returns a string representation of the tuple, with values separated by commas.
Returns: A string representing the tuple's values.