Macro Chart test

If I want to test a signal on SP500 in the Macro Chart eqvivalent to the screener code -

loopsum("Close(CTR,#Bench)>sma(200,CTR,#Bench)",20)=20

How would I do that?