Ichimoku Senkou Span B

[[senkou_span_b]] is one of the two boundaries of the Ichimoku cloud. It represents a slower equilibrium level computed from high and low prices, then projected forward. On each candle, the engine takes the highest high and the lowest low observed over the last 52 candles, computes the midpoint between those two bounds, then shifts that value forward by 26 candles.

This gives you a line that is slower than Senkou Span A and further removed from short-term noise. It does not try to follow current price. Instead, it projects into the future the center of a broader market range. When it rises, that longer-term equilibrium zone is moving upward. When it falls, it is moving downward. When it stays flat, it often marks a more stable equilibrium area, sometimes read as future support or resistance.

Senkou Span B is mainly used together with Senkou Span A to form the cloud (Kumo), read the structure of market context, and identify future areas of equilibrium or friction. Here it corresponds to the standard Ichimoku version, with fixed parameters.

Block declaration

A strategy can contain multiple [[senkou_span_b]] blocks. The block outputs one numeric series (Senkou Span B, shifted +26). This block is a fixed donchian_mid alias with length=52 and offset=26. No source parameter is required because this block always uses the high and low input series.

Examples

Minimal setup

[[senkou_span_b]]
id = "ssb"

Parametric variant with donchian_mid

If you need to vary length or offset, use [[donchian_mid]]. [[senkou_span_b]] does not accept them.

Parameters

ParameterDescription
id
 String
 Required
Identifier of the Senkou Span B series.
symbol
 String
 or Array
 Optional
Market symbol(s) from which this block reads high and low candles. If omitted, the block inherits the [backtest] symbol. For symbol format, arrays, and alignment rules, see Exchanges, Symbols and Timeframes.
timeframe
 String
 or Array
 Optional
Timeframe on which this indicator is computed.
If timeframe is omitted, the computation uses the grid’s main timeframe defined in [backtest].
For accepted formats and timeframe alignment rules, see Exchanges, Symbols and Timeframes.

Available variables

Use the identifiers below directly in your expressions.

Assume the block is configured as:

[[senkou_span_b]]
id = "ssb"

Then:

VariableDescription
ssb or
ssb[0]
Decimal
Current Senkou Span B value (series already shifted by +26).
ssb[n]
Decimal
Senkou Span B value from n candles ago.
ssb.high_source
ssb.low_source
String
Names of the input series.
ssb.symbol
String
Symbol used.
ssb.timeframe
String
Timeframe used.

Notes

  • Numeric variables can be combined freely (arithmetic, comparisons, logical operators).
  • Text variables are intended for equality/inequality comparisons.