I submitted my question to StockCharts support and received a link to a support article: https://support.stockcharts.com/doku.php?id=scans:advanced_scan_syntax:ichimoku_scans#ichimoku_time_offsets
I am scanning for Ichimoku cloud setups. Criterion 1, the current candle must close above the cloud (the cloud might be red or green). Criterion 2, the Span A value must be greater the Span B value, or, in other words, the cloud 26 days out will be green. (Today is 08/08/23; 26 periods in the future is 09/14/23.) The scan line for Criterion 2 I have written is this:
[[GROUP IS SP500] ] AND [ICHIMOKU SPAN A(9,26,52) > ICHIMOKU SPAN B(9,26,52)]
That scan returns a lot of charts, one of which is BBWI which may be seen here: https://schrts.co/NyynWzxI
But BBWI does not fit the criteria of Span A (=37.53) > Span B (=38.68). The Ichimoku cloud 26 days out from today (09/14/23) is still red. I am looking (among other criteria) for stocks which show green clouds 26 days out, e.g., XOM which may be seen here: https://schrts.co/BDcMWtNF
If I read the support article correctly (which I am not certain I am) the scan engine today will use the Span A and Span B values from 26 periods back (06/30/23 in my example.) 26 days ago the Ichimoku chart was "predicting" that today XOM's chart would be red (Span B is greater than Span A). The article seems to think that scanning for something 26 days out is pointless, but in fact, if Ichimoku clouds work, one of their values is that very prediction, which is not a prediction at all, since today's closing price is the last piece of the puzzle required to compute the values of Span A and Span B on 09/14/23.
Maybe what I am looking for cannot be done. But I don't want to give up yet.
Thanks for your help.