通达信趋势主图源码主图趋势主图


CCC:=AMOUNT/VOL/100;
M13:MA(CCC,13),COLOR00FFFF,LINETHICK1;
M34:MA(CCC,34),COLORFFFFFF,LINETHICK2;
STICKLINE(C>O,C,O,3.2,1),COLORRED;
STICKLINE(CCC>M34 AND M34>REF(M34,1) AND CCC>M13 AND C<O,C,O,3.2,1),COLORDDDDDD;
STICKLINE(CCC<=M34 AND M34>REF(M34,1),C,O,3.2,0),COLOR00FFFF;
STICKLINE(CCC<=M34 AND M34<=REF(M34,1),C,O,3.2,1),COLORFF0000;
M34,COLORFFFFFF,LINETHICK2;
M21,COLORRED;
M13,COLOR00FFFF;
M5,COLORFF00FF;
K8:=SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2.5,1);
DRAWICON(短入,L*0.96,13);
AND COUNT("KDJ.J"<0,3)>0 AND CROSS("KDJ.J",0);
,COLOR00FFFF;
TJ00:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D") AND REF("KDJ.K",1)<35,1));
DRAWTEXT(加仓 AND NOT((CCC>M34 OR M34>REF(M34,1))),L*0.98,'--回抽')
DRAWTEXT(加仓 AND (CCC>M34 OR M34>REF(M34,1)),L*0.98,'--加仓'),COLORFF00FF;
HH0:=CONST(HHV(H,75));
MM0:=CONST((HH0+LL0)/2);
HH1:=IF(CONST(C)<MM0,HH0*1.01,HL0);
HL1:=(HH1+LL1)/2,COLORFFFFFF;
STICKLINE("MACD.MACD">0,"MACD.MACD"+HL1,HL1,2.5,1),COLORDD55CC;
"MACD.MACD"+HL1,HL1,2.5,0),COLORDD55CC;
STICKLINE("MACD.MACD"<0 AND "MACD.MACD">REF("MACD.MACD",1),
IF("MACD.DIF">0,HL1*0.975,DRAWNULL),COLOR0000FF,LINETHICK1,CIRCLEDOT;
IF("MACD.DIF"<0 AND "MACD.MACD">0,HL1*0.975,DRAWNULL),COLORFF0080,CIRCLEDOT;