您好,欢迎访问三七文档
当前位置:首页 > 金融/证券 > 股票报告 > 【股票指标公式下载】-【通达信】波段K线解盘(中短波、早晨之星、黄昏
【通达信】波段K线解盘(中短波、早晨之星、黄昏之星、大阴烛)-指标公式源码{中短波}短波:EMA(EMA(CLOSE,13),1),COLOR00DD00;中波:EMA(EMA(CLOSE,13),26),COLORRED;HZ2:EMA(EMA(CLOSE,13),8),COLORGREEN,LINETHICK2;HZ4:EMA(EMA(CLOSE,13),39),COLORFF00FF,LINETHICK2;STICKLINE(HZ2HZ4,短波,HZ4,1,0),COLORBLUE;STICKLINE(短波HZ2,短波,HZ2,1,0),COLORGREEN;STICKLINE(中波HZ4,中波,HZ4,1,0),COLORFF00FF;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);{红}STICKLINE(MACD0,C,O,2.8,0),COLOR000080;STICKLINE(MACD0,H,L,0,0),COLOR0000E5;{淡蓝}STICKLINE(MACD0ANDMACDREF(MACD,1),C,O,2.8,0),COLORFF9900;STICKLINE(MACD0ANDMACDREF(MACD,1),H,L,0,0),COLORFFFF00;{黄}STICKLINE(MACD0ANDMACDREF(MACD,1),C,O,2.8,0),COLOR0099FF;STICKLINE(MACD0ANDMACDREF(MACD,1),H,L,0,0),COLOR00FFFF;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.03ANDCLOSE/OPEN1.05ANDCLOSEREF(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.02ANDCLOSE/OPEN0.97ANDCLOSEREF(CLOSE,2)),1,0));T3{长十字}:=CONST(IF((CLOSE=OPENANDHIGH/LOW1.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)ANDCLOSE/OPEN1.05ANDCLOSEREF(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)ANDCLOSE/OPEN0.95ANDCLOSEREF(CLOSE,2)),1,0));T7{射击之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOWANDHIGH-LOW3*(MAX(OPEN,CLOSE)-LOW)ANDCLOSEMA(CLOSE,5)),1,0));T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOWANDHIGH-LOW3*(MAX(OPEN,CLOSE)-LOW)ANDCLOSEMA(CLOSE,5)),1,0));T9{锤头}:=CONST(IF((HIGH=MAX(OPEN,CLOSE)ANDHIGH-LOW3*(HIGH-MIN(OPEN,CLOSE))ANDCLOSEMA(CLOSE,5)),1,0));T10{吊颈}:=CONST(IF((HIGH=MAX(OPEN,CLOSE)ANDHIGH-LOW3*(HIGH-MIN(OPEN,CLOSE))ANDCLOSEMA(CLOSE,5)),1,0));T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)1.03ANDCLOSE/OPEN0.96ANDCLOSEREF(OPEN,1)ANDOPENREF(CLOSE,1))OR(REF(CLOSE,1)/REF(OPEN,1)0.97ANDCLOSE/OPEN1.04ANDCLOSEREF(OPEN,1)ANDOPENREF(CLOSE,1))),1,0));T12{乌云盖顶}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)1.03ANDCLOSE/OPEN0.97ANDOPENREF(CLOSE,1)ANDCLOSEREF(CLOSE,1)),1,0));T13{曙光初现}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)0.97ANDCLOSE/OPEN1.03ANDOPENREF(CLOSE,1)ANDCLOSEREF(CLOSE,1)),1,0));T14{身怀六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)0.04ANDABS(CLOSE-OPEN)/CLOSE0.005ANDMAX(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.04ANDCLOSE=OPENANDCLOSEMAX(REF(CLOSE,1),REF(OPEN,1))ANDCLOSEMIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH0.001),1,0));T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW0.001ANDABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)=0.001)),1,0));T18{大阳烛}:=CONST(IF((CLOSE/OPEN1.05ANDHIGH/LOWCLOSE/OPEN+0.018),1,0));T19{三个白武士}:=CONST(IF((REF(CLOSE,2)REF(OPEN,2)ANDREF(CLOSE,1)REF(OPEN,1)ANDCLOSEOPENANDREF(CLOSE,1)REF(CLOSE,2)ANDCLOSEREF(CLOSE,1)),1,0));T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)REF(OPEN,1)ANDCLOSEOPENANDCLOSE/OPEN0.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=OPENAND(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)ANDCLOSEOPEN),1,0));T23{出水芙蓉}:=CONST(IF(((OPENEMA(C,20)OROPENEMA(C,40)OROPENEMA(C,60))AND(CMAX(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/OPEN1.03ANDCLOSEREF(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/OPEN0.97ANDCLOSEREF(CLOSE,4)),1,0));T26{跳空缺口}:=CONST(IF(HIGHREF(LOW,1)ORLOWREF(HIGH,1),1,0));T27{三只乌鸦}:=CONST(IF((REF(CLOSE,2)REF(OPEN,2)ANDREF(CLOSE,1)REF(OPEN,1)ANDCLOSEOPENANDREF(CLOSE,1)REF(CLOSE,2)ANDCLOSEREF(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{十字星}:=CO
本文标题:【股票指标公式下载】-【通达信】波段K线解盘(中短波、早晨之星、黄昏
链接地址:https://www.777doc.com/doc-1130755 .html