N1:=17;{股票公式-股票指标www.gs6699.com}
A:=MA(CLOSE,N1)+ABS(MA(CLOSE,N1)-REF(MA(CLOSE,N1),1));
B:=MA(CLOSE,N1)+MA(CLOSE,N1)-REF(MA(CLOSE,N1),1);
通达信:IF(MA(CLOSE,N1)<B,B,MA(CLOSE,N1)),COLORFF00FF,LINETHICK2;
最牛特色:通达信-(MA(C,3)-通达信),COLOR00FFFF,LINETHICK2;
指标公式:MA(C,5),COLORWHITE,LINETHICK2;
IF(指标公式>REF(指标公式,1),指标公式,DRAWNULL),COLORRED,LINETHICK2;
IF(指标公式=REF(指标公式,1),指标公式,DRAWNULL),COLORRED;
IF(指标公式<REF(指标公式,1),指标公式,DRAWNULL),COLORFF9900,LINETHICK2;
S:=(指标公式>最牛特色);
DD:=通达信<REF(通达信,1);
IF(DD,通达信,DRAWNULL),COLOR00FF00,LINETHICK2;
IF(S,通达信,DRAWNULL),COLOR00FF00,POINTDOT,LINETHICK4;
DRAWICON(CROSS(通达信,最牛特色),L*0.95,1);
vvvds1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));
vvvds2:=REF(C,vvvds1+1)>C AND REF("MACD.DIF",vvvds1+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA");
DRAWTEXT(vvvds2>0,L-0.02,''),COLOR00FFFF;
vvvds3:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));
vvvds4:=REF(C,vvvds3+1)>C AND REF("KDJ.K",vvvds3+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");
DRAWTEXT(vvvds4,L-0.10,'◎K'),COLORFF00FF;
vvvds5:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));
vvvds6:=REF(C,vvvds5+1)>C AND REF("RSI.RSI1",vvvds5+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2");
DRAWTEXT(vvvds6>0,L-0.18,''),COLOR0000FF;
vvvds7:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));
vvvds8:=REF(C,vvvds7+1)<C AND REF("MACD.DIF",vvvds7+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF");
DRAWTEXT(vvvds8>0,H+0.16,''),COLOR00FF00;
vvvds9:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));
vvvds91:=REF(C,vvvds9+1)<C AND REF("KDJ.K",vvvds9+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K");
DRAWTEXT(vvvds91>0,H+0.08,'◎K'),COLORFFFFCC;
vvvds92:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
vvvds93:=REF(C,vvvds92+1)<C AND REF("RSI.RSI1",vvvds92+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");
DRAWTEXT(vvvds93>0,H+0.04,''),COLORFF9900;