diff:=ema(close,30)-ema(close,120);dea:=ema(diff,12);a1:=diff>dea;中期方向线:=diff-dea;mb:=ema(中期方向线,20);超买线:=mb+1.96*std(中期方向线,9);n1:=9;n2:=5;mtm:=c-ref(c,1);主力轨迹:=100*ema(ema(mtm,n1),n1)/ema(ema(abs(mtm),n1),n1);var1:=ref((low+open+close+high)/4,1);var21:=sma(abs(high-var1),13,1)/sma(min(high-var1,0),10,1);var31:=ema(var21,10);var41:=hhv(high,33);var51:=ema(if(high>=var41,var31,0),3);主力拉高:=if(var51<ref(var51,1),var51,0);xg:主力拉高<-0.001 and 主力轨迹>ref(主力轨迹,1) and 中期方向线>ref(中期方向线,1) and 超买线>ref(超买线,1); 20210311
这是个特殊形态。是一日内5日线上穿10、20、30日线。出现这个形态,股价要翻一番。我写了个一线穿三线的公式:a1:=ma(c,5);a2:=ma(c,10);a3:=ma(c,20);a4:=ma(c,30);b1:=cross(a1,a2);b2:=cross(a1,a3);b3:=cross(a1,a4);xg:b1 and b2 and b3;从你的图上看和这个类似的图形还有:均线粘合、箱...
试试t1:=c>o;t2:=v<=ref(v,1) and c<o;t3:=v<ref(v,1) and co;xg:ref(t1,3) and ref(t2,2) and ref(t3,1) and t4;你图上的最后一天是最高量,但你的语言描述里又是只要大于阴量就ok了,也就是说,最后一天只要大于前两天阴量的最高量就ok了,对吗?理解有误的话,请追问。希望能帮到你!
diff:=ema(close,12)-ema(close,26); dea:=ema(diff,9); a:=ma(c,3);xg:cross(ref(dea,1),ref(diff,1)) and cross(diff,dea) and atan((a/ref(a,1)-1)*100)*57.3>30;