开通微头条福利,缠论爱好者的福音,为大家送上手机通达信,缠论看盘的指标源码,并带有分型进场和止盈提示,效果还是不错的,笔者自用指标。 点赞/转发/关注/私信,跟海神一起交流缠论。 指标源码: MA10:=MA(C,5); MA20:=MA(C,21); JX:=CROSS(MA10,MA20); SX:=CROSS(MA20,MA10); LL:=IF(REFX(JX,1),LLV(L,BARSLAST(SX)+1),DRAWNULL); HH:=IF(REFX(SX,1),HHV(H,BARSLAST(JX)+1),DRAWNULL); LD:=IF(MA10<MA20 AND L=REFX(LL,BARSNEXT(LL)),L,0); HD:=IF(MA10>MA20 AND H=REFX(HH,BARSNEXT(HH)),H,0); DRAWLINE(MA10>MA20 AND H=REFX(HH,BARSNEXT(HH)),H,MA10<MA20 AND L=REFX(LL,BARSNEXT(LL)),L,0); DRAWLINE(MA10<MA20 AND L=REFX(LL,BARSNEXT(LL)),L,MA10>MA20 AND H=REFX(HH,BARSNEXT(HH)),H,0); LC0:=REF(L,BARSLAST(LD)); LC1:=IF(SUM(LD>0,0)>=2,REF(LC0,BARSLAST(LD)+1),0); LC2:=IF(SUM(LD>0,0)>=3,REF(LC1,BARSLAST(LD)+1),0); LC3:=IF(SUM(LD>0,0)>=4,REF(LC2,BARSLAST(LD)+1),0); LC4:=IF(SUM(LD>0,0)>=5,REF(LC3,BARSLAST(LD)+1),0); LC5:=IF(SUM(LD>0,0)>=6,REF(LC4,BARSLAST(LD)+1),0); LC6:=IF(SUM(LD>0,0)>=7,REF(LC5,BARSLAST(LD)+1),0); LC7:=IF(SUM(LD>0,0)>=8,REF(LC6,BARSLAST(LD)+1),0); LC8:=IF(SUM(LD>0,0)>=9,REF(LC7,BARSLAST(LD)+1),0); HC0:=REF(H,BARSLAST(HD)); HC1:=IF(SUM(HD>0,0)>=2,REF(HC0,BARSLAST(HD)+1),0); HC2:=IF(SUM(HD>0,0)>=3,REF(HC1,BARSLAST(HD)+1),0); HC3:=IF(SUM(HD>0,0)>=4,REF(HC2,BARSLAST(HD)+1),0); HC4:=IF(SUM(HD>0,0)>=5,REF(HC3,BARSLAST(HD)+1),0); HC5:=IF(SUM(HD>0,0)>=6,REF(HC4,BARSLAST(HD)+1),0); HC6:=IF(SUM(HD>0,0)>=7,REF(HC5,BARSLAST(HD)+1),0); HC7:=IF(SUM(HD>0,0)>=8,REF(HC6,BARSLAST(HD)+1),0); HC8:=IF(SUM(HD>0,0)>=9,REF(HC7,BARSLAST(HD)+1),0); P:=21; WH1:=IF(L=LLV(L,P),L,DRAWNULL); WH2:=CONST(BARSLAST(WH1!=DRAWNULL)); WH3:=CONST(IF(WH2=0,H,REF(H,WH2))); WH5:=CONST(IF(WH4=0,H,REF(H,WH4))); WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1); 超跌进场:IF(CURRBARSCOUNT<=WH2+21,CONST(IF(WH4=0,H,REF(H,WH4))),DRAWNULL),COLORCB21BE; DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),超跌进场,'进场线'),COLORCB21BE; H1:=IF(H=HHV(H,P),H,DRAWNULL); H2:=CONST(BARSLAST(H1!=DRAWNULL)); H3:=CONST(IF(H2=0,L,REF(L,H2))); H4:=CONST(REF(BARSLAST(L<H3),H2+1)+H2+1); H5:=CONST(IF(H4=0,L,REF(L,H4))); H6:=CONST(REF(BARSLAST(L<H5),H4+1)+H4+1); IF(CURRBARSCOUNT<=H2+1,IF(H=HHV(H,P),H,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORBLUE; 止盈:IF(CURRBARSCOUNT<=H2+21,CONST(IF(H4=0,L,REF(L,H4))),DRAWNULL),COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止盈,'止盈线'),COLORCB21BE; |
|
来自: dushikuaile > 《股票理论技术》