SinceGreen = iif(MACD()>0,BarsSince(Cross(MACD(),0)),0);
SinceRed = iif(MACD()<0,BarsSince(Cross(0,MACD())),0);
AddColumn(SinceGreen,"Green",1.0,colorGreen);
AddColumn(SinceRed,"Red",1.0,colorRed);
AddColumn(MA(C*V,3),"avg Val 3 days",1.0);
AddColumn(BarsSince(Cross(30,RSI(14))),"Since RSI OS",1.0);
AddColumn(Year(),"Yr",1.0);
Filter =
MA(C*V,3)>10000000
AND
BarsSince(Cross(30,RSI(14)))<50
AND
Year()>2019;
-
This reply was modified 4 years ago by dreamscat.