Hi, I'm running across the custom expression script limit when scanning using the code below. I'm wondering if anyone has any suggestions to lean out this code while preserving the same function so that i can have hit more searches with it. I'm capped at 200 with this code atm. Thanks!
Code:
def A = hl2;
def highestvolofday = highestall(if GetLastDay() == GetDay() and highestall(volume) then (volume) else double.nan);
def High_vol_Price = if volume == highestvolofday then A else High_vol_Price[1];
Plot scan = (High_vol_Price*100) * highestvolofday;