To use this screener, simply copy and paste the code below in your VAI Script Editor, save it and run! You can run it in the charts module to display the signals on the chart or run it in the screener module, which will show all the signals for that day.
You can find more tutorials here https://www.vaianalytics.com/knowledge-base/
Trading can be more profitable if certain conditions are met or aligned. In this AOTS screener as popularized by ZeeFreaks, we take 3 moving averages and screen for stocks that have all the averages in correct order, from the shortest period on top to the longest period at the bottom.
//Alignment of the Stars Screener
//Set variables
//You can change the periods
Set SMA1 = sma(close,20)
Set SMA2 = sma(close,50)
Set SMA3 = sma(close,100)
//Set conditions
Set Aligned = sma1 > sma2 and sma2 > sma3
plot(sma1,line,red,main)
plot(sma2,line,blue,main)
plot(sma3,line,green,main)
signals(Aligned,0)
//end
