8df42cd384cde7cbea480fbf8c587f6d154302f8
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>
Description
No description provided
Languages
Python
92.4%
HTML
6.6%
PHP
1%