【通达信源码分享】精品指标公式-看量高抛低吸

通达信免费指标 04-01 阅读:653 评论:0

30-1G0241F312.png

公式源码:


TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));


MTIME:=MOD(FROMOPEN,TOTAL);


CTIME:=IF(MTIME<0.5,TOTAL,MTIME);


VVOL:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*TOTAL/CTIME,DRAWNULL),NODRAW;


STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0;


VOLUME:VOL,VOLSTICK;


MAVOL1:MA(VOLUME,M1);


MAVOL2:MA(VOLUME,M2);


{警示牌设置}


警示牌:=1;


高:=REFDATE(HHV(H,180),DATE)*1.05;


低:=REFDATE(LLV(L,180),DATE)*0.95;


A11:=MA(C,18);


A12:=MA(C,50);


A13:=MA(C,89);


A14:=IF((MA(C,180)<=高 AND MA(C,180)>=低) OR C>=MA(C,180),MA(C,180),DRAWNULL);


{—————股性判断—————}


牛股:=ISLASTBAR AND A11>A12 AND A12>A13 AND A13>IF(A14=DRAWNULL,0,A14) AND C>A11 OR ISLASTBAR AND A11>A12 AND C>=A11;


猴股:=ISLASTBAR AND A11>A12 AND C<A11 ;


熊股:=ISLASTBAR AND IF(A14=DRAWNULL,A12<A13 AND C<A13,A13<A14 AND C<A14) OR ISLASTBAR AND A11<A12;


DRAWGBK(警示牌=1 AND 牛股,0,0,0,'牛股',0);


DRAWGBK(警示牌=1 AND 猴股,0,0,0,'猴股',0);


DRAWGBK(警示牌=1 AND 熊股,0,0,0,'熊股',0);


 


ZLCM:=EMA(WINNER(CLOSE)*70,3);


SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);


ZSHTL:=SHCM/(ZLCM+SHCM)*100;


ZZLKP:=ZLCM/(ZLCM+SHCM)*100;


ZCMZL:=MA(ZLCM+SHCM,13);


ZZLJJ:=EMA(ZZLKP,89);


DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);


RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;


K1:=SMA(RSV,10,1);


D1:=SMA(K1,5,1);


KK:=INTPART(K1);


DD:=INTPART(D1);


TFXXS:=KK+DD;


T1:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=1);


T2:=CONST( ZCMZL>REF(ZCMZL,1) AND DKB=0);


T3:=CONST( ZCMZL=REF(ZCMZL,1));


T4:=CONST( ZCMZL<REF(ZCMZL,1) AND DKB=1);


T5:=CONST( ZCMZL<REF(ZCMZL,1) AND DKB=0);


T6:=CONST(TFXXS<=50 );


T7:=CONST(TFXXS>=160 );


T8:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS<=100 );


T9:=CONST( TFXXS>50 AND TFXXS<160 AND TFXXS>=REF(TFXXS,1) AND TFXXS>100);


T10:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1) AND TFXXS>100 );


T11:=CONST(TFXXS>50 AND TFXXS<160 AND TFXXS<REF(TFXXS,1) AND TFXXS<=100 );


T12:=CONST( ZSHTL>90 );


T13:=CONST( ZZLKP>75 );


T14:=CONST(CROSS(ZCMZL,ZZLJJ) AND ZZLKP>ZZLJJ AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );


T15:=CONST(CROSS(ZCMZL,ZZLKP) AND ZZLKP>ZZLJJ AND ZZLKP<ZSHTL AND ZZLKP>10 AND ZZLJJ>REF(ZZLJJ,1) AND ZCMZL>REF(ZCMZL,1) );


T16:=CONST( CROSS(ZCMZL,ZSHTL) AND ZSHTL>ZZLKP AND ZCMZL>REF(ZCMZL,1));


T17:=CONST( CROSS(ZCMZL,100) AND ZCMZL>REF(ZCMZL,1));


T18:=CONST(REF(ZSHTL,1)>90 AND ZSHTL<90 );


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,0+0.73,0);


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,0+0.03,0);


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(T8=1,TS17+0.03,TS17);


DRAWTEXT_FIX(T1,0.46,TS1,0,'★监控:主力增仓'),COLOR8080FF;


DRAWTEXT_FIX(T2,0.46,TS2,0,'★监控:主力减仓'),COLOR8080FF;


DRAWTEXT_FIX(T3,0.46,TS3,0,'★监控:多空平衡'),COLORGRAY;


