在线检测未来函数

通达信顾比操盘线主图指标公式

来源:Internet,编辑:股旁网,2025-01-24

本文指标含有选股公式如下:
股旁网此处内容已被隐藏,请输入验证码查看内容。
验证码:
请关注本站微信公众号,回复“88”,获取验证码。
提示:在微信里搜索“股旁网”或者微信扫描右侧二维码。

获利筹码:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),NODRAW;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;
DRAWKLINE(H,O,L,C);
均线25:=MA(CLOSE,25);
均线43:=MA(CLOSE,43);
均线50:=MA(CLOSE,50),COLOR0000FF;
均线88:=MA(CLOSE,88);
N8:=STRCAT(CON2STR(YEAR,0),'年');
Y8:=STRCAT(CON2STR(MONTH,0),'月');
R8:=STRCAT(CON2STR(DAY,0),'日');
K:=BARSLAST(CURRBARSCOUNT=120);
GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));
筹码D:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));
KJ:=GD-筹码D;
GD4:=IF(CURRBARSCOUNT<=120/30,GD,DRAWNULL);
低:=IF(CURRBARSCOUNT<=120/30,筹码D,DRAWNULL),COLORFFFF00;
高:=IF(CURRBARSCOUNT<=120/30,GD,DRAWNULL),COLOR00FFFF;
支撑:=IF(CURRBARSCOUNT<=120/30,筹码D+KJ*0.191,DRAWNULL),COLOR00FFFF;
强势:=IF(CURRBARSCOUNT<=120/30,筹码D+KJ*0.382,DRAWNULL),COLORFF00FF;
突破:=IF(CURRBARSCOUNT<=120/30,筹码D+KJ/2,DRAWNULL),COLOR0000FF;
警示:=IF(CURRBARSCOUNT<=120/30,筹码D+KJ*0.618,DRAWNULL),COLORCYAN;
压力:=IF(CURRBARSCOUNT<=120/30,筹码D+KJ*0.809,DRAWNULL),COLORGREEN;
建仓:=ZIG(3,6);
筹码卖:=MA(建仓,2);
STICKLINE(建仓>筹码卖 AND O>=C,C,O,-1,0),COLORRED;
STICKLINE(建仓>筹码卖 AND O>=C,L,H,0,0),COLORRED;
STICKLINE(建仓 < 筹码卖 AND O<=C,O,C,-1,1),COLORCYAN;
STICKLINE(建仓 < 筹码卖 AND O<=C,O,L,0,1),COLORCYAN;
STICKLINE(建仓 < 筹码卖 AND O<=C,C,H,0,1),COLORCYAN;
AH:=HHV(H,60);
飞龙筹码O:=LLV(L,60);
A0:=(AH-飞龙筹码O)/21;
A01:=C>REF(C,4);
NT:=BARSLASTCOUNT(A01);
筹码11:=NT=9;
筹码13:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(筹码11>0,9) OR BACKSET(筹码13>0,NT))*NT;
DRAWTEXT(AY>0,H+1.1*A0,VAR2STR(AY,0)),COLORYELLOW;
DRAWTEXT(NT=9,H+1.1*A0,'9'),COLORGREEN;
DRAWTEXT(NT=13,H+1.1*A0,'13'),COLORGREEN;
DRAWTEXT(NT=18,H+1.1*A0,'18'),COLORGREEN;
B1:=C<REF(C,4);
NT0:=BARSLASTCOUNT(B1);
筹码21:=NT0=9 ;
筹码23:=ISLASTBAR AND BETWEEN(NT0,5,8);
AY1:=(BACKSET(筹码21>0,9) OR BACKSET(筹码23>0,NT0))*NT0;
DRAWTEXT(AY1>0,L-1*A0,VAR2STR(AY1,0)),COLORLIGREEN;
DRAWTEXT(NT0=9,H+1.1*A0,'9'),COLORYELLOW;
DRAWTEXT(NT0=13,H+1.1*A0,'13'),COLORYELLOW;
DRAWTEXT(NT0=18,H+1.1*A0,'18'),COLORYELLOW;
N11:=2,200,13;
UR00:=2,200,6;
LR0:=2,200,6;
TC01:=IF(H=HHV(H,8*UR00),H,DRAWNULL);
TC02:=CONST(BARSLAST(TC01=H))+1;
UPPER:=CONST(IF(TC02=1,H,REF(H,TC02-1)));
BC1:=IF(L=LLV(L,8*LR0),L,DRAWNULL);
BC2:=CONST(BARSLAST(BC1=L))+1;
LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));
LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;
HP:=CURRBARSCOUNT<=TC02 AND H=UPPER;
NOD:=(IF(TC02>BC2,TC02,BC2)-IF(TC02>BC2,BC2,TC02));
LR1:=FORCAST(C,NOD+1);
NP:=IF(CURRBARSCOUNT<=MAX(BC2,TC02),CONST(IF(MIN(TC02,BC2)=1,LR1,REF(LR1,MIN(TC02,BC2)-1))),DRAWNULL),POINTDOT,COLORRED;
LR2:=SLOPE(C,NOD+1);
LR3:=CONST(IF(MIN(TC02,BC2)=1,LR2,REF(LR2,MIN(TC02,BC2)-1)));
FP:=NP-LR3*(NOD),POINTDOT,COLORYELLOW;
EQU:=(NP+FP)/2,POINTDOT,COLORWHITE;
AD:=Abs(NP-FP);
DBL0:=BARSLAST(BC1!=DRAWNULL)+1;
DBH:=BARSLAST(TC01!=DRAWNULL)+1;
BSP:=IF(BC2>TC02,DBL0,DBH)-1;
LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);
AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND H>LRL,H,LRL);
AT2:=HHV(AT1-LRL,MAX(BC2,TC02));
AT3:=CONST(BARSLAST(AT1-LRL=AT2));
AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));
AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)));
捉妖筹码:=LRL+AT5;
捉妖筹码K1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND L<LRL,L,LRL);
捉妖筹码K2:=HHV(LRL-捉妖筹码K1,MAX(BC2,TC02));
捉妖筹码K3:=CONST(BARSLAST(LRL-捉妖筹码K1=捉妖筹码K2));
捉妖筹码K4:=CONST(IF(捉妖筹码K3=0,H,REF(H,捉妖筹码K3)));
捉妖筹码K5:=CONST(IF(捉妖筹码K3=0,LRL-捉妖筹码K1,REF(LRL-捉妖筹码K1,捉妖筹码K3)));
捉妖筹码L:=LRL-捉妖筹码K5;
RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC02)-10,捉妖筹码,CONST(REF(捉妖筹码,MIN(BC2,TC02)-11)));
RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC02)-10,捉妖筹码L,CONST(REF(捉妖筹码L,MIN(BC2,TC02)-11)));
中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLORBBBBBB;
上轨:IF(NP>FP,IF(捉妖筹码<=RH,捉妖筹码,DRAWNULL),IF(捉妖筹码>=RL,捉妖筹码,DRAWNULL)),COLORFF0000;
下轨:IF(NP>FP,IF(捉妖筹码L<=RH,捉妖筹码L,DRAWNULL),IF(捉妖筹码L>=RL,捉妖筹码L,DRAWNULL)),COLORFF00FF;
飞龙筹码1:=(REF(HIGH,3) = HHV(HIGH,((2 * 3) + 1)));
飞龙筹码2:=FILTER(飞龙筹码1,3);
飞龙筹码3:=BACKSET(飞龙筹码2,(3 + 1));
飞龙筹码4:=FILTER(飞龙筹码3,3);
飞龙筹码5:=(REF(LOW,3) = LLV(LOW,((2 * 3) + 1)));
飞龙筹码6:=FILTER(飞龙筹码5,3);
飞龙筹码7:=BACKSET(飞龙筹码6,(3 + 1));
飞龙筹码8:=FILTER(飞龙筹码7,3);
飞龙筹码9:=((REF(LLV(LOW,(2 * 3)),1) + REF(HHV(HIGH,(2 * 3)),1)) / 2);
飞龙筹码10:=((HIGH + LOW) / 2);
飞龙筹码11:=(((飞龙筹码4 AND NOT((飞龙筹码8 AND (飞龙筹码9 >= 飞龙筹码10)))) OR BARSTATUS) OR (BARSCOUNT(CLOSE) = 1));
飞龙筹码12:=(飞龙筹码8 AND NOT((飞龙筹码4 AND (飞龙筹码9 < 飞龙筹码10))));
飞龙筹码13:=(飞龙筹码4 AND NOT((飞龙筹码8 AND (飞龙筹码9 >= 飞龙筹码10))));
飞龙筹码14:=(REF(BARSLAST(飞龙筹码11),1) + 1);
飞龙筹码15:=BACKSET((飞龙筹码11 AND (COUNT(飞龙筹码12,飞龙筹码14) > 0)),LLVBARS(IF(飞龙筹码12,LOW,10000),飞龙筹码14));
飞龙筹码16:=(飞龙筹码15 > REF(飞龙筹码15,1));
飞龙筹码17:=BACKSET(飞龙筹码16,2);
飞龙筹码18:=(飞龙筹码17 > REF(飞龙筹码17,1));
飞龙筹码19:=((飞龙筹码18 OR BARSTATUS) OR (BARSCOUNT(CLOSE) = 1));
飞龙筹码20:=(REF(BARSLAST(飞龙筹码19),1) + 1);
飞龙筹码21:=BACKSET((飞龙筹码19 AND (COUNT(飞龙筹码13,飞龙筹码20) > 0)),HHVBARS(IF(飞龙筹码13,HIGH,0),飞龙筹码20));
飞龙筹码22:=(飞龙筹码21 > REF(飞龙筹码21,1));
飞龙筹码23:=BACKSET(飞龙筹码22,2);
飞龙筹码24:=(飞龙筹码23 > REF(飞龙筹码23,1));
飞龙筹码25:=BACKSET(BARSTATUS,(BARSLAST(飞龙筹码18) + 1));
飞龙筹码26:=(飞龙筹码25 > REF(飞龙筹码25,1));
飞龙筹码27:=BACKSET(BARSTATUS,(BARSLAST(飞龙筹码24) + 1));
飞龙筹码28:=(飞龙筹码27 > REF(飞龙筹码27,1));
底0:REF(LOW,BARSLAST(飞龙筹码26)),COLORLIRED;
筹码顶0:REF(HIGH,BARSLAST(飞龙筹码28)),COLORLIGREEN;
DRAWTEXT(CURRBARSCOUNT=3,筹码顶0,STRCAT(('压:'),CON2STR(筹码顶0,2))),COLORLIGREEN;
DRAWTEXT(CURRBARSCOUNT=5,底0,STRCAT(('支:'),CON2STR(底0,2))),COLORLIRED;
DRAWLINE(飞龙筹码28,HIGH,飞龙筹码26,筹码顶0,1),COLORLIGREEN,LINETHICK1;
DRAWLINE(飞龙筹码26,LOW,飞龙筹码28,底0,1),COLORLIRED,LINETHICK1;
飞龙筹码O0:=SUMBARS(V,CAPITAL*1);
飞龙筹码O1:=SUM(COST(10),飞龙筹码O0)/飞龙筹码O0;
飞龙筹码O2:=SUM(COST(20),飞龙筹码O0)/飞龙筹码O0;
飞龙筹码O3:=SUM(COST(30),飞龙筹码O0)/飞龙筹码O0;
飞龙筹码O4:=SUM(COST(40),飞龙筹码O0)/飞龙筹码O0;
飞龙筹码O5:=SUM(COST(50),飞龙筹码O0)/飞龙筹码O0;
筹码成本2:=(5*飞龙筹码O1+4*飞龙筹码O2+3*飞龙筹码O3+2*飞龙筹码O4+飞龙筹码O5)/15,COLOR0080FF,DOTLINE;
筹码成本1:REFDATE(筹码成本2,DATE),COLORLIGRAY,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=30,筹码成本1,STRCAT('庄本:',CON2STR(筹码成本1,2))),COLORGRAY;
筹码成妖趋势:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK1,COLORRED,DOTLINE;
STICKLINE(筹码成妖趋势>LOW AND 筹码成妖趋势<HIGH,筹码成妖趋势,MIN(MIN(OPEN,CLOSE),筹码成妖趋势),2,1),COLOR00CCFF;
STICKLINE(筹码成妖趋势>MIN(C,O) AND 筹码成妖趋势<MAX(C,O),筹码成妖趋势,MIN(OPEN,CLOSE),2,1),COLOR00CCFF;
STICKLINE(筹码成妖趋势>HIGH,OPEN,CLOSE,2,1),COLOR00CCFF;
ZYG30:=PEAKBARS(3,15,1)<10;
ZYG50:=IF(ZYG30=1,2,0);
筹码顶1:= IF(ZYG50=2,2,0);
筹码顶A:=IF(筹码顶1>REF(筹码顶1,1),2,0),COLORGREEN;
DRAWICON(筹码顶A=2,H*1.02,2);
AR1:=EMA(OPEN,7);
AR2:=EMA(AR1,21);
AR3:=crOSS(AR1,AR2);
AR5:=EMA(SMA((CLOSE-LLV(LOW,20))/(HHV(HIGH,16)-LLV(LOW,20))*100,8,1),3);
筹码短买:=IF(TROUGHBARS(1,6,1)=0 AND HIGH>LOW+0,2,0),COLORRED;
DRAWICON(筹码短买=2,L*0.98,1);
底:DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),H,''),LINETHICK2,COLORYELLOW;
DRAWICON(底,L*0.99,9);
筹码顶:DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),H,''),LINETHICK2,COLORYELLOW;
DRAWICON(筹码顶,H*1.01,15);
筹码顶点:=IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORLIBLUE,DOTLINE;
低点:=IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORLIRED,DOTLINE;
STICKLINE(cci>=200 AND H>=筹码顶点,C+(O-C)/3,C,2,0),COLORGREEN;
STICKLINE(CCI<=100 AND L<=低点,C-(C-O)/3,C,2,0),COLORLIMAGENTA;
H1:=REF(C,9)=HHV(C,2*9+1);
H2:=FILTER(H1,9);
H3:=BACKSET(H2,9+1);
H4:=FILTER(H3,9);
小压:=REF(C*0.999,BARSLAST(H4)),COLORWHITE,NODRAW;
H5:=ABS(REF(小压,1)-小压)>小压*0.075 AND H4;
小压2:REF(C*0.999,BARSLAST(H5)),COLORLIGREEN,DOTLINE;
STICKLINE(C*0.999,小压2,小压2,1,1), COLORLIGREEN;
AB1:=REF(H,5)=HHV(H,2*5+1);
B91:=FILTER(AB1,5);
CD1:=BACKSET(B91,5+1);
D1:=FILTER(CD1,5);
A2:=REF(L,5)=LLV(L,2*5+1);
B92:=FILTER(A2,5);
CD2:=BACKSET(B92,5+1);
D2:=FILTER(CD2,5);
E1:=(REF(LLV(L,2*5),1)+REF(HHV(H,2*5),1))/2; E2:=(H+L)/2;
H91:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1;
L1:=(D2 AND NOT(D1 AND E1<E2));
H92:=D1 AND NOT(D2 AND E1>=E2);
X1:=REF(BARSLAST(H91),1)+1; F1:=BACKSET(H91 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);
T91:=BACKSET(ISLASTBAR,BARSLAST(LD)+1); U1:=T91>REF(T91,1);
T92:=BACKSET(U1,REF(BARSLAST(LD),1)+2);
U2:=T92>REF(T92,1);
短期支撑:DRAWLINE(U2,L,U1,L,1),COLORRED LINETHICK2;
DRAWICON(U1,L*0.99,38);
DRAWICON(U2,L*0.99,38);
HIGHN:=10;
LOWN:=10;
HIGHDISPLAY:=0;
LOWDISPLAY:=0;
ZGDISPLAY:=0;
MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H*1.02,2);
筹码DD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(筹码DD,REF(H,筹码DD),H);
DINGBUTS:=IF(筹码DD,REF(GDTS,筹码DD),GDTS);DINGBU1:=REF(DINGBU,筹码DD+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,筹码DD+1);
GDCS2:=CONST(DINGBUTS1);
次高:DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLORYELLOW,DOTLINE;
极高:DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORLIBLUE,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=1,次高,CON2STR(次高,1)),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1,极高,CON2STR(极高,1)),COLORLIBLUE;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
筹码D1:=BARSLAST(CC1);
筹码DTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(筹码D1,REF(L,筹码D1),L);
筹码DTS1:=IF(筹码D1,REF(筹码DTS,筹码D1),筹码DTS);
筹码DCS1:=CONST(筹码DTS1);
ZDB:=REF(YDB,筹码D1+1);
筹码DTS2:=REF(筹码DTS1,筹码D1+1);
筹码DCS2:=CONST(筹码DTS2);
低点支撑:DRAWLINE(CURRBARSCOUNT=筹码DCS2,L,CURRBARSCOUNT=筹码DCS1,L,1) COLORRED,DOTLINE;
飞龙筹码K:=6;
A11:=REF(HIGH,6)=HHV(HIGH,2*飞龙筹码K+1); B11:=FILTER(A11,飞龙筹码K); C11:=BACKSET(B11,飞龙筹码K+1); D11:=FILTER(C11,飞龙筹码K);
A22:=REF(LOW,飞龙筹码K)=LLV(LOW,2*飞龙筹码K+1); B22:=FILTER(A22,飞龙筹码K); C22:=BACKSET(B22,飞龙筹码K+1); D22:=FILTER(C22,飞龙筹码K);
E21:=(REF(LLV(LOW,2*飞龙筹码K),1)+REF(HHV(HIGH,2*飞龙筹码K),1))/2;
E22:=(HIGH+LOW)/2;
H21:=(D11 AND NOT(D22 AND E21>=E22)) OR BARSTATUS OR BARSCOUNT(CLOSE)=1;
L21:=(D22 AND NOT(D11 AND E21<E22));
X21:=REF(BARSLAST(H21),1)+1; F21:=BACKSET(H21 AND COUNT(L21,X21)>0,LLVBARS(IF(L21,LOW,10000),X21));
G21:=F21>REF(F21,1);
I21:=BACKSET(G21,2);
LD1:=I21>REF(I21,1);
UU:=BACKSET(BARSTATUS,BARSLAST(LD1)+1);
VV:=UU>REF(UU,1);
近低:REF(L,BARSLAST(VV)),COLORLIRED,LINETHICK1,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=2,近低,STRCAT('',CON2STR(近低,1))),COLORLIRED;
飞龙筹码P2:=REF(CLOSE,1);
飞龙筹码P3:=REF(CLOSE,1)*1.097;
飞龙筹码P4:=CLOSE>=飞龙筹码P3 AND CLOSE=HIGH;
STICKLINE(飞龙筹码P4,CLOSE-(CLOSE-OPEN)/3,CLOSE,2,0),COLORRED;
飞龙筹码P5:=IF(DTPRICE(REF(CLOSE,1),0.1)=CLOSE,2,0);
STICKLINE(飞龙筹码P5,CLOSE+(OPEN-CLOSE)/3,CLOSE,2,0),COLORBLUE;
MV5:=MA(V,5);
破5:=CROSS(MV5,V);
断量:DRAWLINE(破5 AND CURRBARSCOUNT<9,C,REF(破5,1),REF(C,1),1),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,断量,STRCAT((''),CON2STR(断量,1))),COLORWHITE;
P:=21;
飞龙突破1:=IF(L=LLV(L,P),L,DRAWNULL);
飞龙突破2:=CONST(BARSLAST(飞龙突破1!=DRAWNULL));
飞龙突破3:=CONST(IF(飞龙突破2=0,H,REF(H,飞龙突破2)));
飞龙突破4:=CONST(REF(BARSLAST(H>飞龙突破3),飞龙突破2+1)+飞龙突破2+1);
飞龙突破5:=CONST(IF(飞龙突破4=0,H,REF(H,飞龙突破4)));
飞龙突破6:=CONST(REF(BARSLAST(H>飞龙突破5),飞龙突破4+1)+飞龙突破4+1);
顾比:IF(CURRBARSCOUNT<=飞龙突破2+21,CONST(IF(飞龙突破6=0,H,REF(H,飞龙突破6))),DRAWNULL),DOTLINE,COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=20,顾比,STRCAT(('顾比:'),CON2STR(顾比,1))),COLORYELLOW;
下降压力线:DRAWLINE(CURRBARSCOUNT<20 AND HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORGRAY ,LINETHICK1,DOTLINE;
AA05:MA(C,5),LINETHICK1,COLOR0099CC;
五日乖离率:=(C-AA05)/AA05*100;
BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3);
IF(BB05>30 AND AA05>REF(AA05,1),AA05,DRAWNULL),LINETHICK1,COLORRED;
IF(BB05<0 AND AA05<REF(AA05,1),AA05,DRAWNULL),LINETHICK1,COLORGREEN;
AA10:=MA(C,10),COLOR00FF00;
AA20:=MA(C,20);
BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;
AA30:=MA(C,30);
三拾日乖离率:=(C-AA30)/AA30*100;
ZYG1:=(AA20-AA30)>REF((AA20-AA30),1)
AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);
ZYG2:=(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND AA30<REF(AA30,1);
BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;
强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);
加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1) AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;
清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>AA30 OR O>AA30) AND AA05<REF(AA05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND AA10<REF(AA10,1),10);
DRAWTEXT(加仓,LOW*0.99,'加'),COLORMAGENTA;
JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND AA10>REF(AA10,1) ;
减仓:=FILTER(JC,10);
MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;
建仓入:=FILTER(MR,10);
DRAWTEXT(减仓,HIGH*1.02,'减'),COLORCYAN;
DRAWTEXT(建仓入,LOW*0.98,'建仓'),COLORYELLOW;
DRAWTEXT(强势狙击,LOW*0.98,'启'),COLORYELLOW;
MID:=MA(C,15)*1.005;
ZYGT1:=POW((C-MID),2);
ZYGT2:=MA(ZYGT1,15);
ZYGT3:=SQRT(ZYGT2);
UPPER1:=MID+2*ZYGT3;
LOWER1:=MID-2*ZYGT3;
月线:=REF(UPPER1,1),COLOR00FFFF;
DRAWICON(CLOSE>揽月线,LOW*0.98,36);
A3:=MA(C,3);
A5:=MA(C,5);
指标:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;
进入启动区:= 65,COLOR00FF00;
快速拉伸区:=80,COLORWHITE,LINETHICK1;
DRAWTEXT(CROSS(指标,快速拉伸区),L*0.99,'爆') ,COLORYELLOW;
筹码集中区:= 50,COLOR00FF00;
抄底阶段:=20,COLORWHITE,LINETHICK2;
DRAWTEXT(CROSS(指标,抄底阶段),L*0.99,'抄') ,COLORWHITE;
DRAWTEXT(CROSS(快速拉伸区,指标),H*1.01,'卖') ,COLORGREEN;
STICKLINE(CROSS(指标,快速拉伸区),C,O,2,0),COLORYELLOW;
主力线:=SMA(100*(C-LLV(LOW,45))/(HHV(H,45)-LLV(LOW,45)),5,2);
DRAWTEXT(CROSS(主力线,42),L*0.97,'建'),COLORRED;

通达信顾比操盘线主图指标公式

相关文章