i cant get this to work
does anyone know a cleaner way of saying that the price close has crossed over multiple sma’s over the past 2 days?
Test1 = summation[2] close crosses over (sma10 AND sma20 AND sma30 AND sma40)
appreciate any help/pointers
Hi,
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.
c1 = close crosses over Average[10](close)
c2 = close crosses over Average[20](close)
c3 = close crosses over Average[30](close)
c4 = close crosses over Average[40](close)
test1 = (c1 or c1[1]) and (c2 or c2[1]) and (c3 or c3[1]) and (c4 or c4[1])
thanks Noobywan thats great. appreciate your help