操盘线公式指标-精品通达信指标公式源码分享

通达信免费指标 09-12 阅读:74 评论:0

image.png

M:=32   ;

P2:=110 ;    

VAR1:=LLV(LOW,13);   

VAR2:=HHV(HIGH,13);   

VAR3:=SMA((CLOSE-VAR1)/(VAR2-VAR1)*100,5,1);   

VAR4:=SMA((VAR2-CLOSE)/(VAR2-VAR1)*100,5,1);   

DRAWBAND(VAR3,RGB(155,50,50),50,RGB(0,100,50));   

主力:VAR3,COLORRED,LINETHICK2;   

散户:VAR4,COLORGREEN,LINETHICK2;   

VAR5:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*100;   

操作:=EMA(VAR5,3),COLORYELLOW;   

STICKLINE(C,90,90,1,0),COLOR3C3CFF;   

STICKLINE(C,85,85,1,0),COLOR008080;   

STICKLINE(C,50,50,1,0),COLORYELLOW;   

STICKLINE(C,10,10,1,0),COLORCYAN;   

STICKLINE(C,15,15,1,0),COLORC0C0C0;   

N1:=7;    

界:=38,COLORFF3311;     

加仓线:=51,COLORFF1155;    

LC:=REF(CLOSE,1);    

X:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORYELLOW,LINETHICK2;    

魔鬼:=DRAWLINE(X>=HHV(X,N1),X,X<=LLV(X,N1),X,1),COLOR00FF00;   

TJ1:=X=魔鬼;   

TJ2:=X<REF(X,1);   

DRAWICON(TJ1 AND TJ2,X,1);   

VAR2M:=(HIGH+LOW+CLOSE*2)/4;   

VAR3M:=EMA(VAR2M,21);   

VAR4M:=STD(VAR2M,21);   

VAR5M:=((VAR2M-VAR3M)/VAR4M*100+200)/4;   

VAR6:=(EMA(VAR5M,5)-25)*1.56;   

AK:=EMA(VAR6,2)*1.22;   

AD1:=EMA(AK,2);   

注意:=CROSS(AD1,AK);   

DRAWTEXT(注意,散户,'变');      

RWSV:= (CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;   

FASTK:=SMA(RWSV,3,1);   

龙K:=SMA(FASTK,2,1);   

龙D:=SMA(龙K,5,1);   

狗:=LLV(LOW,10);   

年:=HHV(H,25);   

到来:=EMA((C-狗)/(年-狗)*4,4);   

恭喜:STICKLINE(CROSS(到来,0.3),3,33,3,0), COLOR1EFF1E,LINETHICK1;     

QVAR1B:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);   

QVAR1C:=SMA(QVAR1B,13,8);     

超级短线:SMA(QVAR1C,13,8),COLORFFFFFF;     

轴:=0,COLOR4B4B4B;   

PJJ:=DMA((H + L + C * 2) / 4,0.9);   

JJ:=REF(EMA(PJJ,3),1);   

QJJ:=VOL / ((H - L) * 2 - ABS(C - O));   

XVL:=IF(C > O,QJJ * (H - L),IF(C < O,QJJ * (H - O + (C - L)),VOL / 2)) + IF(C > O,0 - QJJ * (H - C + (O - L)),IF(C < O,0 - QJJ * (H - L),0 - VOL / 2));   

ZLL:=VOL / CAPITAL;   

HSL1:=IF(ZLL > 10,10,ZLL);   

HSL:=XVL / 20 / 1.15;   

攻击流量:=HSL * 0.55 + REF(HSL,1) * 0.33 + REF(HSL,2) * 0.22;   

GJJ:=EMA(攻击流量,8);   

LLJX:=EMA(攻击流量,1);   

净入:LLJX,COLORC875B7,NODRAW;   

ZJLL:=REF(LLJX,1);   

QZJJ:=(((LLJX - ZJLL) / ZJLL) * 100);   

大单:HSL / 1000,COLOR9B37FF,NODRAW;   

周流量:SUM(LLJX,5),COLORAFAF61,NODRAW;    

RSV2:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;   

K2:=SMA(RSV2,3,1);   

D2:=SMA(K2,3,1);   

J2:=3*K2-2*D2;   

X2:=LLV(J2,2)=LLV(J2,8);   

Y:=IF(CROSS(J2,REF(J2+0.01,1)) AND X2 AND J2<20,30,0);   

主力1:=EMA( (CLOSE-MA(CLOSE,3))/MA(CLOSE,3),2);   

