n1:=6;n2:=12;
q1:=(close*vol)/sum(vol,100);
a1:=ma(q1,n1);
zm1:=sma(a1,n1,1);
zm2:=sma(a1,n2,1);
zmf:(zm1-zm2)*10000,colorstick,linethick2;
fm:sma(zmf,3,1);
t1:=if(c>ma(close,13),1,0);
t2:=if(c<ma(close,13),1,0);
t3:=count(if(zmf>0 and zmf>ref(zmf,1),1,0),4)>=4;
t4:=count(if(zmf<0,1,0),5)>=5;
t5:=filter(t1 and t4,20);
t6:=filter(t2 and t3,20);
drawtext(t5,zmf-3,'洗盘谷'),colorgreen;
drawtext(t6,zmf+3,'建仓峰'),coloryellow;
202108211147.jpg
|