通达信波段买卖主图指标源码分享

获利筹码: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));{高点}
DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低点}
KJ:=GD-DD;{高低点差值=分区高度}
GD4:=IF(CURRBARSCOUNT<=120/30,GD,DRAWNULL);
低:=IF(CURRBARSCOUNT<=120/30,DD,DRAWNULL),COLORFFFF00;
高:=IF(CURRBARSCOUNT<=120/30,GD,DRAWNULL),COLOR00FFFF;
支撑:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;
强势:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.382,DRAWNULL),COLORFF00FF;
突破:=IF(CURRBARSCOUNT<=120/30,DD+KJ/2,DRAWNULL),COLOR0000FF;
警示:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.618,DRAWNULL),COLORCYAN;
压力:=IF(CURRBARSCOUNT<=120/30,DD+KJ*0.809,DRAWNULL),COLORGREEN;


{DRAWTEXT(CURRBARSCOUNT=1,压力,CON2STR(压力,1)),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,警示,CON2STR(警示,1)),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=1,突破,CON2STR(突破,1)),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=1,强势,CON2STR(强势,1)),COLORFF00FF;
DRAWTEXT(CURRBARSCOUNT=1,支撑,CON2STR(支撑,1)),COLOR00FFFF;}


买:=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);
AL:=LLV(L,60);
A0:=(AH-AL)/21;
A01:=C>REF(C,4);
NT:=BARSLASTCOUNT(A01);
TJ11:=NT=9;
TJ13:=ISLASTBAR AND BETWEEN(NT,5,8);
AY:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>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);
TJ21:=NT0=9 ;
TJ23:=ISLASTBAR AND BETWEEN(NT0,5,8);
AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>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)));
ATL:=LRL+AT5;
UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND L<LRL,L,LRL);
UT2:=HHV(LRL-UT1,MAX(BC2,TC02));
UT3:=CONST(BARSLAST(LRL-UT1=UT2));
UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));
UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));
UTL:=LRL-UT5;
RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC02)-10,ATL,CONST(REF(ATL,MIN(BC2,TC02)-11)));
RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC02)-10,UTL,CONST(REF(UTL,MIN(BC2,TC02)-11)));
中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLORBBBBBB;
上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORFF0000;
下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLORFF00FF;


SJ1:=(REF(HIGH,3) = HHV(HIGH,((2 * 3) + 1)));
SJ2:=FILTER(SJ1,3);
SJ3:=BACKSET(SJ2,(3 + 1));
SJ4:=FILTER(SJ3,3);
SJ5:=(REF(LOW,3) = LLV(LOW,((2 * 3) + 1)));
SJ6:=FILTER(SJ5,3);
SJ7:=BACKSET(SJ6,(3 + 1));
SJ8:=FILTER(SJ7,3);
SJ9:=((REF(LLV(LOW,(2 * 3)),1) + REF(HHV(HIGH,(2 * 3)),1)) / 2);
SJ10:=((HIGH + LOW) / 2);
SJ11:=(((SJ4 AND NOT((SJ8 AND (SJ9 >= SJ10)))) OR BARSTATUS) OR (BARSCOUNT(CLOSE) = 1));
SJ12:=(SJ8 AND NOT((SJ4 AND (SJ9 < SJ10))));
SJ13:=(SJ4 AND NOT((SJ8 AND (SJ9 >= SJ10))));
SJ14:=(REF(BARSLAST(SJ11),1) + 1);
SJ15:=BACKSET((SJ11 AND (COUNT(SJ12,SJ14) > 0)),LLVBARS(IF(SJ12,LOW,10000),SJ14));
SJ16:=(SJ15 > REF(SJ15,1));
SJ17:=BACKSET(SJ16,2);
SJ18:=(SJ17 > REF(SJ17,1));
SJ19:=((SJ18 OR BARSTATUS) OR (BARSCOUNT(CLOSE) = 1));
SJ20:=(REF(BARSLAST(SJ19),1) + 1);
SJ21:=BACKSET((SJ19 AND (COUNT(SJ13,SJ20) > 0)),HHVBARS(IF(SJ13,HIGH,0),SJ20));
SJ22:=(SJ21 > REF(SJ21,1));
SJ23:=BACKSET(SJ22,2);
SJ24:=(SJ23 > REF(SJ23,1));
SJ25:=BACKSET(BARSTATUS,(BARSLAST(SJ18) + 1));
SJ26:=(SJ25 > REF(SJ25,1));
SJ27:=BACKSET(BARSTATUS,(BARSLAST(SJ24) + 1));
SJ28:=(SJ27 > REF(SJ27,1));
底0:REF(LOW,BARSLAST(SJ26)),COLORLIRED;
顶0:REF(HIGH,BARSLAST(SJ28)),COLORLIGREEN;
DRAWTEXT(CURRBARSCOUNT=3,顶0,STRCAT(('压:'),CON2STR(顶0,2))),COLORLIGREEN;
DRAWTEXT(CURRBARSCOUNT=5,底0,STRCAT(('支:'),CON2STR(底0,2))),COLORLIRED;
DRAWLINE(SJ28,HIGH,SJ26,顶0,1),COLORLIGREEN,LINETHICK1;
DRAWLINE(SJ26,LOW,SJ28,底0,1),COLORLIRED,LINETHICK1;


