This, used on a daily timeframe, will make test1 true when the price close has crossed over your multiple sma selection, with individual check for each sma for crossover either from yesterday to today or from 2 days ago to yesterday.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.