一、通达信股彩黎明主图指标公式
MA5:MA(C,5),COLORFFFFFF,LINETHICK1;
MA20:MA(C,20),COLORFF80FF,LINETHICK2;
MA120:MA(C,120),COLORCYAN,LINETHICK2;
角5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
角20:ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416,NODRAW,COLORWHITE;
角120:=ATAN((MA120/REF(MA120,1)-1)*100)*180/3.1416,NODRAW,COLORWHITE;
涨幅:=(C-REF(C,1))/REF(C,1)*100;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
乖离:=ABS((MA20-MA120)/MA20*100),NODRAW,COLORWHITE;
涨:=IF(REF(CCI,1)<100,CCI>120,CCI>100);
跌:=IF(REF(CCI,1)>-100,CCI<-120,CCI<-100);
震荡:=涨=0 AND 跌=0;
上:MA20+2*STD(CLOSE,20),COLOR0000FF,DOTLINE;
下:MA20-2*STD(CLOSE,20),COLOR00FF00,DOTLINE;
中上轨:上-(上-下)/6,COLORFFFF00,DOTLINE;
中下轨:下+(上-下)/6,COLORFFFF00,DOTLINE;
两格:=中上轨-MA20;
STICKLINE(涨=1,H,L,0,0),COLORRED;
STICKLINE(涨=1 AND C>=O,C,O,3,1),COLORRED;
STICKLINE(涨=1 AND C STICKLINE(跌=1,H,L,0,0),COLORFF6400; STICKLINE(跌=1 AND C>=O,C,O,3,1),COLORFF6400; STICKLINE(跌=1 AND C STICKLINE(震荡=1,H,L,0,0),COLORYELLOW; STICKLINE(震荡=1 AND C>=O,C,O,3,1),COLORYELLOW; STICKLINE(震荡=1 AND C BX:=(L<=中下轨 AND 跌=0 AND LLV(L,3)>LLV(L,20) AND O-C<两格) OR (L<=下 AND 跌 AND LLV(L,3)>LLV(L,20) AND O-C<两格); SX:=(H>=中上轨 AND 涨=0 AND HHV(H,3) DRAWICON(BX,L,1); DRAWICON(SX,H,2); 低吸:=(涨 AND L<上 AND HHV(CCI,3)=HHV(CCI,8)) OR (涨 AND L<中上轨) OR (震荡 AND C>MA20 AND 角20>IF(C>1000,8,20) AND L<=MA20+(上-下)/8) OR (角20>IF(C>1000,0,8) AND L 高抛:=(跌 AND H>下 AND LLV(CCI,3)=LLV(CCI,8)) OR (跌 AND H>中下轨) OR (震荡 AND C 观望:=低吸=0 AND 高抛=0; DRAWTEXT_FIX(ISLASTBAR,0.5,0.05,0,'<使用说明> -->'),COLORRED; DRAWTEXT_FIX(ISLASTBAR,0.57,0.05,0,'红色上涨,蓝色下跌,黄色震荡'),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR,0.5,0.1,0,'<使用说明> -->'),COLORRED; DRAWTEXT_FIX(ISLASTBAR,0.57,0.1,0,'当买点信号出现时,先用大一级别周期确认处于低吸区域,否则买点信号真实性偏弱)'),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR AND BX,0.5,0.2,0,'<买点信号介入价格> -->'),COLORRED; DRAWNUMBER_FIX(ISLASTBAR AND BX,0.6,0.2,0,CON2STR(IF(跌,下,中下轨),2)),COLORCYAN; DRAWTEXT_FIX(ISLASTBAR AND BX,0.62,0.2,0,'下方或附近'),COLORRED; DRAWTEXT_FIX(ISLASTBAR,0.5,0.15,0,'当前行情 -->'),COLORRED; DRAWTEXT_FIX(ISLASTBAR AND 低吸,0.57,0.15,0,'当前行情处于低吸区'),COLORMAGENTA; DRAWTEXT_FIX(ISLASTBAR AND 高抛,0.57,0.15,0,'当前行情处于高抛区'),COLORMAGENTA; DRAWTEXT_FIX(ISLASTBAR AND 观望,0.57,0.15,0,'当前行情处于观望区,等待低吸或高抛'),COLORMAGENTA; MA5:=MA(C,5); MA10:=MA(C,10); MA30:=MA(C,30); MA60:=MA(C,60); MA120:=MA(C,120); VAR1:=MA120>MA60 AND MA60>MA30; VAR2:=MA30>MA60 AND MA60>MA120; VAR3:=MAX(MA30,MAX(MA60,MA120)); VAR4:=MIN(MA30,MIN(MA60,MA120)); VAR5:=IF(MA30<>VAR3 AND MA30<>VAR4,MA30,IF(MA60<>VAR3 AND MA60<>VAR4,MA60,MA120)); VAR6:=(VAR3-VAR4)/VAR4*100; VAR7:=(VAR5-VAR4)/VAR4*100; VAR8:=MA(REF(HHV(C,30),1),2); VAR9:=MA(REF(LLV(C,30),1),2); VAR10:=(VAR8-MAX(C,O))/MAX(C,O)*100; VAR11:=(MIN(C,O)-VAR9)/VAR9*100; VAR12:=BARSLASTCOUNT(VAR9=REF(VAR9,1)); VAR13:=(MAX(C,O)-MIN(C,O))/MIN(C,O)*100; VAR14:=(H-MAX(C,O))/MAX(C,O)*100; VAR15:=(MIN(C,O)-L)/L*100; VAR16:=BARSLASTCOUNT(MAX(O,C)<=REF(MAX(O,C),1) AND MIN(O,C)<=REF(MIN(O,C),1))>=2; VAR17:=(REF(MIN(C,O),1)-MAX(C,O))/MAX(C,O)*100; VAR18:=(BARSLASTCOUNT(VAR13>2.1)>=3 AND BARSLASTCOUNT(VAR17>2.1)>=2 AND COUNT(VAR17>5.5,2)) OR (BARSLASTCOUNT(OPENC AND VAR13>4)=3); VAR19:=RANGE(MIN(C,O),MA(C,5)*0.98,MA(C,5)*1.02); VAR20:=(MAX(HHV(C,10),HHV(OPEN,10))-MIN(LLV(C,10),LLV(OPEN,10)))/MIN(LLV(C,10),LLV(OPEN,10))*100; VAR21:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2)); VAR22:=CLOSE
VAR23:=REF(VAR22,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR24:=REF(VAR22 OR VAR23,1) AND VAR21; VAR25:=VAR24 AND CLOSE>OPEN; VAR26:=REF(VAR21,1) AND VAR22 AND NOT(REF(C,3)=LLV(C,4)); VAR27:=(CLOSE/OPEN)>1.04 AND CLOSE VAR28:=IF(C>MA(C,4),1,0)+IF(C VAR29:=VAR28=-2 AND C>O; VAR30:=IF(C>MA(C,4),1,0); VAR31:=IF(C VAR32:=IF(MA(C,5)>REF(MA(C,5),1),1,0); VAR33:=IF(MA(C,5)
VAR34:=VAR30+VAR31+VAR32+VAR33; VAR35:=VAR34=2 AND C VAR36:= EMA((CLOSE*2+HIGH+LOW)/4,13)-EMA((CLOSE*2+HIGH+LOW)/4,73); VAR37:=(CROSS(VAR36,EMA(VAR36,2)) AND VAR36<=0.05 AND (C/REF(C,1)>0.035)); VAR38:=VAR37 AND NOT(VAR35); VAR39:=VAR27 AND VAR13>3.9 AND VAR11<0.2 AND C>VAR9 AND VAR15<1.5 AND REF(VAR14<3,1) AND (REF(VAR13>5.5 AND C VAR40:=(VAR9=REF(VAR9,1) OR VAR12) AND C VAR41:=VAR39 AND VAR40; VAR42:=VAR27 AND VAR13>5.4 AND C=HHV(C,4) AND OPEN<=REF(MAX(C,O),1) AND VAR14<1.7 AND VAR38=0 AND VAR29=0 AND (REF(BARSLASTCOUNT(VAR13<1.5 AND VAR19)>=3,1) OR REF(COUNT(VAR16,2)>=1 AND BARSLASTCOUNT(VAR13>1.5)>=3,1)) AND (REF(VAR13>4.5 AND C VAR43:=VAR11<5.4 AND VAR10<14 AND C>VAR9 AND C VAR44:=VAR42 AND VAR43; VAR45:=(VAR16 AND BARSLASTCOUNT(VAR13<2.5)>=3 AND VAR29 AND C VAR46:=(BARSLASTCOUNT(C>0)<60 AND C VAR47:=VAR27 AND VAR13>3.9 AND VAR11<1.05 AND C>VAR9 AND C 黄龙:VAR41 OR VAR44 OR VAR47;二、通达信黄龙选股指标公式