Yes you can run this as a script - this should give you an idea - https://zerodha.com/expert-advisors/code/3-15-crossover
If you plan to use Amibroker, it has option where you can add required symbols into the watchlist.
Run scan with the filtered symbol list/Watch list using below AFL
_SECTION_BEGIN("NEOTRADE"); Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); x = EMA(Close,100); Buy = Ref(Close,-1) > x; Sell = Ref(Close,-1) < x; Buy = ExRem(Buy,Sell); Sell = ExRem(Sell,Buy); PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorGreen, 0,L); PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorRed, 0,H); _SECTION_END();
.
Regards
Vivith
www.neotradeanalytics.com
(Authorized vendor of NSE supporting realtime data feeds to Amibroker, Ninjatrader and Metastock)