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] 💬

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

Parameters ​

paramdescription
smaPeriods
int
Number 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.
multiplier
double
ATR Multiplier. Must be greater than 0. Default is 2.
atrPeriods
int
Number 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 ​

propertydescription
Timestamp
DateTime
Date from evaluated TBar
UpperBand
double?
Upper STARC band
Centerline
double?
SMA of price
LowerBand
double?
Lower 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);

// call from your WebSocket or SSE message handler
void OnBarReceived(IBar bar) => starcBandsList.Add(bar);

// based on `ICollection<StarcBandsResult>`; fills as the handler runs
IReadOnlyList<StarcBandsResult> results = starcBandsList;

Subscribe to a BarHub for advanced streaming scenarios:

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

// call from your WebSocket or SSE message handler
void OnBarReceived(IBar bar) => barHub.Add(bar);

// results fill as the handler runs
IReadOnlyList<StarcBandsResult> results = observer.Results;

See Buffer lists and Stream hubs for full usage guides.