首页 > 股票公式 > 通达信建仓加仓空仓优化版指标公式

通达信建仓加仓空仓优化版指标公式

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK2;
DEA:=EMA(DIF,9),COLORWHITE,LINETHICK2;
STICKLINE(DIF>0 AND DIF>DEA>0,0,-0.6,10,1),COLORYELLOW;
STICKLINE(0>DIF>DEA AND DIF>DEA,0,-0.6,10,1),COLORRED;
STICKLINE(DIF<DEA,0,-0.6,10,1),COLORGREEN;
DRAWTEXT(CROSS(DEA,DIF),0+0.1,’空仓’),COLORGREEN;
DRAWTEXT(CROSS(DIF,0),0+0.1,’加仓’),COLORYELLOW;
DRAWTEXT(CROSS(DIF,DEA),0+0.1,’建仓’),COLORRED;

推荐阅读