DRAWTEXT_FIX(T4,0.46,TS4,0,'★监控:主力回补'),COLOR8080FF;


DRAWTEXT_FIX(T5,0.46,TS5,0,'★监控:主力出逃'),COLORGREEN;


DRAWTEXT_FIX(T6,0.66,TS6,0,'★决策:买入风险'),COLORYELLOW;


DRAWTEXT_FIX(T7,0.66,TS7,0,'★决策:卖出风险'),COLORCYAN;


DRAWTEXT_FIX(T8,0.66,TS8,0,'★决策:追涨博弈'),COLOR8080FF;


DRAWTEXT_FIX(T9,0.66,TS9,0,'★决策:稳健持股'),COLOR8080FF;


DRAWTEXT_FIX(T10,0.66,TS10,0,'★决策:盘跌减仓'),COLORWHITE;


DRAWTEXT_FIX(T11,0.66,TS11,0,'★决策:杀跌空仓'),COLORGREEN;


DRAWTEXT_FIX(T12,0.26,TS12,0,'☆特别:筑底散兵坑 '),COLOR66FFCC;


DRAWTEXT_FIX(T13,0.26,TS13,0,'☆特别:铸顶风险区'),COLORCYAN;


DRAWTEXT_FIX(T14,0.26,TS14,0,'☆特别:穿越主力'),COLOR8080FF;


DRAWTEXT_FIX(T15,0.26,TS15,0,'☆特别:穿越主力'),COLORYELLOW;


DRAWTEXT_FIX(T16,0.26,TS16,0,'☆特别:穿越散户  '),COLORGREEN;


DRAWTEXT_FIX(T17,0.26,TS17,0,'☆特别:全盘穿越  '),COLOR3399FF;


DRAWTEXT_FIX(T18,0.26,TS18,0,'☆特别:神秘黑洞 '),COLOR9966FF;


 


VAR01:=(2*C+H+L)/4;


VAR02:=LLV(LOW,34);


VAR03:=HHV(HIGH,34);


AA:EMA((VAR01-VAR02)/(VAR03-VAR02)*100,5)NODRAW,COLORRED;


BB:EMA(AA,5)NODRAW,COLOR00FFFF;


STICKLINE(AA<20,2,7,1,1)NODRAW,COLORFF00FF;


STICKLINE(AA>80,92,97,1,1)NODRAW,COLOR00FFFF;


 


DRAWICON(AA>=BB,105,38);


DRAWICON(BB>AA,105,39);


 


 


M2:=EMA(C,2);


M18:=EMA(C,18);


买点:=IF(CROSS(M18,M2),5,0* 10000);


RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;


VARB2:=(RSVV/2+22)*1;


Q:=EMA(VOL,13);


Y:=EMA(AMOUNT,13);


S:=((Y /Q) / 100);


X:=(((CLOSE -S) / S) * 100);


F:=((X < (0)) AND ZXNH);


XQ:=F AND RSVV<VARB2-2;


突击:买点 AND XQ ,STICK,COLOR000000;


DRAWICON(突击>0,突击,23);


 


AX:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);


AXMA:=MA(AX,5);


ANA:=PLOYLINE(CROSS(AX,AXMA),AXMA);


ANB:=PLOYLINE(CROSS(AXMA,AX),AXMA);


MD:=CROSS(AX,AXMA) AND ((ANB>REF(ANB,1) AND ANB>ANA AND AXMA<=0)


OR ((AXMA<=-45 OR CROSS(AXMA,-45)) AND (ANB<-60


OR LLV("KDJ.J",3)<=-49) AND ANB>0));


AQZ:=COUNT(CROSS(AX,AXMA),ANA<REF(ANA,5) AND ANB>REF(ANB,5));


阴买:MD AND AQZ AND C<O,STICK,COLOR000000;


DRAWICON(阴买>0,阴买,34);


短期0:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));


中期0:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));


中长期0:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));


长期0:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));


四线归一:短期0<6 AND 中期0<6 AND 中长期0<6 AND 长期0<6,STICK,COLOR000000;


DRAWICON(四线归一>0,四线归一,5);


 


短转点:(((SMA(C,2,1)-(SMA(L,21,2)*0.95))*10)<2 AND SMA(C,2,1)>REF(SMA(C,2,1),1) AND REF(SMA(C,2,1),2)>REF(SMA(C,2,1),1))=1,STICK,COLOR000000;


 


DRAWICON(短转点>0,短转点,23);


版权声明

本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!

服务热线

18020657357

微信客服

微信客服