以下是同花顺王琳多空趋势主图源码
操盘线:MA(C,18),colorligray,linethick2;
多空趋势60:=MA(CLOSE,60);
半年线:=MA(CLOSE,120);
年线:=MA(CLOSE, 250);
突破六:IF(C>=多空趋势60 ,多空趋势60,DRAWNULL),colorwhite,linethick1,nodraw;
突破半:IF((C>=半年线) ,多空趋势60,DRAWNULL),colorlimagenta,linethick1,nodraw;
突破年:IF((C>=年线) ,多空趋势60,DRAWNULL),colorliblue,linethick1,nodraw;
买线:=ZIG(3,10);
卖线:=MA(买线,3);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,7,0),colormagenta;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,7,0),colorblue;
EMA7:EMA(C,7),colorwhite;
ema13:EMA(C,13),coloryellow;
EMA21:EMA(C,21),colorlired;
ema34:EMA(C,34),colorgreen;
ema55:EMA(C,55),colorff00ff;
ema120:EMA(C,120),colorbrow;
EMA240:EMA(C,240),colorblue;
ar1:=ema55>ema34 AND ema34>ema13;
ar2:=BARSLAST((C-ema13)/ema13*100<-6);
ar3:=ema13>=REF(ema13,2);
ar4:=COUNT(CROSS(C,ema13),ar2)=1;
ar5:=ar1 AND ar2 AND ar3 AND ar4;
ar6:=ar5 AND FILTER(ar5,10);
DRAWTEXT(ar6,L-0.09,\’╲杏\’),coloryellow;
br1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5),5)=5;
br2:=ABS((ema13-ema34)+(ema34-ema55))/C<0.2;
br3:=C>ema55 AND(REF(C,1)<REF(ema55,1) OR REF(C,2)<REF(ema55,2) OR REF(C,3)<REF(ema55,3) OR REF(C,4)<REF(ema55,4) OR REF(C,5<REF(ema55,5)));
br4:=br1 AND br2 AND br3;
DRAWTEXT(br4 AND FILTER(br4,10),L-0.09,\’╲蚂\’),coloryellow;
cr1:=(C-REF(C,1))/REF(C,1)*100>0.5;cr2:=V>MA(V,5)*0.6;cr3:=COUNT(CROSS(ema13,ema55),3)=1;
cr4:=ABS(ema34-ema55)/ema55<0.03;cr5:=ema55=REF(ema55,1);
cr6:=FILTER(cr1 AND cr2 AND cr3 AND cr4 AND cr5,2);
;DRAWTEXT(cr6,L-0.09,\’╲侠\’),coloryellow;
dr1:=ema13>ema34 AND ema34<ema55;dr2:=BARSLAST(CROSS(C,ema55));
dr3:=H=HHV(H,dr2);dr4:=BARSLAST(dr3);
dr5:=COUNT(O>C AND Cema55 AND BETWEEN((C-ema55)/ema55,0,0.02),dr4)=1;
dr6:=C>REF(C,1);dr7:= dr1 AND dr5 AND dr6 ;dr8:=dr7 AND FILTER(dr7,10);
DRAWTEXT(dr8,L-0.09,\’╲黑\’),coloryellow;
er:=BARSLAST(REF(CROSS(ema55,ema34),1))
AND
CROSS(ema34,ema55);
DRAWTEXT(er,L-0.09,\’╲互\’),coloryellow;
fr:=BARSLAST(REF(CROSS(ema34,ema13),1))
AND
CROSS(ema13,ema34);
DRAWTEXT(fr,L-0.09,\’╲梅\’),coloryellow;
gr1:=BARSLAST(BETWEEN(\”bias.bias2\”(6,13,24),0,5)
);
gr2:=ema13>ema34 AND ema34>ema55 AND
ema13>REF(ema13,1);
gr3:=COUNT(\”bias.bias2\”(6,13,24)>10 AND
H=HHV(H,gr1),gr1);gr4:=H=HHV(H,gr1);
gr5:=\”macd.macd\”(12,26,9)<REF(\”macd.macd\”(12,26,9),1);
gr6:=gr2
AND gr3 AND gr4;gr7:=gr2 AND gr3 AND gr4 AND gr5;
DRAWTEXT(gr6 AND
gr7,H+0.13,\’▽\’),color00ff00;
STICKLINE(gr6 AND
gr7,H,H+0.09,4,0),color00ff00;
hr2:=ema13>=REF(ema13,3) AND
ema34>=REF(ema34,1) AND ema55>=REF(ema55,1) AND CROSS(C,ema13) AND
CROSS(C,ema34) AND CROSS(C,ema55);
DRAWTEXT(hr2 AND FILTER(hr2,10),L-0.09,\’╲推\’),coloryellow;
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA40:=MA(CLOSE,40);
ma60:=MA(C,60);
ma120:=MA(C,120),;
ma250:=MA(C,250),CulorFFAD00,linethick1;
vul1:=MA(VOL,5);
vul2:=MA(VOL,10);
vul3:=MA(VOL,20);
量托:=vul1>=vul3 AND CROSS(vul2,vul3) AND REF(vul2,1)<REF(vul3,1);
DRAWTEXT(量托,L,\’▲\’),colorblue;
{大型股票公式,股票编程,股票技术教程投稿平台-你就是股神,网址:694.cn 备注:如果正文内容没有显示完全的,说明在附件中,请点击‘立即下载’下载该附件!}