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] 💬
// C# usage syntax
IReadOnlyList<StarcBandsResult> results =
bars.ToStarcBands(smaPeriods, multiplier, atrPeriods);Parameters
| param | type | description |
|---|---|---|
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
IReadOnlyList<StarcBandsResult>- This method returns a time series of all available indicator values for the
barsprovided. - 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-1periods will havenullvalues since there's not enough data to calculate, whereNis the greater ofSorA.
🚩 ⚞ 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
| property | type | description |
|---|---|---|
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:
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:
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.