相关简介:通达信k线涨停变色指标公式源码分享 通达信指标公式源码概况: 指标类别:通达信指标公式 授权方式:免费版 指标评级:★★★★★ 指标分类:策略 画线方法:副图 这是个非常简单但非常有效的副图指标,对于股价波段的运行有很好的描绘。当股价从相对底部整理完成时,青色的K线会开始钝化,买入点最好是在红色K线开始出现的时候,而不是青色线钝化的时候。主图可以设一个趋势指标结合,我前面发的白金买就非常适合。通达信指标公式源码: EXPMA5:EXPMA(C,5),COLORWHITELINETHICK2; EXPMA13:EXPMA(C,13),COLORMAGENTALINETHICK2; 牛熊分界线:DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,90),VOL),LINETHICK2,COLORYELLOW; 年线:DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,250),VOL),COLORCYANLINETHICK2; CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); DD:=DMA(CLOSE,CC); 上轨:(1+7/100)*DD,CIRCLEDOT,COLORGREEN; 下轨:(1-7/100)*DD,CIRCLEDOT,COLORGREEN; 中轨:(上轨+下轨)/2,CIRCLEDOT,COLORGREEN; 上轨绿:IF(上轨 =REF(上轨,1),上轨,DRAWNULL),CIRCLEDOT,COLORGREEN,LINETHICK1; 上轨红:IF(上轨 =REF(上轨,1),上轨,DRAWNULL),CIRCLEDOTCOLORRED,LINETHICK1; 中轨绿:IF(中轨 =REF(中轨,1),中轨,DRAWNULL),CIRCLEDOT,COLORGREEN,LINETHICK1; 中轨红:IF(中轨 =REF(中轨,1),中轨,DRAWNULL),CIRCLEDOTCOLORRED,LINETHICK1; 下轨绿:IF(下轨 =REF(下轨,1),下轨,DRAWNULL),CIRCLEDOT,COLORGREEN,LINETHICK1; 下轨红:IF(下轨 =REF(下轨,1),下轨,DRAWNULL),CIRCLEDOTCOLORRED,LINETHICK1; {以下这段源码可要可不要,主要是美化k线用} VAR1:=(CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2)); VAR2:=(REF(VAR1,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR3:=(REF(VAR2,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR4:=(REF(VAR3,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR5:=(REF(VAR4,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR6:=(REF(VAR5,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR7:=(REF(VAR6,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR8:=(REF(VAR7,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR9:=(REF(VAR8,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VARA:=(REF(VAR9,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VARB:=(REF(VARA,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VARC:=(REF(VARB,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VARD:=(CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2)); VARE:=(REF(VARD,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VARF:=(REF(VARE,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR10:=(REF(VARF,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR11:=(REF(VAR10,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR12:=(REF(VAR11,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR13:=(REF(VAR12,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR14:=(REF(VAR13,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR15:=(REF(VAR14,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR16:=(REF(VAR15,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR17:=(REF(VAR16,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR18:=(REF(VAR17,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2)); VAR19:=((REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18,1))ANDVAR1); VAR1A:=((REF(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBORVARC,1))ANDVARD); RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; 红色持股:=VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBORVARC,COLOR0000FF,NODRAW; 离场:=IF(红色持股,LLV(C,2),DRAWNULL); 明离场价:=离场,COLORFF99FF,NODRAW; 今离场价:REF(离场,1)COLOR0000FF,NODRAW,COLORGREEN; 青色观望:=VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18,COLORFFFF00,NODRAW; 进:=IF(青色观望,HHV(C,2),DRAWNULL); 明进场价:=进,COLOR33AACC,NODRAW,COLORCYAN; 今进场价:REF(明进场价,1),COLORFF0000,NODRAW,COLORRED; 短买:=VAR19,COLOR33AACC,NODRAW; 品红离场:=VAR1A,COLORFF99FF,NODRAW; 急速超跌:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100 -14,COLORFFFFFF,NODRAW; STICKLINE(C =O,L,H,0,0),COLOR0000CC; STICKLINE(C O,L,H,0,0),COLOR999900; STICKLINE(1,C,O,3.5,0),COLOR858500; STICKLINE(C =O,C,O,3.5,0),COLOR0000E5; STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055; STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088; STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA; STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC; STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE; STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500; STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800; STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00; STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00; STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00; CO:=(C-O); STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLOR555555; STICKLINE(急速超跌,O,C-CO/2,2,0),COLOR888888; STICKLINE(急速超跌,O,C-CO/2,1.5,0),COLORAAAAAA; STICKLINE(急速超跌,O,C-CO/2,1,0),COLORCCCCCC; STICKLINE(急速超跌,O,C-CO/2,0.5,0),COLOREEEEEE; STICKLINE(短买,O,O+CO/3,2.8,0),COLOR335555; STICKLINE(短买,O,O+CO/3,2,0),COLOR338888; STICKLINE(短买,O,O+CO/3,1.5,0),COLOR33AAAA; STICKLINE(短买,O,O+CO/3,1,0),COLOR33CCCC; STICKLINE(品红离场,O,O+CO/3,2.8,0),COLOR550055; STICKLINE(品红离场,O,O+CO/3,2,0),COLOR880088; STICKLINE(品红离场,O,O+CO/3,1.5,0),COLORAA00AA; STICKLINE(品红离场,O,O+CO/3,1,0),COLORCC00CC; STICKLINE(品红离场,O,O+CO/3,0.5,0),COLOREE00EE; WW:STICKLINE(ISLASTBARAND(红色持股ORREF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF; WW1:STICKLINE(ISLASTBARAND(青色观望ORREF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00; AA:DRAWTEXT(短买,REF(CLOSE,1)-0.2, ↖买 ),COLORRED; BB1:DRAWTEXT(品红离场,REF(CLOSE,1)+0.5, ↙卖 ),COLORGREEN; TT:=240/FROMOPEN; 比:=TT; J12:=(HIGH-((HIGH-LOW)/3)); J23:=(LOW+((HIGH-LOW)/3)); AAA:=CONST(HHV(H,90)); BBB:=CONST(LLV(L,100)); MA1:MA(CLOSE,5); MA2:MA(CLOSE,10); MA3:MA(CLOSE,20); MA4:MA(CLOSE,60); MA5:MA(CLOSE,120); DRAWKLINE(H,O,L,C); T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) 0.95ANDREF(OPEN,1) REF(CLOSE,2)ANDABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1) 0.03AND CLOSE/OPEN 1.05ANDCLOSE REF(CLOSE,2)),1,0)); T2{黄昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) 1.03ANDREF(OPEN,1) REF(CLOSE,2)ANDABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1) 0.02 ANDCLOSE/OPEN 0.97ANDCLOSE REF(CLOSE,2)),1,0)); T3{长十字}:=CONST(IF((CLOSE=OPENANDHIGH/LOW 1.03),1,0)); T4{垂死十字}:=CONST(IF((CLOSE=OPENANDCLOSE=LOWANDCLOSE!=HIGH),1,0)); T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) 0.95ANDREF(OPEN,1) REF(CLOSE,2)ANDREF(OPEN,1)=REF(CLOSE,1)AND CLOSE/OPEN 1.05ANDCLOSE REF(CLOSE,2)),1,0)); T6{黄昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) 1.05ANDREF(OPEN,1) REF(CLOSE,2)ANDREF(OPEN,1)=REF(CLOSE,1)AND CLOSE/OPEN 0.95ANDCLOSE REF(CLOSE,2)),1,0)); T7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOWANDHIGH-LOW 3*(MAX(OPEN,CLOSE)-LOW)ANDCLOSE MA(CLOSE,5)),1,0)); T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOWANDHIGH-LOW 3*(MAX(OPEN,CLOSE)-LOW)ANDCLOSE MA(CLOSE,5)),1,0)); T9{锤头}:=CONST(IF((HIGH=MAX(OPEN,CLOSE)ANDHIGH-LOW 3*(HIGH-MIN(OPEN,CLOSE))ANDCLOSE MA(CLOSE,5)),1,0)); T10{吊颈}:=CONST(IF((HIGH=MAX(OPEN,CLOSE)ANDHIGH-LOW 3*(HIGH-MIN(OPEN,CLOSE))ANDCLOSE MA(CLOSE,5)),1,0)); T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1) 1.03ANDCLOSE/OPEN 0.96 ANDCLOSE REF(OPEN,1) ANDOPEN REF(CLOSE,1))OR(REF(CLOSE,1)/REF(OPEN,1) 0.97ANDCLOSE/OPEN 1.04 ANDCLOSE REF(OPEN,1)ANDOPEN REF(CLOSE,1))),1,0)); T12{乌云盖顶}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1) 1.03ANDCLOSE/OPEN 0.97 ANDOPEN REF(CLOSE,1)ANDCLOSE REF(CLOSE,1)),1,0)); T13{曙光初现}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1) 0.97ANDCLOSE/OPEN 1.03 ANDOPEN REF(CLOSE,1)ANDCLOSE REF(CLOSE,1)),1,0)); T14{身怀六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) 0.04 ANDABS(CLOSE-OPEN)/CLOSE 0.005AND MAX(CLOSE,OPEN) MAX(REF(CLOSE,1),REF(OPEN,1))ANDMIN(CLOSE,OPEN) MIN(REF(CLOSE,1),REF(OPEN,1))),1,0)); T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) 0.04 ANDCLOSE=OPENAND CLOSE MAX(REF(CLOSE,1),REF(OPEN,1))ANDCLOSE MIN(REF(CLOSE,1) ,REF(OPEN,1))),1,0)); T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH 0.001),1,0)); T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW 0.001ANDABS(REF(LOW,1) -REF(LOW,2))/REF(LOW,1) =0.001)),1,0)); T18{大阳烛}:=CONST(IF((CLOSE/OPEN 1.05ANDHIGH/LOW CLOSE/OPEN+0.018),1,0)); T19{三个白武士}:=CONST(IF((REF(CLOSE,2) REF(OPEN,2)ANDREF(CLOSE,1) REF(OPEN,1)ANDCLOSE OPEN ANDREF(CLOSE,1) REF(CLOSE,2)ANDCLOSE REF(CLOSE,1)),1,0)); T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1) REF(OPEN,1)ANDCLOSE OPEN ANDCLOSE/OPEN 0.98),1,0)); T21{孕育线}:=CONST(IF((REF(CLOSE,2) REF(OPEN,2)AND(REF(CLOSE,2) -REF(OPEN,2))/REF(OPEN,2) =2/100ANDREF(OPEN,1) =REF(CLOSE,1) AND(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1) =2/100ANDREF(OPEN,1) =REF(CLOSE,2)ANDREF(CLOSE,1) =REF(OPEN,2)ANDC =OPEN AND(CLOSE-OPEN)/OPEN =2/100ANDCLOSE =REF(OPEN,1)ANDOPEN =REF(CLOSE,1) AND(MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2)) =1/100),1,0)); T22{多方炮}:=CONST(IF((REF(CLOSE,2) REF(OPEN,2)ANDREF(CLOSE,1) REF(OPEN,1) ANDCLOSE OPEN),1,0)); T23{出水芙蓉}:=CONST(IF(((OPEN EMA(C,20)OROPEN EMA(C,40)OROPEN EMA(C,60))AND(C MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND(V/MA(V,30) 1.2ANDC/REF(C,1) 1.049)),1,0)); T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4) 1.03ANDREF(CLOSE,3) REF(OPEN,3)ANDREF(CLOSE,2) REF(OPEN,2)ANDREF(CLOSE,1) REF(OPEN,1) ANDREF(LOW,4) REF(LOW,3)ANDREF(LOW,4) REF(LOW,2)ANDREF(LOW,4) REF(LOW,1)ANDREF(HIGH,4) REF(HIGH,3)ANDREF(HIGH,4) REF(HIGH,2) ANDREF(HIGH,4) REF(HIGH,1)ANDCLOSE/OPEN 1.03ANDCLOSE REF(CLOSE,4)),1,0)); T25{下跌三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4) 0.97ANDREF(CLOSE,3) REF(OPEN,3)ANDREF(CLOSE,2) REF(OPEN,2)ANDREF(CLOSE,1) REF(OPEN,1) ANDREF(LOW,4) REF(LOW,3)ANDREF(LOW,4) REF(LOW,2)ANDREF(LOW,4) REF(LOW,1)ANDREF(HIGH,4) REF(HIGH,3)ANDREF(HIGH,4) REF(HIGH,2)ANDREF(HIGH,4) REF(HIGH,1)ANDCLOSE/OPEN 0.97AND CLOSE REF(CLOSE,4)),1,0)); T26{跳空缺口}:=CONST(IF(HIGH REF(LOW,1)ORLOW REF(HIGH,1),1,0)); T27{三只乌鸦}:=CONST(IF((REF(CLOSE,2) REF(OPEN,2)ANDREF(CLOSE,1) REF(OPEN,1)ANDCLOSE OPENANDREF(CLOSE,1) REF(CLOSE,2) ANDCLOSE REF(CLOSE,1)),1,0)); T28{光脚阴线}:=CONST(IF((LOW=CLOSEANDHIGH!=LOW),1,0)); T29{光头阳线}:=CONST(IF((HIGH=CLOSEANDHIGH!=LOW),1,0)); T30{分离}:=CONST(IF((OPEN=REF(OPEN,1)AND(CLOSE-OPEN)*(REF(CLOSE,1) -REF(OPEN,1)) 0),1,0)); T31{长下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW) 0.667),1,0)); T32{长上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW) 0.667),1,0)); T33{十字星}:=CONST(IF((CLOSE=OPENANDHIGH!=LOW),1,0)); T34{大阴烛}:=CONST(IF((OPEN/CLOSE 1.05ANDHIGH/LOW OPEN/CLOSE+0.018),1,0)); T35{好友反攻}:=CONST(IF(((REF(CLOSE,1) REF(OPEN,1)ANDCLOSE OPEN ANDABS(CLOSE-REF(CLOSE,1))/CLOSE 0.002)OR(REF(CLOSE,1) REF(OPEN,1) ANDCLOSE OPENANDABS(CLOSE-REF(CLOSE,1)) /CLOSE 0.002)),1,0)); T36{倾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1) =1.03ANDO REF(C,1)ANDO REF(O,1)ANDC REF(O,1)),1,0)); T37{M9}:=CONST(V*比 REF(V,1)ANDMA(V,5) REF(MA(V,5),1)); T38{M10}:=CONST(V*比 REF(V,1)ANDMA(V,5) REF(MA(V,5),1)); T39{M11}:=CONST(V*比 REF(V,1)ANDMA(V,5) REF(MA(V,5),1)); T40{M12}:=CONST(V*比 REF(V,1)ANDMA(V,5) REF(MA(V,5),1)); T41{M13}:=CONST((((IF((CLOSE=OPEN),1,0)+IF((CLOSE =J12),1,0))+IF((CLOSE =J23),1,0)) T42{M14}:=CONST((((AMOUNT/VOL)/100) REF(HIGH,1))); T43{M15}:=CONST((((AMOUNT/VOL)/100) REF(LOW,1))); TS1:=IF(T1=1,0+0.03,0); TS2:=IF(T2=1,TS1+0.03,TS1); TS3:=IF(T3=1,TS2+0.03,TS2); TS4:=IF(T4=1,TS3+0.03,TS3); TS5:=IF(T5=1,TS4+0.03,TS4); TS6:=IF(T6=1,TS5+0.03,TS5); TS7:=IF(T7=1,TS6+0.03,TS6); TS8:=IF(T8=1,TS7+0.03,TS7); TS9:=IF(T9=1,TS8+0.03,TS8); TS10:=IF(T10=1,TS9+0.03,TS9); TS11:=IF(T11=1,TS10+0.03,TS10); TS12:=IF(T12=1,TS11+0.03,TS11); TS13:=IF(T13=1,TS12+0.03,TS12); TS14:=IF(T14=1,TS13+0.03,TS13); TS15:=IF(T15=1,TS14+0.03,TS14); TS16:=IF(T16=1,TS15+0.03,TS15); TS17:=IF(T17=1,TS16+0.03,TS16); TS18:=IF(T18=1,TS17+0.03,TS17); TS19:=IF(T19=1,TS18+0.03,TS18); TS20:=IF(T20=1,TS19+0.03,TS19); TS21:=IF(T21=1,TS20+0.03,TS20); TS22:=IF(T22=1,TS21+0.03,TS21); TS23:=IF(T23=1,TS22+0.03,TS22); TS24:=IF(T24=1,TS23+0.03,TS23); TS25:=IF(T25=1,TS24+0.03,TS24); TS26:=IF(T26=1,TS25+0.03,TS25); TS27:=IF(T27=1,TS26+0.03,TS26); TS28:=IF(T28=1,TS27+0.03,TS27); TS29:=IF(T29=1,TS28+0.03,TS28); TS30:=IF(T30=1,TS29+0.03,TS29); TS31:=IF(T31=1,TS30+0.03,TS30); TS32:=IF(T32=1,TS31+0.03,TS31); TS33:=IF(T33=1,TS32+0.03,TS32); TS34:=IF(T34=1,TS33+0.03,TS33); TS35:=IF(T35=1,TS34+0.03,TS34); TS36:=IF(T36=1,TS35+0.03,TS35); TS37:=IF(T37=1,TS36+0.03,TS36); TS38:=IF(T38=1,TS37+0.03,TS37); TS39:=IF(T39=1,TS38+0.03,TS38); TS40:=IF(T40=1,TS39+0.03,TS39); TS41:=IF(T41=1,TS40+0.03,TS40); TS42:=IF(T42=1,TS41+0.03,TS41); TS43:=IF(T43=1,TS42+0.03,TS42); DRAWTEXT(T1=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS1), 早晨之星,见底回升‖ ),COLORGREEN; DRAWTEXT(T2=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS2), 黄昏之星,见顶回落‖ ),COLORGREEN; DRAWTEXT(T3=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS3), 长十字,重要的警告信号,原趋势停顿或反转‖ ),COLORGREEN; DRAWTEXT(T4=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS4), 垂死十字,下跌信号‖ ),COLORGREEN; DRAWTEXT(T5=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS5), 早晨十字星,上涨信号,见底回升‖ ),COLORGREEN; DRAWTEXT(T6=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS6), 黄昏十字星,趋势停顿或反转,下跌或,见顶回落‖ ),COLORGREEN; DRAWTEXT(T7=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS7), 射击之星,市场顶部就在眼前,可能见顶回落,可靠性低‖ ),COLORGREEN; DRAWTEXT(T8=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS8), 倒转锤头构成一个看涨信号,可能见底回升‖ ),COLORGREEN; DRAWTEXT(T9=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS9), 锤头,可能见底回升,如有量配合,信号强烈‖ ),COLORGREEN; DRAWTEXT(T10=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS10), 吊颈,上升行情中见顶回落,顶部出现,见顶信号‖ ),COLORGREEN; DRAWTEXT(T11=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS11), 穿头破脚,顶部出现,见顶回落信号‖ ),COLORGREEN; DRAWTEXT(T12=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS12), 乌云盖顶,见顶回落信号‖ ),COLORGREEN; DRAWTEXT(T13=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS13), 曙光初现,将演化为V型反转或横盘。后市见底回升‖ ),COLORGREEN; DRAWTEXT(T14=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS14), 身怀六甲,底部,是见底回升,顶部,是见顶回落信号‖ ),COLORGREEN; DRAWTEXT(T15=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS15), 十字胎‖ ),COLORYELLOW; DRAWTEXT(T16=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS16), 平顶,行情见顶,股价将反转。但下跌力度较小‖ ),COLORYELLOW; DRAWTEXT(T17=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS17), 平底,行情探低见底,股价行将反转上升,但力度较小‖ ),COLORYELLOW; DRAWTEXT(T18=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS18), 大阳烛,上升中,剧烈地向上攀升。下行中,剧烈地向上反弹 ‖ ),COLORYELLOW; DRAWTEXT(T19=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS19), 三个白武士,每日收盘价上移,表示可能见底回升‖ ),COLORYELLOW; DRAWTEXT(T20=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS20), 双飞乌鸦,行情开始疲软将见顶回落‖ ),COLORYELLOW; DRAWTEXT(T21=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS21), 孕育线,注意股价位置‖ ),COLORYELLOW; DRAWTEXT(T22=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS22), 多方炮,底部可能上涨,中间上涨中继,顶部见顶信号‖ ),COLORYELLOW; DRAWTEXT(T23=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS23), 出水芙蓉,阳线穿过20、40、60日均线,上攻势头初现‖ ),COLORYELLOW; DRAWTEXT(T24=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS24), 上升三部曲,上涨信号‖ ),COLORYELLOW; DRAWTEXT(T25=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS25), 下跌三部曲,下跌信号‖ ),COLORYELLOW; DRAWTEXT(T26=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS26), 跳空缺口,突破盘整,向上涨、向下跌开始‖ ),COLORYELLOW; DRAWTEXT(T27=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS27), 三只乌鸦站枝头,可能见顶回落‖ ),COLORYELLOW; DRAWTEXT(T28=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS28), 光脚阴线,下跌信号‖ ),COLORYELLOW; DRAWTEXT(T29=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS29), 光头阳线,多方积极上攻态势,后市看涨‖ ),COLORYELLOW; DRAWTEXT(T30=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS30), 分离,注意看涨分离和看跌分离‖ ),COLORYELLOW; DRAWTEXT(T31=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS31), 长下影,有可能止跌回升,升势末期,须小心‖ ),COLORYELLOW; DRAWTEXT(T32=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS32), 长上影,表明行情上档压力沉重,升势受阻‖ ),COLORYELLOW; DRAWTEXT(T33=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS33), 十字星,重要的警告信号,原趋势停顿或反转‖ ),COLORYELLOW; DRAWTEXT(T34=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS34), 大阴烛,后市向淡,发生逆转‖ ),COLORYELLOW; DRAWTEXT(T35=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS35), 好友反攻,跌势已尽,要展开一段反弹行情‖ ),COLORYELLOW; DRAWTEXT(T36=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS36), 倾盆大雨,见顶信号‖ ),COLORYELLOW; DRAWTEXT(T37=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS37), 今日成交量大于昨日,且有继续增大趋势 ),COLORYELLOW; DRAWTEXT(T38=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS38), 今日成交量小于昨日,但有放大迹象 ),COLORYELLOW; DRAWTEXT(T39=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS39), 今日成交量大于昨日,但有缩小迹象 ),COLORRED; DRAWTEXT(T40=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS40), 今日成交量小于昨日,且有缩小迹象 ),COLORRED; DRAWTEXT(T41=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS41), 极端行情,在未来的几日内有85%的机会变更方向 ),COLORWHITE; DRAWTEXT(T42=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS42), 上涨趋势 ),COLORRED; DRAWTEXT(T43=1ANDCURRBARSCOUNT=58,AAA-(AAA*TS43), 下跌趋势 ),COLORGREEN; N:=16; M:=2; ZTB:=(C-REF(C,1))/REF(C,1)*100 =9.8;{涨停板} ZTC:=COUNT(ZTB,N);{N天内涨停个数} ZTT:=BArslAst(ZTB);{上一次涨停距今天数} XG:ZTC {涨停数大于M} {COUNT(C/REF(C,1) 1.096,N) };[源码注释]通达信公式动态公式解读输出XG:统计10日中满足(最高价-收盘价和开盘价的较大值) 1的天数 =3