[2026-07-21 06:28:49] 50% line close-flip backtest script execution started.
[2026-07-21 06:28:49] Fetching instruments data from Kite API...
[2026-07-21 06:28:49] Kite API Response HTTP Code: 200
[2026-07-21 06:28:50] ✅ Loaded 10106 symbols from Kite API

50% Line Close-Flip Backtest

50% candle-range level with close-based entries and flips. The reference bar (default 09:15 IST) midpoint — (high + low) / 2 — is the line. Go long at the candle close when close is above it, short at the close when below. Trade only on days when prior-day daily RSI(12) is above 70 or below 30. If an open leg later closes on the wrong side, add the opposite at 2× quantity at that close. All legs exit at session end (15:15).

1M–1H for intraday; D/W/M for swing (reference candle must exist on each day)
— 50% level = midpoint of that bar's high/low
IST
Total account equity for P&L tracking
Notional for the first entry each day (0 = full equity). Line flips use 2× the triggering leg qty.
Max opposite entries when close crosses the 50% line (legs held until session end)
Prior-day daily RSI must be above this
Or below this — otherwise skip the whole session
[2026-07-21 06:28:50] 50% line close-flip backtest script execution finished.