Hi all, Trying to test a 50 SMA cross at 5 min timeframe. Tried a code for 5 min consolidator, but not sure if I'm passing the right resolution to the SMA call. Attached project, any pointers?

Overall objective is to go long on 50 SMA cross up and short on 50 SMA cross down at 5 min. I'll have to experiment on longer timeframes, but if I get the consolidator code working, that should be possible.

Thanks in advance.