ETF Hedge and SMA

Hello,

Does anyone know how to use the ETF Screener to select one or the other ETF’s based on a moving average buy rule.

For an index the formula is:
Eval(BenchClose(0)>SMA(200,0,#Bench),Ticker(“SSO”),Ticker(“SH”))

If the two ETF Hedges you want to hedge are not an index what is the logic?
For example I have tried using:

Ticker(“Dig, Dug”)
Close (0)/Close(200)>=1

This does not work. Any ideas?

Thank you,

Mark V.

The problem is when both pass the test Close (0)/Close(200)>=1. In this case the screener will buy both, which is not what you want (I think). If you only want to buy one, you need to decide on a ranking function, then in the backtest screen set the “No. Top Stocks” field to 1.

Thanks Marco,

Yes this is what I want to do but I think it just makes more since to use BenchClose. The objective was to trade in and out of ETF’s that are uncorrelated. The S&P historically is uncorrelated with Gold and OIL therefore BenchClose works fine.

Regards,