操盘手必备主图指标
2020-10-28 12:15:52
使用说明:
自带财务指标,记得更新你的通达信财务数据。稳健者多看ROE,利润同比,短线操盘者多关注换手Z。指标中自带多个信号指标。所有的信号支撑120均线由走平到上扬的多头走势,这些信号是可信度高,并参与操作。
否则,在120均线向下移动的信号指标,可信度不高。
公式要用新版本的通达信,才可以正常显示,老版本的通达信,没任何显示。
指标源码:
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,20),COLORMAGENTA,LINETHICK2;
VAR1:=MA(CLOSE,31);
MA60:MA(CLOSE,60),COLORGREEN;
MA120:MA(CLOSE,120),COLOR0080FF;
VAR2:=MA(CLOSE,250);
VAR3:=SUM(AMOUNT,1)/SUM(VOL,1)/100;
VAR4:=0.01*AMOUNT/VOL;
VAR5:=EMA(VAR4,5);
DRAWICON(CROSS(MA(CLOSE,18),MA(CLOSE,31)),HIGH*1.02,42);
DRAWICON(CROSS(EMA(CLOSE,20),EMA(CLOSE,89)),LOW*0.98,9);
VAR6:=STRCAT(CON2STR(100*FINANCE(30)/FINANCE(19),2),14);
VAR7:=STRCAT(CON2STR(FINANCE(34),2),1);
VAR8:=STRCAT(CON2STR(FINANCE(43),2),14);
DRAWTEXT_FIX(1,0.22,0,0,15),COLORFF8080;
DRAWTEXT_FIX(1,0.26,0,0,VAR7),COLORFF8080;
DRAWTEXT_FIX(1,0.31,0,0,16),COLORFF8080;
DRAWTEXT_FIX(1,0.36,0,0,VAR6),COLORFF8080;
DRAWTEXT_FIX(1,0.43,0,0,17),COLORFF8080;
DRAWTEXT_FIX(1,0.51,0,0,VAR8),COLORFF8080;
VAR9:=STRCAT(CON2STR(VOL*10000/FINANCE(46),2),1);
DRAWTEXT_FIX(1,0.6,0,0,18),COLORFF8080;
DRAWTEXT_FIX(1,0.66,0,0,VAR9),COLORFF8080;
VAR10:=CLOSE/REF(CLOSE,1)>1.097;
STICKLINE(VAR10,OPEN,CLOSE,0.8,0),COLORMAGENTA;
VAR11:=HIGH/REF(CLOSE,1)>1.097 AND CLOSE<HIGH;
STICKLINE(VAR11,OPEN,CLOSE,0.8,0),COLOR0080FF;
涨停:REF(CLOSE,1)*1.1,NODRAW,COLORRED;
DRAWTEXT(涨停 AND CURRBARSCOUNT<=1,涨停,24),COLORRED;
VAR12:=OPEN>REF(CLOSE,1) AND CLOSE>OPEN AND LOW>REF(CLOSE,1);
STICKLINE(VAR12,OPEN,OPEN+(CLOSE-OPEN)/3,(-1),0),COLORWHITE;
VAR13:=OPEN>REF(CLOSE,1) AND CLOSE>OPEN AND LOW<=REF(CLOSE,1);
STICKLINE(VAR13,OPEN,OPEN+(CLOSE-OPEN)/3,(-1),0),COLORD32CC7;
STICKLINE(CROSS(MA20,MA60),OPEN,CLOSE,(-1),0),COLORYELLOW;
STICKLINE(CROSS(MA60,MA20),OPEN,CLOSE,(-1),0),COLORGREEN;
STICKLINE(CROSS(MA5,MA20),IF(CLOSE>OPEN,OPEN,CLOSE)+(IF(CLOSE>OPEN,CLOSE,OPEN)-IF(CLOSE>OPEN,OPEN,CLOSE))*1/5,IF(CLOSE>OPEN,OPEN,CLOSE)+(IF(CLOSE>OPEN,CLOSE,OPEN)-IF(CLOSE>OPEN,OPEN,CLOSE))*2/3,(-1),0),COLORRED;
STICKLINE(CROSS(MA20,MA5),IF(CLOSE>OPEN,OPEN,CLOSE)+(IF(CLOSE>OPEN,CLOSE,OPEN)-IF(CLOSE>OPEN,OPEN,CLOSE))*1/5,IF(CLOSE>OPEN,OPEN,CLOSE)+(IF(CLOSE>OPEN,CLOSE,OPEN)-IF(CLOSE>OPEN,OPEN,CLOSE))*2/3,(-1),0),COLOR008000;
VAR14:=HHV(VOL,100)=VOL;
VAR15:=BARSLAST(VAR14) AND CURRBARSCOUNT<240;
DRAWLINE(REFX(VAR15=0,0),IF(CLOSE>OPEN,CLOSE,OPEN),REF(REFX(VAR15=0,0),1),REF(IF(CLOSE>OPEN,CLOSE,OPEN),1),1),COLORRED;
VAR16:=IF(CURRBARSCOUNT>1,VOL,(-1));
VAR17:=BARSLAST(VAR16=HHV(VAR16,20));
VAR18:=IF(REF(CLOSE,VAR17)>REF(OPEN,VAR17),REF(CLOSE,VAR17),REF(OPEN,VAR17));
DRAWLINE(CURRBARSCOUNT=CONST(VAR17)+1,VAR18,ISLASTBAR,REF(VAR18,VAR17),0),COLORWHITE;
VAR19:=90;
VAR20:=3;
VAR21:=REF(LLV(LOW,VAR19),VAR20);
VAR22:=REFDATE(VAR21,DATE);
VAR23:=VAR22=LOW AND (CLOSE-LOW>0-CLOSE OR OPEN-LOW>CLOSE-OPEN);
DRAWTEXT(VAR23,HIGH*1.015,30),COLORBLUE;
VAR24:=EMA(CLOSE,5);
VAR25:=EMA(CLOSE,10);
VAR26:=EMA(CLOSE,21);
VAR27:=EMA(CLOSE,34);
VAR28:=EMA(CLOSE,55);
VAR29:=EMA(CLOSE,89);
VAR30:=VAR24>VAR25 AND VAR25>VAR26;
VAR31:=VAR24>REF(VAR24,1) AND VAR25>REF(VAR25,1) AND VAR26>REF(VAR26,1);
VAR32:=CLOSE>MAX(VAR24,VAR29) AND VAR30 AND VAR31;
VAR33:=VOL/MA(VOL,5)>1.47 AND KDJ.K>REF(KDJ.K,1);
DRAWICON(VAR32 AND VAR33,LOW,7);
VAR34:=EMA(VOL,5);
VAR35:=EMA(VOL,20);
VAR36:=CROSS(VAR34,VAR35) AND CLOSE>REF(CLOSE,1) AND EMA(CLOSE,20)>REF(EMA(CLOSE,20),1);
DRAWTEXT(VAR36,HIGH*1.01,21),COLORBLUE;