注意:本指标源码用于通达信。 分享文华、博易、盘立方指标的公众号 分享通达信、大智慧,东方财富,大智慧指标的公众号 指标源码 01 AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL); KKHF1:=HIGH-LOW; KKHF2:=ABS(OPEN-CLOSE); KKHF3:=HIGH-IF(CLOSE>OPEN,CLOSE,OPEN); KKHF4:=IF(CLOSE>OPEN,OPEN,CLOSE)-LOW; KKHF5:=KKHF2/KKHF1*VOL; KKHF6:=KKHF3/KKHF1*VOL; KKHF7:=KKHF4/KKHF1*VOL; KKHF8:=IF(VOL/CAPITAL>0.001,1,EXP(ABS(LOG(VOL/CAPITAL*100)))); MA5:=MA(VOL,5),COLORRED; NILIANG:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,NILIANG,0,-1,-1),COLOR00C0C0; AAAA:=V; BBBB:=CAPITAL; BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); KKHF12:=(HIGH - LOW); KKHF13:=ABS((OPEN - CLOSE)); KKHF14:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN)); KKHF15:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW); KKHF16:=((KKHF13 / KKHF12) * VOL); KKHF17:=((KKHF14 / KKHF12) * VOL); KKHF18:=((KKHF15 / KKHF12) * VOL); KKHF19:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100))))); KKHFA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100); KKHFB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60))); KKHFC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30))); KKHFD:=REF(CLOSE,1); DRAWTEXT(((((((KKHF18 > KKHF16) AND (KKHF18 > KKHF17)) AND (KKHFA < (0 - 2))) AND(CLOSE < MA(CLOSE,30))) AND (KKHF18 < (MA(VOL,5) / 2))) AND (MA(VOL,5) < MA(VOL,10))),VOL,'低进')COLORRED; DRAWTEXT((((((KKHF16 > (MA(VOL,5) * 2)) AND (KKHF16 >= KKHF17)) AND (KKHF16 >= KKHF18)) AND (CLOSE > OPEN))OR ((VOL > (MA(VOL,5) * 3)) AND KKHFB)),VOL*1.05,'黑马柱')COLORRED; STICKLINE(CLOSE>MA(H,20),0,VOL,3,1),COLORRED; STICKLINE(CLOSE<MA(L,20),0,VOL,3,1),COLORGREEN; STICKLINE(CLOSE<MA(H,20) AND CLOSE>MA(L,20),0,VOL,3,1),COLORCYAN; STICKLINE(KKHF5>=KKHF6 AND KKHF5>=KKHF7 AND CLOSE>OPEN,0,KKHF5,2.5,0),COLOR000099; STICKLINE(KKHF5>=KKHF6 AND KKHF5>=KKHF7 AND CLOSE>OPEN,0,KKHF5,1.8,0),COLOR0000CC; STICKLINE(KKHF5>=KKHF6 AND KKHF5>=KKHF7 AND CLOSE>OPEN,0,KKHF5,1.1,0),COLOR0000FF; STICKLINE(KKHF5>=KKHF6 AND KKHF5>=KKHF7 AND CLOSE>OPEN,0,KKHF5,0.6,0),COLORCC66FF; STICKLINE(KKHF5>=KKHF6 AND KKHF5>=KKHF7 AND CLOSE<OPEN,0,KKHF5,2.5,0),COLOR009900; STICKLINE(KKHF5>=KKHF6 AND KKHF5>=KKHF7 AND CLOSE<OPEN,0,KKHF5,1.8,0),COLOR00BB00; STICKLINE(KKHF5>=KKHF6 AND KKHF5>=KKHF7 AND CLOSE<OPEN,0,KKHF5,1.1,0),COLOR00DD00; STICKLINE(KKHF5>=KKHF6 AND KKHF5>=KKHF7 AND CLOSE<OPEN,0,KKHF5,0.65,0),COLOR00FF00; STICKLINE(KKHF6>KKHF5 AND KKHF6>KKHF7,0,KKHF6,2.5,0),COLOR999999; STICKLINE(KKHF6>KKHF5 AND KKHF6>KKHF7,0,KKHF6,1.8,0),COLORBBBBBB; STICKLINE(KKHF6>KKHF5 AND KKHF6>KKHF7,0,KKHF6,1,0),COLORDDDDDD; STICKLINE(KKHF7>KKHF5 AND KKHF7>KKHF6,0,KKHF7,2.5,0),COLOR888800; STICKLINE(KKHF7>KKHF5 AND KKHF7>KKHF6,0,KKHF7,1.8,0),COLORAAAA00; STICKLINE(KKHF7>KKHF5 AND KKHF7>KKHF6,0,KKHF7,1.1,0),COLORCCCC00; STICKLINE(KKHF7>KKHF5 AND KKHF7>KKHF6,0,KKHF7,0.6,0),COLOREEEE00; STICKLINE(KKHF8>2 AND VOL<MA(VOL,20)/2,0,VOL,3,0),COLORBLUE; STICKLINE(VOL>(MA(VOL,20)*3),0,VOL,3,0),COLOR999999; STICKLINE(VOL>(MA(VOL,20)*3),0,VOL,2.2,0),COLORBBBBBB; STICKLINE(VOL>(MA(VOL,20)*3),0,VOL,1.4,0),COLORDDDDDD; STICKLINE(VOL>(MA(VOL,20)*3),0,VOL,0.7,0),COLORFFFFFF; DRAWTEXT(KKHF6>KKHF5 AND KKHF6>KKHF7 AND CLOSE>MA(CLOSE,5)AND CLOSE>MA(CLOSE,34) AND HIGH>MA(CLOSE,55) AND VOL>MA5 AND KKHF6>MA(VOL,5),VOL-12.5,'放量突破'),COLORWHITE; STICKLINE(VOL>REF( VOL,1)*2,0,VOL,0.7,0),COLOR00EEFF; STICKLINE(VOL>REF( VOL,1)*2,0,VOL,0.5,0),COLOR00AAFF; STICKLINE(VOL>REF( VOL,1)*2,0,VOL,0.4,0),COLOR00CCFF; STICKLINE(VOL>REF( VOL,1)*2,0,VOL,0.3,0),COLOR00EEFF; KKHF11:=3; KKHF21:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1)); IF(CROSS(KKHF21,KKHF11),20,-1),COLORRED,COLOR0000FF,LINETHICK0; STICKLINE(CROSS(KKHF21,KKHF11),0,VOL,2.8,0),COLORFF11FF; STICKLINE(CROSS(KKHF21,KKHF11),0,VOL,2,0),COLORFF44FF; STICKLINE(CROSS(KKHF21,KKHF11),0,VOL,1,0),COLORFF66FF; 百日地量:LLV(VOL,100)==VOL,STICK,COLORRED,LINETHICK1; DRAWTEXT(百日地量,VOL-16.5,'百日地量'),COLORRED; DRAWTEXT(CROSS(KKHF21,KKHF11),VOL,'关注')COLORFF44FF; MAV5:MA(VOL,5),COLORYELLOW; MAV10:MA(VOL,10),COLORFF33FF; MAV135:MA(VOL,135),COLORRED,LINETHICK2; 图片示例 风险提示:本指标公式仅作为知识分享,供交流学习使用,不构成任何投资建议,不作为投资依据。 |
|