Skip to content

STARC Bands

Created by Manning Stoller, the Stoller Average Range Channel (STARC) Bands, are price ranges based on an SMA centerline and ATR band widths. See also Keltner Channels for an EMA centerline equivalent. [Discuss] 💬

csharp
// C# usage syntax
IReadOnlyList<StarcBandsResult> results =
  bars.ToStarcBands(smaPeriods, multiplier, atrPeriods);

Parameters

paramtypedescription
smaPeriodsintNumber of lookback periods (S) for the center line moving average. Must be greater than 1 to calculate and is typically between 5 and 10. Default is 5.
multiplierdoubleATR Multiplier. Must be greater than 0. Default is 2.
atrPeriodsintNumber of lookback periods (A) for the Average True Range. Must be greater than 1 to calculate and is typically the same value as smaPeriods. Default is 10.

Historical price bars requirements

You must have at least S or A+100 periods of bars, whichever is more, to cover the warmup and convergence periods. Since this uses a smoothing technique, we recommend you use at least A+150 data points prior to the intended usage date for better precision.

bars is a collection of generic TBar historical price bars. It should have a consistent frequency (day, hour, minute, etc). See the Guide for more information.

Response

csharp
IReadOnlyList<StarcBandsResult>
  • This method returns a time series of all available indicator values for the bars provided.
  • It always returns the same number of elements as there are in the historical price bars.
  • It does not return a single incremental indicator value.
  • The first N-1 periods will have null values since there's not enough data to calculate, where N is the greater of S or A.

🚩 ⚞ Convergence warning

The first A+150 periods will have decreasing magnitude, convergence-related precision errors that can be as high as ~5% deviation in indicator values for earlier periods.

StarcBandsResult

propertytypedescription
TimestampDateTimeDate from evaluated TBar
UpperBanddoubleUpper STARC band
CenterlinedoubleSMA of price
LowerBanddoubleLower STARC band

Utilities

See Utilities and helpers for more information.

Chaining

This indicator is not chain-enabled and must be generated from bars. It cannot be used for further processing by other chain-enabled indicators.

See Chaining indicators for more.

Streaming

Use the buffer-style List<T> when you need incremental calculations without a hub:

csharp
StarcBandsList starcBandsList = new(smaPeriods, multiplier, atrPeriods);

foreach (IBar bar in bars)  // simulating stream
{
  starcBandsList.Add(bar);
}

// based on `ICollection<StarcBandsResult>`
IReadOnlyList<StarcBandsResult> results = starcBandsList;

Subscribe to a BarHub for advanced streaming scenarios:

csharp
BarHub barHub = new();
StarcBandsHub observer = barHub.ToStarcBandsHub(smaPeriods, multiplier, atrPeriods);

foreach (IBar bar in bars)  // simulating stream
{
  barHub.Add(bar);
}

IReadOnlyList<StarcBandsResult> results = observer.Results;

See Buffer lists and Stream hubs for full usage guides.