散户1:=EMA( (CLOSE-MA(CLOSE,20))/MA(CLOSE,20),7);     

STICKLINE(CROSS(J2,REF(J2+0.01,1)) AND X2 AND J2<20,3,29,1,0),COLOR428484;    

VQAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-   

3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);   

VQAR2:=6;    

CC:=CROSS(VQAR1,VQAR2);    

DRAWTEXT(CC,12,'买!'),COLORRED;    

STICKLINE(CC,3,25,1,0),COLORRED;      

MTM:=C-REF(C,1);   

DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);    

买2:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));   

DRAWTEXT(买2,7,'吃'),COLORFFFFFF;    

STICKLINE(买2,3,21,1,0),COLORFFFFFF;      

VAR8:= LLV(L,5)=LLV(L,45) AND C>=O*1.04;   

VAR9:= C>(REF(H,1)+REF(L,1))/2;     

VAR10:= VAR8 AND VAR9;   

龙:= VAR10;   

VAR14:= LLV(L,1)=LLV(L,35) AND C>=O*1.04;     

AA1:= AMOUNT/VOL;BB1:= LOW<AA1*0.9;CC1:= (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;DD1:= LOW<MA(CLOSE,5)*0.921;EE1:= VOL<MA(VOL,5)*1.5;FF1:= BB1 AND CC1 AND DD1 AND EE1;   

上:= SMA(LOW,5,2)*0.96;     

RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:= SMA(RSV,3,1);D:= SMA(K,3,1);J:= 3*K-2*D;   

二十天最低跌幅:= HHV(CLOSE,20)/LLV(CLOSE,20);     

短期底部:= LLV(HIGH,30)*0.93;     

长期底部:= LLV(HIGH,30);   

XZ:= LLV(J,2)=LLV(J,8);   

买1:= CROSS(J,REF(J+0.01,1)) AND XZ AND J<20 AND 二十天最低跌幅>=1.3;   

买2Q:= FILTER(FF1,3);买3:= VAR14;选底:= FILTER(LOW<=上 AND HIGH>=短期底部 AND CLOSE>=长期底部 AND CLOSE/OPEN>1.03,3);   

选买:= FILTER(买2Q OR 选底,3) AND COUNT(买1+买3+龙,3)>0 ;   

DRAWTEXT(选买,4,'赚'),COLORA600A6;    

STICKLINE(选买,3,19,1,0),COLORA600A6;    

R1:=(((MA(CLOSE,5))-CLOSE)/CLOSE>3/100);   

R2:=((MA(CLOSE,10))-(MA(CLOSE,5)))/(MA(CLOSE,5))>0.03;   

R3:=(LLV(CLOSE,20)=LLV(CLOSE,30));   

大:=(R1 AND R2 AND R3);   

大A:=FILTER(大,5);   

买:STICKLINE(大A,15,0,1,0),COLORYELLOW;   

VAAR1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;   

VAAR2:=SMA(VAAR1,3,1);    

波:=SMA(VAAR2,3,1);   

段:=SMA(波,3,1);   

VAAR9:=CROSS(段,波) AND 波>80;   

STICKLINE(FILTER(VAAR9,5)=1,85,91,3,0),COLORGREEN;    

AA:=REF(CLOSE,1);   

BBB:=SMA(MAX(CLOSE-AA,0),5,1)/SMA(ABS(CLOSE-AA),5,1)*1000;   

HHH:=BBB-LLV(BBB,10);   

SS:=(MA(HHH,2)*3+HHH*13)/16;   

短线买点:=IF(SS>13,MA(SS,2),SS);   

Z:=21;    

STICKLINE(CROSS(短线买点,21),3,12,1,0),,COLOR0080FF;   

VQAR15:=(C+H+O+L)/4;   

买入:=XMA(VQAR15,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;   

备:=REF(买入,1)>REF(C,1)&&C>REF(C,1);   

好:=买入>REF(买入,5)&&L<买入&&C>O&&C>REF(C,1);   

DRAWICON(备||好,7,1);   

VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;   

DRAWICON(CROSS(82,VARR1),88,2);   

DRAWTEXT(CROSS(82,VARR1),35,'减'),COLORYELLOW;    

BQ:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));    

DRAWICON(BQ>REF(BQ,1) AND KDJ. J <30 AND COUNT(BQ>REF(BQ,1),2)=1 ,1,11);   

DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);   

DEA:=EMA(DIFF,9);   

MACD:=2*(DIFF-DEA);   

