diff:ema(close,12)-ema(close,26);dea:ema(diff,9);macd:2*(diff-dea), colorstick,linethick2;低位金叉:=cross(diff,dea) and diff<-0.1;stickline(低位金叉,0,0.08,6,0),coloryellow;jccount:=count(cross(diff,dea),b...
tt1:=ref(o>c,2) and ref(c/o<0.94,2);tt2:=upnday(c,2);tt3:=c>ref((l+(h-l)/2),2) and h<ref(o,2);ttt:=tt1 and tt2 and tt3;stickline(ttt,o,c,2,0),colorlimagenta;stickline(ttt,l,h,0,0),colorlim...
var2:=trou**ars(3,15,1)<10;var3:=peakbars(3,15,1)<10;var4:=if(var2=1,50,0);var5:=if(var3=1,50,0);底部:=if(var4=50,10,0);买入:=if(底部=10 and ref(底部,1)=10 and ref(底部,2)=0,50,0);选股:买入=50;