The code for this can be written. However your goals are unrealistic. The list of stocks for which this plan will work is very limited. For the vast majority of stocks, there will be no 1 min bar at 9:00 Eastern. And this will break the code and the scan will deliver completely wrong results. Trading during extended hours session is very low and you cannot count on there being any data for the code to read at a specific time during extended hours session.
You may find this works for stocks like QQQ and SPY. But almost every other stock in the market is going to fail when you try to apply these conditions to a scan.
Edit: The request has been modified to get the value of the ChaikinMoneyFlow at 9:30 am Eastern and use hold that value until 9:29 am the following day. Then at any time you run scan, compare the stored valued form 9:30 am to the current value of ChaikinMoneyFlow.
So we copy the code straight from the built-in ChaikinMoneyFlow study included with Thinkorswim. Add one line of code at the top to contain the user input for time. Add two lines at the bottom, one to get and hold the value from the target time and the other to check if current value of ChaikinMoneyFlow is above the value from the target time.
input targetTime = 930;
input length = 21;
def tmp_var = if high == low then volume else (close - low - (high - close)) / (high - low) * volume;
def sum_close = sum(tmp_var, length);
def total = sum(volume, length);
def CMF = if total == 0 then 0 else sum_close / total;
rec targetValue = if SecondsTillTime(targetTime) == 0 then CMF else targetValue[1];
plot scan = CMF > targetValue;