龙虎榜MACD指标 (源码)
通达信龙虎榜MACD指标公式股票软件源码如下:
DIF2:EMA(CLOSE,8) - EMA(CLOSE,57),COLORLICYAN;
DEA2:EMA(DIF2,8),COLORWHITE;
MACD:2*(DIF2-DEA2),COLORSTICK;
IF(DIF2>REF(DIF2,1),DIF2,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(DIF2>DEA2,DEA2,DRAWNULL),COLORYELLOW,LINETHICK2;
{www.gpxiazai.com 股票软件下载网_通达信股票指标公式}
STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORGREEN;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORMAGENTA;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORLIBLUE;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),NODRAW;
DRAWICON(CROSS(50,CCI),DEA2,2);
DRAWICON(CCI>150,DEA2,12);
DRAWTEXT_FIX(1,0.0,0,0,STRCAT('千股千评:',EXTERNSTR(0,1))),COLORRED;
DRAWTEXT_FIX(1,0.6,0,0,STRCAT('业绩预报:',EXTERNSTR(0,14))),COLORYELLOW;
DRAWTEXT_FIX(1,0.0,0.2,0,STRCAT('年报业绩:',EXTERNSTR(0,8))),COLORYELLOW;
DRAWTEXT_FIX(1,0.6,0.2,0,STRCAT('解禁日期:',EXTERNSTR(0,15))),COLORBLUE;
DRAWTEXT_FIX(1,0.0,0.4,0,STRCAT('中报业绩:',EXTERNSTR(0,9))),COLORBLUE;
DRAWTEXT_FIX(1,0.6,0.4,0,STRCAT('主题投资:',EXTERNSTR(0,10))),COLORBROWN;
DRAWTEXT_FIX(1,0.0,0.6,0,STRCAT('机构评级:',EXTERNSTR(0,11))),COLORCYAN;
DRAWTEXT_FIX(1,0.3,0.6,0,STRCAT('智能诊断:',EXTERNSTR(0,12))),COLORRED;
DRAWTEXT_FIX(1,0.0,0.8,0,STRCAT('敢死队席位:',EXTERNSTR(0,13))),COLORLIMAGENTA;
- 上一篇公式:进出短线指标 (源码)
- 下一篇公式:全仓追买指标 (源码)