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.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue