通达信做基础—做一个源码副图


DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);     DEA1:=EMA(DIF1,9);
DRAWBAND(DIA,RGB(500,280,180),DIB,RGB(500,180,280));
AAA1:=(DIF1-DEA1)*2*60;                  
AAA上:IF(AAA12>REF(AAA12,1),AAA12,DRAWNULL),STICK,COLORLIRED,LINETHICK1;
买入线:15,COLORWHITE,DOTLINE;  买出线:-15,COLORWHITE,DOTLINE;  -8,COLORWHITE,DOTLINE;  8,COLORWHITE,DOTLINE;
DRAWICON(CROSS(判研,14.5),买入线,1);
{判研8:=IF(判研<=ABS(判研,8),-10,-8)COLORLIMAGENTA LINETHICK2;}
统计8:= COUNT(绝对值,89)>=60;
IF(判研>=8,判研,DRAWNULL),COLORRED,LINETHICK2;
操盘线:=EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK3;
DRAWICON((CROSS(判研,7.5) AND (H>=操盘线 AND L<=操盘线 AND 重心>=操盘线 ))