I need your help in creating an exploration for 2 or 3 MA that are stacked positive within certain number of bars.
For example... for 3 SMA i.e. 21, 50 and 100 are stacked up i.e. 21>50>100 within last 20 bars, so it should be within last 1, 2, 10 or 20 bars, then how do i code for that and get a list of stocks that are having this condition true within 20 bars.