Create a long-only SPY trade plan called WEAK_IBS_TRADE_PLAN using completed daily candles.
Enter when internal bar strength (IBS) is below 0.1 and RSI(2) of the close is below 35. Exit when IBS rises above 0.8 or after 60 calendar days.
Calculate IBS as (close − low) / (high − low). Only use candles where the high is above the low, and treat conditions with missing data as false.