@switchfire Let's discuss your request from several angles shall we?
Firstly, as several readers have pointed out, the code you provided are scan codes. You'll typically place those codes directly in the scanner to determine if there are any signals matching your conditions. Using a daily aggregation, I scanned against the S&P 500 and the NASDAQ Composite and was unable to obtain any signals for either your Switch Up condition or Switch Down condition. That usually means that your scan conditions are so restrictive that you'll not find any signals. Hence you'll need to relax some of the conditions of your scan code.
That said, your scan code pertains to three standard TOS studies - TTM Squeeze, MACD and CCI. Assuming you fix the issues described above and are able to generate signals and now wish to combine all three studies into one study, the biggest hurdle is that the code for TTM Squeeze is not available to the general public.
If you decide to exclude the TTM Squeeze component from the combined study, you are then left with the MACD and CCI. The MACD is an oscillator that has values running from -10 to +10 while the CCI has values ranging from -200 to +200. What you'll need to do is to first normalize the scales in both these studies. Once that is completed then you can combine the MACD and CCI.
My assessment at this point is that the most realistic course of action is to first combine MACD and CCI and see if that resulting study makes sense from your point of view. If so then you can then think of layering on top of that other indicators you deem fit.
These are just some of my high level thoughts from a first pass assessment. Hope that is helpful