@SleepyZ always appreciate your support on this site. I'm trying to dynamically compute a starting date that is 1 year from the current date (as opposed to having the start date be a statically defined input) and pass it into InertiaAll but I'm having no luck. Any help would be greatly appreciated.
input startdate = 20231014;
plot MiddleLR = if GetYYYYMMDD() > enddate then Double.NaN else InertiaAll(Fundamental(price, period = agg), startDate = startdate, startTime = starttime, length = length);
input startdate = 20231014;
plot MiddleLR = if GetYYYYMMDD() > enddate then Double.NaN else InertiaAll(Fundamental(price, period = agg), startDate = startdate, startTime = starttime, length = length);