calculate_ichimoku
Computes three of the five Ichimoku components: Tenkan-sen (9-period midpoint), Kijun-sen (26-period midpoint), and a boolean flag indicating whether the current close is above the Kijun-sen. The midpoint calculation uses (period_high + period_low) / 2, the definition used by the original Ichimoku system.
The Ichimoku system provides a complete picture of trend, momentum, and support/resistance within a single indicator. Price above the Kijun-sen with Tenkan > Kijun is the most straightforward bullish condition. For full cloud calculations, extend the function to compute Senkou Span A ((Tenkan + Kijun) / 2, projected 26 bars forward) and Senkou Span B (52-period midpoint, projected 26 bars forward).
Ask AI about this skill before installing it.