Harwinder 8df42cd384 Fix Ichimoku look-ahead bias: lag Senkou Spans by 26 bars
Senkou Span A and B are plotted 26 periods ahead of calculation.
Comparing current price to iloc[-1] cloud means comparing against the
cloud 26 bars in the future — a textbook look-ahead bias that inflates
signal grades in backtests. Now uses iloc[-(kijun+1)] so the cloud
boundaries reflect where the cloud actually is at the current candle.
TK cross (tenkan_val/kijun_val) stays at iloc[-1] — that is a current
condition, not a projected one.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 18:13:59 -04:00
2026-05-05 22:44:58 -04:00
2026-05-04 14:29:32 +00:00
S
Description
No description provided
28 MiB
Languages
Python 92.4%
HTML 6.6%
PHP 1%