C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));   

D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);   

DRAWICON(FILTER(D1>0,5),90,12);   

DRAWTEXT(FILTER(D1>0,5),92,'M顶'),COLORRED;{MACD顶背离}   

C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));   

D12:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));   

DRAWICON(FILTER(D12>0,5),91,12);   

DRAWTEXT(FILTER(D12>0,5),92,'K顶'),COLORFFFFFF;{KDJ顶背离}   

C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));   

D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));   

DRAWICON(FILTER(D3>0,5),93,12),;   

DRAWTEXT(FILTER(D3>0,5),94,'R顶'),COLORFF00FF;{RSI顶背离};   

VARQ1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);   

VARQ2:=REF(VARQ1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);   

VARQ3:=REF(VARQ2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);   

VARQ4:=REF(VARQ3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);   

VARQ5:=REF(VARQ4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);   

VARQ6:=REF(VARQ5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);   

VARQ7:=REF(VARQ6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);   

VARQ8:=REF(VARQ7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);   

VARQ9:=REF(VARQ8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);   

VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);   

VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);   

VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);   

VARQ10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);   

VARQ11:=REF(VARQ10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);   

VARQ12:=REF(VARQ11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);   

VARQ13:=REF(VARQ12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);   

VARQ14:=REF(VARQ13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);   

VARQ15:=REF(VARQ14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);   

VARQ16:=REF(VARQ15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);   

VARQ17:=REF(VARQ16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);   

VARQ18:=REF(VARQ17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);   

三平底翻金:=(REF(VARD OR VARE OR VARF OR VARQ10 OR VARQ11 OR VARQ12 OR VARQ13 OR VARQ14 OR VARQ15 OR VARQ16 OR VARQ17 OR VARQ18,1))   

            AND VAR1;   

主力启动线:=MA(V,5),COLORFFFFFF;   

主力洗盘线:=MA(V,35),COLOR00FFFF;   

资金异动线:=MA(V,135),COLORFF0000;   

{----------------------------买卖参考--------------------------------------}   

出击:=(CROSS(主力启动线,资金异动线) OR ((主力洗盘线 > 资金异动线) AND CROSS(主力启动线,主力洗盘线))),COLORYELLOW;   

启动:=(主力启动线>REF(主力启动线,1) AND (CROSS(VOL,主力启动线) AND (REF(VOL,1)<REF(资金异动线,1) OR REF(VOL,2)<REF(资金异动线,2)))),COLOR45AAEE;   

成立:=三平底翻金 AND (出击 OR 启动);   

STICKLINE(成立,3,6,1,0),COLORBB5E00;   

DRAWTEXT(88>0 AND REF(O,1)/REF(C,1)>1.04 AND REF(L,1)<=688 AND O>REF(C,1)AND C<REF(O,1)AND C/O>=1.01,14,'★'),LINETHICK1;   

DRAWTEXT(C-O>=0 AND O/L>1.05 AND L<=LLV(L,20),14,'★'),COLORBLUE, LINETHICK1;   

五:=MA(C,5);   

十:=MA(C,10);   

三十:=MA(C,30),LINETHICK4;   

六十:=MA(C,60),LINETHICK3;   

A1Q:=MA(C,5)<MA(C,10) AND CROSS(C,MA(C,10)) AND V>MA(V,10) AND MA(C,5)>REF(MA(C,5),1);    

STICKLINE(A1Q=1,34,38,4,0),COLOR009999;   

STICKLINE(A1Q=1,34,38,2,0),COLOR00BBBB;   

STICKLINE(A1Q=1,34,38,1,0),COLOR00DDDD;   

STICKLINE(A1Q=1,30,38,0.3,0),COLOR00FFFF;   

DRAWTEXT(A1Q=1,36,'金指'),COLOR00FFFF;     

A2Q:=MA(C,10)>REF(MA(C,10),1) AND MA(C,5)>MA(C,10) AND V>MA(V,5) AND CROSS(C,MA(C,5));   

STICKLINE(A2Q=1,34,38,4,0),COLORD5D5D5;   

STICKLINE(A2Q=1,34,38,2,0),COLORD5D5D5;   

STICKLINE(A2Q=1,34,38,1,0),,COLORD5D5D5;   

STICKLINE(A2Q=1,30,38,0.3,0),COLORD5D5D5;   

DRAWTEXT(A2Q=1,37,'银指'),COLORFF00FF;


版权声明

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

服务热线

18020657357

微信客服

微信客服