{庄家成本}
AL0:=SUMBARS(V,CAPITAL*1);
AL1:=SUM(COST(10),AL0)/AL0;
AL2:=SUM(COST(20),AL0)/AL0;
AL3:=SUM(COST(30),AL0)/AL0;
AL4:=SUM(COST(40),AL0)/AL0;
AL5:=SUM(COST(50),AL0)/AL0;
庄家成本2:=(5*AL1+4*AL2+3*AL3+2*AL4+AL5)/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;
{STICKLINE(成妖趋势>HIGH,HIGH,LOW,0,1),COLOR00CCFF;};


{快逃绿箭头}
VAR30:=PEAKBARS(3,15,1)<10;
VAR50:=IF(VAR30=1,2,0);
顶1:= IF(VAR50=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);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(H,DDD),H);
{顶部}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+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);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,DOTLINE;


TTT:=6;
A11:=REF(HIGH,6)=HHV(HIGH,2*TTT+1); B11:=FILTER(A11,TTT); C11:=BACKSET(B11,TTT+1); D11:=FILTER(C11,TTT);
A22:=REF(LOW,TTT)=LLV(LOW,2*TTT+1); B22:=FILTER(A22,TTT); C22:=BACKSET(B22,TTT+1); D22:=FILTER(C22,TTT);
E21:=(REF(LLV(LOW,2*TTT),1)+REF(HHV(HIGH,2*TTT),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;


{涨跌停颜色}
X_2:=REF(CLOSE,1);
X_3:=REF(CLOSE,1)*1.097;
X_4:=CLOSE>=X_3 AND CLOSE=HIGH;
STICKLINE(X_4,CLOSE-(CLOSE-OPEN)/3,CLOSE,2,0),COLORRED;
X_5:=IF(DTPRICE(REF(CLOSE,1),0.1)=CLOSE,2,0);
STICKLINE(X_5,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;
VAR1:=(AA20-AA30)>REF((AA20-AA30),1)
AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);
VAR2:=(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(清仓 ,HIGH*1.02,'清'),COLORGREEN;}
DRAWTEXT(强势狙击,LOW*0.98,'启'),COLORYELLOW;


MID:=MA(C,15)*1.005;
VART1:=POW((C-MID),2);
VART2:=MA(VART1,15);
VART3:=SQRT(VART2);
UPPER1:=MID+2*VART3;
LOWER1:=MID-2*VART3;
揽月线:=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;




未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:PEAK
该公式包含未来函数:PEAKBARS
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
该公式包含未来函数:BACKSET
该公式包含未来函数:WINNER
该公式包含未来函数:COST
该公式包含未来函数:CAPITAL
该公式包含未来函数:XMA

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

输出获利筹码:IF(收盘价计算的获利盘比例,收盘价计算的获利盘比例*100,0),NODRAW
Z1赋值:STRCAT(HYBLOCK,' ')
Z2赋值:STRCAT(Z1,DYBLOCK)
Z3赋值:STRCAT(Z2,' ')
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),画黄色
DRAWKLINE(H,O,L,C)
均线25赋值:收盘价的25日简单移动平均
均线43赋值:收盘价的43日简单移动平均
均线50赋值:收盘价的50日简单移动平均,COLOR0000FF
均线88赋值:收盘价的88日简单移动平均
N8赋值:STRCAT(CON2STR(YEAR,0),'年')
Y8赋值:STRCAT(CON2STR(MONTH,0),'月')
R8赋值:STRCAT(CON2STR(DAY,0),'日')
K赋值:上次CURRBARSCOUNT=120距今天数
GD赋值:CONST(IF(ISLASTBAR=1,K日内H最高值,0))
{高点}DD赋值:CONST(IF(ISLASTBAR=1,K日内L最低值,0))
{低点}KJ:=GD-DD
如果CURRBARSCOUNT<=120/30返回GD否则返回DRAWNULL
如果CURRBARSCOUNT<=120/30返回DD否则返回DRAWNULL
如果CURRBARSCOUNT<=120/30返回GD否则返回DRAWNULL
如果CURRBARSCOUNT<=120/30返回DD+KJ*0.191否则返回DRAWNULL
如果CURRBARSCOUNT<=120/30返回DD+KJ*0.382否则返回DRAWNULL
如果CURRBARSCOUNT<=120/30返回DD+KJ/2否则返回DRAWNULL
如果CURRBARSCOUNT<=120/30返回DD+KJ*0.618否则返回DRAWNULL
如果CURRBARSCOUNT<=120/30返回DD+KJ*0.809否则返回DRAWNULL
{DRAWTEXT(CURRBARSCOUNT=1,压力,CON2STR(压力,1)),画绿色
DRAWTEXT(CURRBARSCOUNT=1,警示,CON2STR(警示,1)),画青色
DRAWTEXT(CURRBARSCOUNT=1,突破,CON2STR(突破,1)),COLOR0000FF
DRAWTEXT(CURRBARSCOUNT=1,强势,CON2STR(强势,1)),COLORFF00FF
DRAWTEXT(CURRBARSCOUNT=1,支撑,CON2STR(支撑,1)),COLOR00FFFF
}买赋值:ZIG(3,6)
卖赋值:买的2日简单移动平均
当满足条件买>卖 AND O>=C时,在C和O之间画柱状线
当满足条件买>卖 AND O>=C时,在L和H之间画柱状线
当满足条件买 < 卖 AND O<=C时,在O和C之间画柱状线
当满足条件买 < 卖 AND O<=C时,在O和L之间画柱状线
当满足条件买 < 卖 AND O<=C时,在C和H之间画柱状线
{九转}AH赋值:60日内H最高值
AL赋值:60日内L最低值
A0赋值:(AH-AL)/21
A01:=C>4日前的C
NT赋值:BARSLASTCOUNT(A01)
TJ11赋值:NT=9
TJ13赋值:ISLASTBAR AND BETWEEN(NT,5,8)
AY赋值:(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,NT))*NT
DRAWTEXT(AY>0,H+1.1*A0,VAR2STR(AY,0)),画黄色
当满足条件NT=9时,在H+1.1*A0和'9'位置书写文字
当满足条件NT=13时,在H+1.1*A0和'13'位置书写文字
当满足条件NT=18时,在H+1.1*A0和'18'位置书写文字
B1赋值:C<4日前的C
NT0:=BARSLASTCOUNT(B1)
TJ21赋值:NT0=9
TJ23赋值:ISLASTBAR AND BETWEEN(NT0,5,8)
AY1:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,NT0))*NT0
DRAWTEXT(AY1>0,L-1*A0,VAR2STR(AY1,0)),COLORLIGREEN
当满足条件NT0=9时,在H+1.1*A0和'9'位置书写文字
当满足条件NT0=13时,在H+1.1*A0和'13'位置书写文字
当满足条件NT0=18时,在H+1.1*A0和'18'位置书写文字
N11赋值:2,200,13
UR00赋值:2,200,6
LR0赋值:2,200,6
TC01赋值:IF(H=8*UR00日内H最高值,H,DRAWNULL)
TC02赋值:CONST(上次TC01=H距今天数)+1
UPPER赋值:CONST(IF(TC02=1,H,TC02-1日前的H))
BC1赋值:IF(L=8*LR0日内L最低值,L,DRAWNULL)
BC2赋值:CONST(上次BC1=L距今天数)+1
LOWER赋值:CONST(IF(BC2=1,L,BC2-1日前的L))
LP赋值:CURRBARSCOUNT<=BC2 AND L=LOWER
HP赋值:CURRBARSCOUNT<=TC02 AND H=UPPER
如果TC02>BC2返回TC02否则返回BC2
LR1赋值:C的NOD+1日线性回归预测值
NP赋值:IF(CURRBARSCOUNT<=BC2和TC02较大值,CONST(IF(TC02和BC2的较小值=1,LR1,REF(LR1,TC02和BC2的较小值-1))),DRAWNULL),POINTDOT,画红色
LR2赋值:SLOPE(C,NOD+1)
LR3赋值:CONST(IF(TC02和BC2的较小值=1,LR2,REF(LR2,TC02和BC2的较小值-1)))
FP赋值:NP-LR3*(NOD),POINTDOT,画黄色
EQU赋值:(NP+FP)/2,POINTDOT,画白色
AD赋值:NP-FP的绝对值
DBL0赋值:上次BC1!=DRAWNULL距今天数+1
DBH赋值:上次TC01!=DRAWNULL距今天数+1
如果BC2>TC02返回DBL0否则返回DBH
如果NP>FP返回FP+AD/NOD*BSP否则返回FP-AD/NOD*BSP
AT1赋值:IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND H>LRL,H,LRL)
AT2赋值:BC2和TC02较大值日内AT1-LRL最高值
AT3赋值:CONST(上次AT1-LRL=AT2距今天数)
AT4赋值:CONST(IF(AT3=0,H,AT3日前的H))
AT5赋值:CONST(IF(AT3=0,AT1-LRL,AT3日前的AT1-LRL))
ATL赋值:LRL+AT5
UT1赋值:IF(BETWEEN(CURRBARSCOUNT,BC2,TC02) AND LUT2赋值:BC2和TC02较大值日内LRL-UT1最高值
UT3赋值:CONST(上次LRL-UT1=UT2距今天数)
UT4赋值:CONST(IF(UT3=0,H,UT3日前的H))
UT5赋值:CONST(IF(UT3=0,LRL-UT1,UT3日前的LRL-UT1))
UTL赋值:LRL-UT5
RH赋值:IF(CURRBARSCOUNT>=BC2和TC02的较小值-10,ATL,CONST(REF(ATL,BC2和TC02的较小值-11)))
RL赋值:IF(CURRBARSCOUNT>=BC2和TC02的较小值-10,UTL,CONST(REF(UTL,BC2和TC02的较小值-11)))
输出中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLORBBBBBB
输出上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORFF0000
输出下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLORFF00FF
SJ1赋值:(3日前的最高价 = HHV(最高价,((2 * 3) + 1)))
SJ2赋值:SJ1的3过滤
SJ3赋值:BACKSET(SJ2,(3 + 1))
SJ4赋值:SJ3的3过滤
SJ5赋值:(3日前的最低价 = LLV(最低价,((2 * 3) + 1)))
SJ6赋值:SJ5的3过滤
SJ7赋值:BACKSET(SJ6,(3 + 1))
SJ8赋值:SJ7的3过滤
SJ9赋值:((REF(LLV(最低价,(2 * 3)),1) + REF(HHV(最高价,(2 * 3)),1)) / 2)
SJ10:=((最高价 + 最低价) / 2)
SJ11:=(((SJ4 AND NOT((SJ8 AND (SJ9 >= SJ10)))) OR BARSTATUS) OR (收盘价的有效数据周期数 = 1))
SJ12:=(SJ8 AND NOT((SJ4 AND (SJ9 < SJ10))))
SJ13:=(SJ4 AND NOT((SJ8 AND (SJ9 >= SJ10))))
SJ14:=(REF(上次SJ11距今天数,1) + 1)
如果SJ12返回最低价否则返回10000
SJ16:=(SJ15 > 1日前的SJ15)
SJ17:=BACKSET(SJ16,2)
SJ18:=(SJ17 > 1日前的SJ17)
SJ19:=((SJ18 OR BARSTATUS) OR (收盘价的有效数据周期数 = 1))
SJ20:=(REF(上次SJ19距今天数,1) + 1)
如果SJ13返回最高价否则返回0
SJ22:=(SJ21 > 1日前的SJ21)
SJ23:=BACKSET(SJ22,2)
SJ24:=(SJ23 > 1日前的SJ23)
SJ25:=BACKSET(BARSTATUS,(上次SJ18距今天数 + 1))
SJ26:=(SJ25 > 1日前的SJ25)
SJ27:=BACKSET(BARSTATUS,(上次SJ24距今天数 + 1))
SJ28:=(SJ27 > 1日前的SJ27)
输出底0:REF(最低价,上次SJ26距今天数),COLORLIRED
输出顶0:REF(最高价,上次SJ28距今天数),COLORLIGREEN
DRAWTEXT(CURRBARSCOUNT=3,顶0,STRCAT(('压:'),CON2STR(顶0,2))),COLORLIGREEN
DRAWTEXT(CURRBARSCOUNT=5,底0,STRCAT(('支:'),CON2STR(底0,2))),COLORLIRED
DRAWLINE(SJ28,最高价,SJ26,顶0,1),COLORLIGREEN,LINETHICK1
DRAWLINE(SJ26,最低价,SJ28,底0,1),COLORLIRED,LINETHICK1
{庄家成本}AL0:=V累加至CAPITAL*1的天数
AL1:=SUM(获利盘为10%的成本分布,AL0)/AL0
AL2:=SUM(获利盘为20%的成本分布,AL0)/AL0
AL3:=SUM(获利盘为30%的成本分布,AL0)/AL0
AL4:=SUM(获利盘为40%的成本分布,AL0)/AL0
AL5:=SUM(获利盘为50%的成本分布,AL0)/AL0
庄家成本2赋值:(5*AL1+4*AL2+3*AL3+2*AL4+AL5)/15,COLOR0080FF,DOTLINE
输出庄家成本1:日期REF日期庄家成本2日,COLORLIGRAY,DOTLINE
DRAWTEXT(CURRBARSCOUNT=30,庄家成本1,STRCAT('庄本:',CON2STR(庄家成本1,2))),COLORGRAY
成妖趋势赋值:XXL的25日简单移动平均,25)-(XXH的25日简单移动平均,25)-XXL的25日简单移动平均,25))*1,LINETHICK1,画红色,DOTLINE
STICKLINE(成妖趋势>最低价 AND 成妖趋势<最高价,成妖趋势,开盘价和收盘价的较小值,成妖趋势),2,1),COLOR00CCFF
STICKLINE(成妖趋势>C和O的较小值 AND 成妖趋势当满足条件成妖趋势>最高价时,在开盘价和收盘价之间画柱状线
当满足条件成妖趋势>最高价时,在最高价和最低价之间画柱状线
}
{快逃绿箭头}VAR30赋值:PEAKBARS(3,15,1)<10
如果VAR30=1返回2否则返回0
如果VAR50=2返回2否则返回0
顶A赋值:IF(顶1>1日前的顶1,2,0),画绿色
当满足条件顶A=2时,在H*1.02和2之间画图标
{买点红箭头}AR1赋值:开盘价的7日指数移动平均
AR2赋值:AR1的21日指数移动平均
AR3赋值:AR1上穿AR2
AR5赋值:EMA(SMA((收盘价-20日内最低价最低值)/(16日内最高价最高值-20日内最低价最低值)*100,8,1),3)
短买赋值:IF(TROUGHBARS(1,6,1)=0 AND 最高价>最低价+0,2,0),画红色
当满足条件短买=2时,在L*0.98和1之间画图标
输出{顶底}底:DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),H,''),LINETHICK2,画黄色
当满足条件底时,在L*0.99和9之间画图标
输出顶:DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),H,''),LINETHICK2,画黄色
当满足条件顶时,在H*1.01和15之间画图标
顶点:=IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, 上次CURRBARSCOUNT=60距今天数),1)),DRAWNULL),COLORLIBLUE,DOTLINE
低点:=IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, 上次CURRBARSCOUNT=60距今天数),1)),DRAWNULL),COLORLIRED,DOTLINE
STICKLINE(CCI>=200 AND H>=顶点,C+(O-C)/3,C,2,0),画绿色
STICKLINE(CCI<=100 AND L<=低点,C-(C-O)/3,C,2,0),COLORLIMAGENTA
{小压}H1赋值:9日前的C=2*9+1日内C最高值
H2赋值:H1的9过滤
H3赋值:BACKSET(H2,9+1)
H4赋值:H3的9过滤
小压赋值:REF(C*0.999,上次H4距今天数),画白色,NODRAW
H5赋值:1日前的小压-小压的绝对值>小压*0.075 AND H4
小压2:REF(C*0.999,上次H5距今天数),COLORLIGREEN,DOTLINE
当满足条件C*0.999时,在小压2和小压2之间画柱状线
{双低三角}AB1赋值:5日前的H=2*5+1日内H最高值
B91赋值:AB1的5过滤
CD1赋值:BACKSET(B91,5+1)
D1赋值:CD1的5过滤
A2赋值:5日前的L=2*5+1日内L最低值
B92赋值:A2的5过滤
CD2赋值:BACKSET(B92,5+1)
D2赋值:CD2的5过滤
E1赋值:(REF(2*5日内L最低值,1)+REF(2*5日内H最高值,1))/2
E2赋值:(H+L)/2
H91赋值:(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR C的有效数据周期数=1
L1赋值:(D2 AND NOT(D1 AND E1 H92赋值:D1 AND NOT(D2 AND E1>=E2)
X1赋值:REF(上次H91距今天数,1)+1
如果L1返回L否则返回10000
G1赋值:F1>1日前的F1
I1赋值:BACKSET(G1,2)
LD赋值:I1>1日前的I1
T91赋值:BACKSET(ISLASTBAR,上次LD距今天数+1)
U1赋值:T91>1日前的T91
T92赋值:BACKSET(U1,REF(上次LD距今天数,1)+2)
U2赋值:T92>1日前的T92
短期输出支撑:DRAWLINE(U2,L,U1,L,1),画红色 LINETHICK2
当满足条件U1时,在L*0.99和38之间画图标
当满足条件U2时,在L*0.99和38之间画图标
HIGHN赋值:10
LOWN赋值:10
最高价DISPLAY赋值:0
最低价DISPLAY赋值:0
ZGDISPLAY赋值:0
MADISPLAY赋值:0
AA赋值:HIGHN日前的H=2*HIGHN+1日内H最高值
QY赋值:BACKSET(AA,HIGHN+1)
CC赋值:QY的HIGHN过滤 AND H=HIGHN+1日内H最高值
当满足条件CC时,在H*1.02和2之间画图标
DDD赋值:上次CC距今天数
如果CC返回CURRBARSCOUNT否则返回0
DINGBU赋值:IF(DDD,DDD日前的H,H)
{顶部}DINGBUTS:=IF(DDD,DDD日前的GDTS,GDTS)
DINGBU1赋值:DDD+1日前的DINGBU
GDCS1:=CONST(DINGBUTS)
DINGBUTS1:=DDD+1日前的DINGBUTS
GDCS2:=CONST(DINGBUTS1)
次输出高:DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,GDCS2-1日前的H,1),画黄色,DOTLINE
极输出高:DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,GDCS1-1日前的H,1),COLORLIBLUE,DOTLINE
DRAWTEXT(CURRBARSCOUNT=1,次高,CON2STR(次高,1)),画黄色
DRAWTEXT(CURRBARSCOUNT=1,极高,CON2STR(极高,1)),COLORLIBLUE
AA1:=LOWN日前的L=2*LOWN+1日内L最低值
QY1:=BACKSET(AA1,LOWN+1)
CC1:=QY1的LOWN过滤 AND L=LOWN+1日内L最低值
DD1赋值:上次CC1距今天数
如果CC1返回CURRBARSCOUNT否则返回0
YDB赋值:IF(DD1,DD1日前的L,L)
DDTS1:=IF(DD1,DD1日前的DDTS,DDTS)
DDCS1赋值:CONST(DDTS1)
ZDB赋值:DD1+1日前的YDB
DDTS2:=DD1+1日前的DDTS1
DDCS2赋值:CONST(DDTS2)
低点输出支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) 画红色,DOTLINE
TTT赋值:6
A11赋值:6日前的最高价=2*TTT+1日内最高价最高值
B11:=A11的TTT过滤
C11赋值:BACKSET(B11,TTT+1)
D11:=C11的TTT过滤
A22:=TTT日前的最低价=2*TTT+1日内最低价最低值
B22赋值:A22的TTT过滤
C22赋值:BACKSET(B22,TTT+1)
D22:=C22的TTT过滤
E21:=(REF(2*TTT日内最低价最低值,1)+REF(2*TTT日内最高价最高值,1))/2
E22:=(最高价+最低价)/2
H21:=(D11 AND NOT(D22 AND E21>=E22)) OR BARSTATUS OR 收盘价的有效数据周期数=1
L21赋值:(D22 AND NOT(D11 AND E21X21赋值:REF(上次H21距今天数,1)+1
如果L21返回最低价否则返回10000
G21赋值:F21>1日前的F21
I21赋值:BACKSET(G21,2)
LD1赋值:I21>1日前的I21
UU赋值:BACKSET(BARSTATUS,上次LD1距今天数+1)
VV赋值:UU>1日前的UU
近输出低:REF(L,上次VV距今天数),COLORLIRED,LINETHICK1,DOTLINE
DRAWTEXT(CURRBARSCOUNT=2,近低,STRCAT('',CON2STR(近低,1))),COLORLIRED
{涨跌停颜色}X_2赋值:1日前的收盘价
X_3赋值:1日前的收盘价*1.097
X_4赋值:收盘价>=X_3 AND 收盘价=最高价
STICKLINE(X_4,收盘价-(收盘价-开盘价)/3,收盘价,2,0),画红色
X_5赋值:IF(DTPRICE(1日前的收盘价,0.1)=收盘价,2,0)
STICKLINE(X_5,收盘价+(开盘价-收盘价)/3,收盘价,2,0), 画蓝色
{断量}MV5赋值:V的5日简单移动平均
破5赋值:MV5上穿V
输出断量:DRAWLINE(破5 AND CURRBARSCOUNT<9,C,1日前的破5,1日前的C,1),画白色
DRAWTEXT(CURRBARSCOUNT=1,断量,STRCAT((''),CON2STR(断量,1))),画白色
{顾比}P赋值:21
擒股指标1赋值:IF(L=P日内L最低值,L,DRAWNULL)
擒股指标2赋值:CONST(上次擒股指标1!=DRAWNULL距今天数)
擒股指标3赋值:CONST(IF(擒股指标2=0,H,擒股指标2日前的H))
擒股指标4赋值:CONST(REF(上次H>擒股指标3距今天数,擒股指标2+1)+擒股指标2+1)
擒股指标5赋值:CONST(IF(擒股指标4=0,H,擒股指标4日前的H))
擒股指标6赋值:CONST(REF(上次H>擒股指标5距今天数,擒股指标4+1)+擒股指标4+1)
输出顾比:IF(CURRBARSCOUNT<=擒股指标2+21,CONST(IF(擒股指标6=0,H,擒股指标6日前的H)),DRAWNULL),DOTLINE,画黄色
DRAWTEXT(CURRBARSCOUNT=20,顾比,STRCAT(('输出顾比:'),CON2STR(顾比,1))),画黄色
下降压力线:DRAWLINE(CURRBARSCOUNT<20 AND 最高价>=10日内最高价最高值,最高价,最低价<=3日内最低价最低值,3日内最高价最高值,1),COLORGRAY ,LINETHICK1,DOTLINE
{牛股启动}AA05:C的5日简单移动平均,LINETHICK1,COLOR0099CC
五日乖离率赋值:(C-AA05)/AA05*100
BB05赋值:ATAN((AA05/1日前的AA05-1)*100)*180/3.1416
速度5赋值:SMA(EMA((AA05-1日前的AA05)/1日前的AA05,3)*100,3,1)
加速度5赋值:EMA((速度5-1日前的速度5),3)
IF(BB05>30 AND AA05>1日前的AA05,AA05,DRAWNULL),LINETHICK1,画红色
IF(BB05<0 AND AA05<1日前的AA05,AA05,DRAWNULL),LINETHICK1,画绿色
AA10:=C的10日简单移动平均,COLOR00FF00
AA20:=C的20日简单移动平均
BB10:=ATAN((AA10/1日前的AA10-1)*100)*180/3.1416
AA30:=C的30日简单移动平均
三拾日乖离率赋值:(C-AA30)/AA30*100
VAR1赋值:(AA20-AA30)>REF((AA20-AA30),1)AND AA20>REF(AA20,1) AND AA30>REF(AA30,1)
VAR2赋值:(AA30-AA20)BB30赋值:ATAN((AA30/1日前的AA30-1)*100)*180/3.1416
强势狙击:=FILTER(BB30>30 AND BB10>45 AND BB05上穿60,10)
加仓赋值:FILTER(统计5日满足BB05上穿30的天数>=1 AND AA05>1日前的AA05 AND 三拾日乖离率>1日前的三拾日乖离率 AND AA10>1日前的AA10 AND 加速度5>1日前的加速度5 AND 速度5>1日前的速度5 ,10)
清仓赋值:FILTER(统计5日满足30上穿BB05的天数>=1 AND (C>AA30 OR O>AA30) AND AA05<1日前的AA05 AND 三拾日乖离率<1日前的三拾日乖离率 AND AA10<1日前的AA10,10)
当满足条件加仓时,在最低价*0.99和'加'位置书写文字
JC赋值:0上穿五日乖离率 AND 三拾日乖离率<1日前的三拾日乖离率 AND AA10>1日前的AA10
减仓赋值:JC的10过滤
MR赋值:统计3日满足五日乖离率上穿0的天数>=1 AND 三拾日乖离率>1日前的三拾日乖离率 AND AA05>1日前的AA05 AND (C/1日前的C-1)*100>5 AND 1日前的C买入赋值:MR的10过滤
当满足条件减仓时,在最高价*1.02和'减'位置书写文字
当满足条件买入时,在最低价*0.98和'买'位置书写文字
当满足条件清仓 时,在最高价*1.02和'清'位置书写文字
当满足条件强势狙击时,在最低价*0.98和'启'位置书写文字
MID赋值:C的15日简单移动平均*1.005
VART1赋值:POW((C-MID),2)
VART2赋值:VART1的15日简单移动平均
VART3赋值:SQRT(VART2)
UPPER1:=MID+2*VART3
LOWER1:=MID-2*VART3
揽月线赋值:1日前的UPPER1,COLOR00FFFF
当满足条件收盘价>揽月线时,在最低价*0.98和36之间画图标
A3赋值:C的3日简单移动平均
A5赋值:C的5日简单移动平均
主力资金赋值:EMA(100*(C-34日内最低价最低值)/(34日内H最高值-34日内最低价最低值),3), 画红色,LINETHICK2
进入启动区赋值: 65,COLOR00FF00
快速拉伸区赋值:80,画白色,LINETHICK1
DRAWTEXT(主力资金上穿快速拉伸区,L*0.99,'爆') ,画黄色
筹码集中区赋值: 50,COLOR00FF00
抄底阶段赋值:20,画白色,LINETHICK2
DRAWTEXT(主力资金上穿抄底阶段,L*0.99,'抄') ,画白色
DRAWTEXT(快速拉伸区上穿主力资金,H*1.01,'减') ,画绿色
STICKLINE(主力资金上穿快速拉伸区,C,O,2,0),画黄色
主力线赋值:SMA(100*(C-45日内最低价最低值)/(45日内H最高值-45日内最低价最低值),5,2)
DRAWTEXT(主力线上穿42,L*0.97,'建'),画红色

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图