Ichimoku Senkou Span B
[[senkou_span_b]] produces the slower boundary of the Ichimoku cloud. It calculates each value by finding the highest high and lowest low from the last 52 candles, taking the midpoint between those extremes, and shifting that midpoint forward by 26 candles.
This shift is a timing offset, not a forecast: the value available on a candle is the midpoint calculated 26 candles earlier. The line remains unchanged until the midpoint of the window’s extremes moves. Together, Senkou Span A and Senkou Span B define the cloud’s two boundaries. The 52-candle window and 26-candle shift are fixed in this block.
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
| Parameter | Description |
|---|---|
idString Required | Identifier of the Senkou Span B series. |
symbolString 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. |
timeframeString 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:
| Variable | Description |
|---|---|
ssb orssb[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_sourcessb.low_sourceString | Names of the input series. |
ssb.symbolString | Symbol used. |
ssb.timeframeString | Timeframe used. |
Notes
- Numeric variables can be combined freely (arithmetic, comparisons, logical operators).
- Text variables are intended for equality/inequality comparisons.