vartime:=if(year>=2050 and month>=11 and day>=07,0,1);
vardtime:=if(year=2050 and month=11 and day=06,1,0);
drawtext(vardtime,115,''),color008000;
drawtext(vardtime,100,''),color008000;
drawtext(vardtime,85,''),color008000;
drawtext(vardtime,70,''),color008000;
drawtext(vardtime,45,''),color008000;
qw1:=(high+low+close*2)/4*vartime;
qw3:=ema(qw1,10)*vartime;
qw4:=std(qw1,10)*vartime;
qw5:=(qw1-qw3)*100/qw4*vartime;
qw6:=ema(qw5,5)*vartime;
rk7:=ema(qw6,10)*vartime;
涨:ema(qw6,10)+100/2-5,linethick1,colorred;
跌:ema(涨,4),linethick1,colorffff34;
多线:if(cross(涨,跌) and 跌<-10,30,0),linethick1,colorff00ff;
空线:if(cross(跌,80),70,100),color0099ff,linethick1;
买1:ema(跌,4)*vartime,colorwhite;
买2:ema(买1,4)*vartime,colorgreen;
买m3:=ema(买2,4)*vartime,coloryellow;
买m4:=ema(买m3,4)*vartime,colorcc9900;
-10,pointdot,color888888,linethick2;
80,pointdot,color888888,linethick2;
stickline(涨<ref(涨,1)*vartime,涨,ma(涨,3),0,0 ),colorwhite;
stickline(涨<ref(涨,1)*vartime,涨,ma(涨,3),8,0 ),color008800;
stickline(涨<ref(涨,1)*vartime,涨,ma(涨,3),7,0 ),color009900;
stickline(涨<ref(涨,1)*vartime,涨,ma(涨,3),6,0 ),color00aa00;
stickline(涨<ref(涨,1)*vartime,涨,ma(涨,3),5,0 ),color00bb00;
stickline(涨<ref(涨,1)*vartime,涨,ma(涨,3),4,0 ),color00cc00;
stickline(涨<ref(涨,1)*vartime,涨,ma(涨,3),3,0 ),color00dd00;
stickline(涨<ref(涨,1)*vartime,涨,ma(涨,3),2,0 ),color00ee00;
stickline(涨<ref(涨,1)*vartime,涨,ma(涨,3),1,0 ),color00ff00;
stickline(涨> ref(涨,1),涨,ema(涨,3),0,0) ,color00bbff;
stickline(涨> ref(涨,1),涨,ema(涨,3),8,0) ,color0011ff;
stickline(涨> ref(涨,1),涨,ema(涨,3),7,0) ,color0022ff;
stickline(涨> ref(涨,1),涨,ema(涨,3),6,0) ,color0044ff;
stickline(涨> ref(涨,1),涨,ema(涨,3),5,0) ,color0066ff;
stickline(涨> ref(涨,1),涨,ema(涨,3),4,0) ,color0088ff;
stickline(涨> ref(涨,1),涨,ema(涨,3),3,0) ,color0099ff;
stickline(涨> ref(涨,1),涨,ema(涨,3),2,0) ,color00aaff;
stickline(涨> ref(涨,1),涨,ema(涨,3),1,0) ,color00bbff;
drawicon(多线,30,1),colorff00ff;
drawicon(cross(跌,80),70,2),colorgreen;
drawtext(cross(涨,跌) and 跌<20 and 跌>-10,40,'买入'),colorccff99;
drawtext(多线>0,-20,'看涨'),color0000ff;
var811:=sumbars(vol,finance(7)*100)*vartime;
var822:=dma(ema(close,12),sum(vol,5)/3/capital)*vartime;
var883:=(close-var822)/var822*100*vartime;
var884:=hhv(var883,var811)*vartime;
var885:=llv(var883,var811)*vartime;
var886:=(var883-var885)/(var884-var885)*100*vartime;
k:=sma(var886,3,1)*vartime;
d:=sma(k,3,1)*vartime;
j:=3*k-2*d;
ma1:=ma(j,3)*vartime,colorgreen;
stickline(filter(j>ma1 and j<=3,5)=1 and 跌<0,涨,涨+20,6,0),coloryellow;
drawtext(filter(j>ma1 and j<=3,5)=1 and 跌<0,60,'考虑买进'),colorffffff;
var1:=ma(close,152);
var2:=ma(close,194);
var3:=var2+2*std(close,170);
var4:=var1+2*std(close,170);
顶:(close>var3)*13*10,colorblue,linethick2;
var6:=ema(hhv(high,500),21);
var7:=ema(hhv(high,250),21);
var8:=ema(hhv(high,90),21);
var9:=ema(llv(low,500),21);
vara:=ema(llv(low,250),21);
varb:=ema(llv(low,90),21);
varc:=ema((var9*0.96+vara*0.96+varb*0.96+var6*0.558+var7*0.558+var8*0.558)/6,21);
vard:=ema((var9*1.25+vara*1.23+varb*1.2+var6*0.55+var7*0.55+var8*0.65)/6,21);
vare:=ema((var9*1.3+vara*1.3+varb*1.3+var6*0.68+var7*0.68+var8*0.68)/6,21);
varf:=ema((varc*3+vard*2+vare)/6*1.738,21);
var10:=ref(low,1);
var11:=sma(abs(low-var10),3,1)/sma(max(low-var10,0),3,1)*100;
var12:=ema(if(close*1.35<=varf,var11*10,var11/10),3);
var13:=llv(low,30);
var14:=hhv(var12,30);
var15:=if(ma(close,58),1,0);
var16:=ema(if(low<=var13,(var12+var14*2)/2,0),3)/618*var15;
var17:=if(var16>50,50,var16)/3.82*6;
var18:=hhv(high,30);
var19:=llv(low,30);
nl:=ema((close-var19)/(var18-var19)*100,5)/8*10,coloryellow,linethick2;
var1a:=(ema(amount,5)/ema(vol,5)/100-ema(amount,125)/ema(vol,125)/100)/(ema(amount,5)/ema(vol,5)/100)<-0.4;
var1b:=(close-llv(low,15))/(hhv(high,15)-llv(low,15))*100;
var1c:=sma(var1b,3,1);
var1d:=sma(var1c,3,1);
var1e:=(-100)*(hhv(high,52)-close)/(hhv(high,52)-llv(low,52));
var1f:=count(var1a,5)>=1 and (var1e<-99.9 or var1d<15 and var1c<12);
var20:=vol/finance(7);
var21:=100*winner(close);
var22:=ma(var21,3);
var23:=ma(var20,34);
var24:=var22<var23*100 and var21<var20;
var25:=sum(if(close>ref(close,1),1,0),0);
var26:=sumbars(vol,capital);
var27:=if(close>llv(close,var26),1,-1)*if(var25>llv(var25,var26),1,-1);
var28:=count(if(var27=-1,1,0)=1,8)>2;
var29:=(close-dma((3*high+low+open+2*close)/7,vol/(sum(amount,13)/(amount/vol/100)/100)))/dma((3*high+low+open+2*close)/7,vol/(sum(amount,13)/(amount/vol/100)/100))*100<-18;
var2a:=(close-min(ref(close,5)*0.865,ref(close,21)*0.772))/close<0.01;
var2b:=var28 and var29 and var2a;
var2c:=vol/capital>=0.02 and vol/capital<=0.2 and open=1.105;
var2d:=var2c and count(var2c,5)=1;
var2e:=var2b or var2c;
var2f:=ref(close,1);
var30:=sma(max(close-var2f,0),7,1)/sma(abs(close-var2f),7,1)*100;
var31:=sma(max(close-var2f,0),13,1)/sma(abs(close-var2f),13,1)*100;
var32:=var30<20 and var31<25;
var33:=var32;
var34:=sum(if(close>ref(close,1),vol,if(close<ref(close,1),0-vol,0)),0);
var35:=if(close>llv(close,var26),1,-1);
var36:=if(var34>llv(var34,var26),1,-1);
var37:=var35*var36;
var38:=if(var37=-1,1,0);
var39:=var38 and close=llv(close,120) and var21<var20;
var3a:=if(filter(var1f and var24 and var2e and var33 and var39>0,4),70,0);
drawtext(filter(var24 and var2e and var33 or var33 and var39,1),var2*4-13,'抄底'),colorred;
stickline(if(var24 and var2e and var33 or var33 and var39,35,0),0,var2*4-4,15,0);
var3b:=(close-llv(low,36))/(hhv(high,36)-llv(low,36))*100;
var3c:=sma(var3b,3,1);
var3d:=sma(var3c,3,1);
var3e:=sma(var3d,3,1);
var3f:=cross(var3d,var3e) and var3d<20;
var40:=cross(var3e,var3d) and var3d>80;
var41:=5;
drawtext(cross(var41,nl),30,'★做底'),colorwhite;
var42:="rsi#week"(12,12,12);
var43:="rsi#week"(55,55,55);
var44:=ref(close,1);
var45:=sma(max(close-var44,0),6,1)/sma(abs(close-var44),6,1)*100;
var46:=filter(var40,5)=1 and barslast(cross(var42,var43) and var42<=60)>=20;
stickline(cross(var42,var43) and var42<=60,0,var2*15+5,3,0),colormagenta;
drawtext(cross(var42,var43) and var42<=60,(var2*12+3)/1,'加仓'),colormagenta;
stickline(cross(84,var45),0,var2*15+3,5,1),colorgreen;
stickline(var46,var2*15+10,10,6,0.3),colorgreen ;
{if(cross(84,var45),drawtext(cross(84,var45),80,'防空警报'),if(var46,drawtext(var46,100,'减仓'),0)),colorgreen ,;}
drawtext(cross(84,var45),80,'防空警报'),colorgreen ,;
drawtext(var46,100,'减仓'),colorgreen ,;
var47:=ema(100*(close-llv(low,100))/(hhv(high,100)-llv(low,100)),5);
var48:=(close-llv(close,126))/(hhv(close,126)-llv(close,126))*100;
var49:=ema(close,2)-ema(close,150);
var4a:=ema(var49,100);
var4b:=2*(var49-var4a);
var4c:=pow(var4b,3)*0.1+pow(var4b,1);
var4d:=sqrt(sqrt(low*high*open*close));
var4e:=ema(var4d*0.97,3);
var4f:=(high+low+close)/3;
var50:=(var4f-ma(var4f,14))/(0.015*avedev(var4f,14));
var51:=if(var4b>0.1,var4c,0)*5;
var52:=llv(high,240);
var53:=100*(close-var52)/var52;
var54:=amount/vol;
var55:=ema((winner(close*1.1)-winner(close*0.9))*80,5);
var56:=indexc;
var57:=ma(var56,5);
var58:=ma(var56,20);
var59:=ma(var56,30);
var5a:=var59>var57*1.08 and var58>var57*1.055;
var5b:=var57>var56*1.03 and var58>var56*1.13;
var5c:=var5b;
var5d:=if(filter(var55<6,5)=1,1,0);
var5e:=(var5d and var53<-2.5 and var47<5 and var48=0)*60;
var5f:=var55<6 and var5c;
var60:=if(filter(var5f,1)=1,1,0)*80;
var61:=var5f and var5d*80;
var62:=cross(var51,2);
var63:=cross(var51,4);
var64:=(close-ma(close,6))/ma(close,6)*100;
var65:=(close-ma(close,12))/ma(close,12)*100;
var66:=(close-ma(close,24))/ma(close,24)*100;
var67:=ref(close,1);
var68:=sma(max(close-var67,0),5,1)/sma(abs(close-var67),5,1)*100;
var69:=(high+low+close)/3;
var6a:=(var69-ma(var69,14))/(0.015*avedev(var69,14));
var6b:=(var64>=-15.8 and var64<=-12.2 and var65<=-20.8 and var66<=-27.5 and var68<=11.7 and var6a<=-145)*100;
var6c:=var48=0;
var6d:=var48=100;
var6e:=llv(high,240);
var6f:=100*(close-var6e)/var6e;
var70:=(close-llv(low,528))/(hhv(high,528)-llv(low,528))*100;
var71:=(close-llv(close,530))/(hhv(close,530)-llv(close,530))*100;
var72:=0;
var73:=sma(max(close-ref(close,1),0),34,1)/sma(abs(close-ref(close,1)),7,1)*100;
var74:=sma(max(close-ref(close,1),0),13,1)/sma(abs(close-ref(close,1)),13,1)*100;
var75:=barscount(close);
var76:=var73<20 and var74<23 and var75>35;
var77:=var76 and count(var76,1)=1;
var78:=ema(close,21)-ema(close,8);
var79:=ema(var78,5);
var7a:=troughbars(3,6,1)<4 and cross(var78,var79);
var7b:=if(troughbars(3,16,1)=0 and high>low+0.04,4,0);
var7c:=if(ema(close,5)/ema(ema(close,9),16)<=0.85 and close/ref(close,1)>0.905 and close/ref(close,1)<1.05 and vol/capital*100<5,50,0);
var7d:=(-100)*(hhv(high,34)-close)/(hhv(high,34)-llv(low,34))+100;
var7e:=(-100)*(hhv(high,50)-close)/(hhv(high,50)-llv(low,50))+100;
var7f:=(-100)*(hhv(high,70)-close)/(hhv(high,70)-llv(low,70))+100;
var80:=((close-ma(close,34))/ma(close,34)*100+10)*5;
var81:=((close-ma(close,50))/ma(close,50)*100+10)*5;
var82:=((close-ma(close,70))/ma(close,70)*100+10)*5;
var83:=(var7d+var7e+var7f+var80+var81+var82)/6;
var84:=ema(var83,3);
var85:=abs(var80-var82);
var86:=(var83+var85)/2;
var87:=(-1)*(ema(100*(1-winner(close)),1)-50)+50;
var88:=var87+var86;
var89:=if(var7c>0 and var88<0,200,0);
var8a:=if(var86<0 and close=llv(close,5) and close/ref(close,1)>0.905 and close/ref(close,1)<1.05 and vol/capital*100<5,-50,0);
var8b:=if(var88<0 and var8a=-50,100,0);
var8c:=ma(close,3);
var8d:=ref(close,2)*0.865;
var8e:=ref(close,13)*0.772;
var8f:=min(var8d,var8e);
var90:=100*vol/capital;
var91:=ma(close,13);
var92:=if((close-var8f)/close<0.03 and sum(var90,5)/5<1.8,1,0);
var93:=if(var92>0 and (var8a<0 or var7c>0),100,0);
var94:=var93;
var95:=if(var89>0 and var8b>0 and sum(vol/capital*100,5)/5<1 or var92>0 and ref(close,1)/ref(close,2)>0.902 or (var89>0 and var8b>0 and sum(vol/capital*100,5)/5<1 or var92>0) and (var8a<0 or var7c>0) and var93<10,50,0);
var96:=(var89>0 and var8b>0 and sum(vol/capital*100,5)/5<1 or var92>0) and (var8a<0 or var7c>0);
var97:=var89>0 and var8b>0 and sum(vol/capital*100,5)/5<1 or var92>0 and ref(close,1)/ref(close,2)>0.902;
var98:=var96 or var97;
var99:=sma(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),14,1);
var9a:=high-ref(high,1);
var9b:=ref(low,1)-low;
var9c:=sma(if(var9a>0 and var9a>var9b,var9a,0),12,1);
var9d:=sma(if(var9b>0 and var9b>var9a,var9b,0),12,1);
var9e:=var9c*100/var99;
var9f:=var9d*100/var99;
vara0:=sma(abs(var9f-var9e)/(var9f+var9e)*100,12,1);
vara1:=(vara0+ref(vara0,5))/2;
vara2:=sum(high-open,12)/sum(open-low,12)*100;
vara3:=sum(max(0,high-ref(close,1)),12)/sum(max(0,ref(close,1)-low),12)*100;
vara4:=amount/vol/100;
vara5:=(3*high+low+open+2*close)/7;
vara6:=sum(amount,5)/vara4/100;
vara7:=sum(amount,13)/vara4/100;
vara8:=sum(amount,34)/vara4/100;
vara9:=sum(amount,209)/vara4/100;
varaa:=ref(vol,1)+ref(vol,2)+ref(vol,3)+ref(vol,4);
varab:=varaa/capital;
varac:=vol/capital*vara5+varab*ref(vara4,1);
varad:=dma(vara5,vol/vara6);
varae:=dma(vara5,vol/vara7);
varaf:=dma(vara5,vol/vara8);
varb0:=dma(vara5,vol/capital);
varb1:=ma(hhv(high,488),18);
varb2:=ma(hhv(high,220),18);
varb3:=ma(hhv(high,98),18);
varb4:=ma(llv(low,488),18);
varb5:=ma(llv(low,220),18);
varb6:=ma(llv(low,98),18);
varb7:=ma((varb4*0.96+varb5*0.96+varb6*0.96+varb1*0.558+varb2*0.558+varb3*0.558)/6,18);
varb8:=ma((varb4*1.25+varb5*1.23+varb6*1.2+varb1*0.55+varb2*0.55+varb3*0.65)/6,18);
varb9:=ma((varb4*1.3+varb5*1.3+varb6*1.3+varb1*0.68+varb2*0.68+varb3*0.68)/6,18);
varba:=ma((varb7*3+varb8*2+varb9)/6*1.738,18);
varbb:=if(date<=1021231,varba,varba*day);
varbc:=low;
varbd:=ref(low,1);
varbe:=sma(abs(varbc-varbd),3,1)/sma(max(varbc-varbd,0),3,1)*100;
varbf:=ma(if(close*1.35<=varbb,varbe*10,varbe/10),3);
varc0:=llv(low,30);
varc1:=hhv(varbf,30);
varc2:=if(low<=varc0,(varbf+varc1*2)/2,0);
wxbm:(ma(varc2 and close<cost(1),3) and (close-varae)/varae*100<-11)*118,colorred,linethick2;
{if(var7b>0,stickline(var7b>0,0,130,4,0),if(var60>0,stickline(var60>0,0,100,8,0),0)),colorred, linethick3;}
大黑马:{if(var61,drawtext(var61 or var98,70,'★大黑马'),coloryellow;
黑马:if(var60>0,drawtext(var60>0,40,'★黑马'),if(var7b>0,drawtext(var7b>0,120,'★探底'),if(wxbm,drawtext(wxbm,120,''),10))))*var5,colorred ,linethick2;}
{if(var61,stickline(var61,0,120,8,0),if(var98,stickline(var98,0,60,8,0),0))*var5,coloryellow ,linethick3 ;}
stickline(var7b>0,0,120,2,0),colorwhite;
stickline(var60>0,0,80,8,0),colorred;
drawtext(var61 or var98,70,'★大黑马'),coloryellow;
drawtext(var60>0,40,'★黑马'),coloryellow;
drawtext(var7b>0,60,'★探底'),colorwhite;
drawtext(wxbm,100,'bm'),colorred , ;
stickline(var61,0,120,8,0),colorwhite;
stickline(var98,0,90,8,0),coloryellow , ;
x:=c-ref(ma(c,20),11);
lgl:=if(ema(c,5)/ema(ema(c,9),16)<=0.85 and c/ref(c,1)>0.905 and c/ref(c,1)<1.05 and vol/capital*100<5,50,0);
wr1:=-100*(hhv(high,34)-close)/(hhv(high,34)-llv(low,34))+100*x;
wr2:=-100*(hhv(high,50)-close)/(hhv(high,50)-llv(low,50))+100;
wr3:=-100*(hhv(high,70)-close)/(hhv(high,70)-llv(low,70))+100*x;
bias1:=((close-ma(close,34))/ma(close,34)*100+10)*5;
bias2:=((close-ma(close,50))/ma(close,50)*100+10)*5;
bias3:=((close-ma(close,70))/ma(close,70)*100+10)*5;
s1:=(wr1+wr2+wr3+bias1+bias2+bias3)/6*x;
s2:=ema(s1,3);
s3:=abs(bias1-bias3);
sx:=(s1+s3)/2;
xc1:=(-1)*(ema(100*(1-winner(close)),1)-50)+50;
ccc:=xc1+sx;
zjz:=if( lgl>0 and ccc<0,200,0)*x;
lxl:=if(sx<0 and c=llv(c,5) and c/ref(c,1)>0.905 and c/ref(c,1)<1.05 and vol/capital*100<5,-50,0);
jbj:=if(ccc<0 and lxl=-50,100,0)*x;
ma3:= ma(c,3);
c0:=ref(c,2)*0.865;
c1:=ref(c,13)*0.772;
bot:=min(c0,c1);
hsl:=100*vol/capital*x;
ma13:=ma(c,13)*x;
cxc:=if((c-bot)/c<3/100 and sum(hsl,5)/5<1.8,1,0);
vmc:=if(cxc>0 and (lxl<0 or lgl>0),10,0);
满仓:if((vmc>0),120,0),colorred,linethick3;
drawtext(满仓>0 and ref(满仓,1)=0,100,'满仓'),colorred;
半仓:if(((zjz>0 and jbj>0 and sum(vol/capital*100,5)/5<1) or (cxc>0 and ref(c,1)/ref(c,2)>0.902)) or (((zjz>0 and jbj>0 and sum(vol/capital*100,5)/5<1) or cxc>0) and (lxl<0 or lgl>0)) and vmc<10 ,100,0),colormagenta,linethick2;
v93:=(((zjz>0 and jbj>0 and sum(vol/capital*100,5)/5<1) or cxc>0) and (lxl<0 or lgl>0)) ;
v90:=((zjz>0 and jbj>0 and sum(vol/capital*100,5)/5<1) or (cxc>0 and ref(c,1)/ref(c,2)>0.902));
买11:if((v93 or v90),80,0),coloryellow,linethick2;
var2q:=(ma(close,80)-ma(close,13)/3);
神奇线:= ma((close-var2q)/var2q,2);
买12:if(cross(神奇线,0) and low/ref(high,1)<1.012 and ((c-ref(c,2))/c)>0.06,100,0),colormagenta,linethick2;
yy:=sma(sma((close-llv(low,55))/(hhv(high,55)-llv(low,55))*100,18,1),12,1);
yt:=sma((close-llv(low,55))/(hhv(high,55)-llv(low,55))*100,12,1);
st:=if(cross(yt,yy),30,0);
var5pt:=(high+low+close)/3;
var6pt:=(var5pt-ma(var5pt,14))/(0.015*avedev(var5pt,14));
var7pt:=(var5pt-ma(var5pt,85))/(0.015*avedev(var5pt,85));
sa:=if(var7pt>=200 and var6pt>=150,10,0);
var3qq:=ref(close,1);
var4qq:=sma(max(close-var3qq,0),6,1)/sma(abs(close-var3qq),6,1)*100;
sm:=if(cross(80,var4qq),100,0);
卖11:if((sm and (sa or st)),120,0),colorcccc33,linethick2;
drawtext( 卖11>0,110,'卖'),colorcccc33;
varg3:=llv(high,240);
varg4:=100*(close-varg3)/var3;
varg5:=ref(llv(close,480),1);
varg6:=ref(hhv(close,480),1);
varg7:=100*(close-varg5)/(varg6-varg5);
varg8:=(close-llv(close,981))/(hhv(close,981)-llv(close,981))*100;
varg9:=(close-llv(close,393))/(hhv(close,393)-llv(close,393))*100;
varga:=(close-llv(low,981))/(hhv(high,981)-llv(low,981))*100;
vargb:=(close-llv(low,393))/(hhv(high,393)-llv(low,393))*100;
vargc:=ema(100*(close-llv(low,100))/(hhv(high,100)-llv(low,100)),5)/4;
vargd:=if(date<120981231,if(varc>23.16,varc,0),0);
varge:=vargc<1;
vargf:=vargd;
varg10:=if(filter(varg8=0 and varga<1 and varg4<0,5)=1,1,0);
varg11:=if(filter(varg8=100 and varga=100,5)=1,1,0);
varg12:=if(filter(varg9=0 and vargb<1 and varg7<0,5)=1,1,0);
varg13:=if(filter(varg9=100 and vargb=100,5)=1,1,0);
varg14:=if(filter(varg4<1 and varg7<1,30)=1,1,0);
varg15:=varg10 and varg12;
varg16:=varg11 and varg13;
varg17:=varg8=0 and varge and varg14;
varg18:=varg15 and varge and varg14;
varg19:=varg8=100 and vargf;
varg1a:=varg16 and vargf;
大盘方向:= ema(100*(close-llv(low,100))/(hhv(high,100)-llv(low,100)),15), , {00050001};
获利:=varg4,,{00010001};
操盘手:=(close-llv(close,153))/(hhv(close,153)-llv(close,153))*100, , {00010001};
varg1b:=ema(close,2)-ema(close,89);
varg1c:=ema(varg1b,30);
varg1d:=2*(varg1b-varg1c)*10;
varg1e:=pow(varg1d,3)*0.1+pow(varg1d,2);
varg1f:=sqrt(sqrt(low*high*open*close));
varg20:=ema(varg1f*0.97,3);
varg21:=(high+low+close)/3;
varg22:=(varg21-ma(varg21,14))/(0.015*avedev(varg21,14));
varg23:=if(year<2098 and varg1d>0.015,varg1e,0)/4500;
庄线:=varg23,,{00010001};
varg24:=max(max(high-low,abs(ref(close,1)-high)),abs(ref(close,1)-low));
varg25:=ma(varg24,48);
varg26:=cross(varg24,varg25);
varg27:=if(filter(varg26,126)=1,70,0);
varg28:=ref(close,1);
varg29:=sma(max(close-varg28,0),6,1)/sma(abs(close-varg28),6,1)*100;
varg2a:=sma(max(close-varg28,0),12,1)/sma(abs(close-varg28),12,1)*100;
varg2b:=sma(max(close-varg28,0),24,1)/sma(abs(close-varg28),24,1)*100;
varg2c:=if(filter(cross(varg29,varg2a) and cross(varg2a,varg2b) and cross(varg29,varg2b),5)=1,50,0);
varg2d:=(close-llv(low,34))/(hhv(high,34)-llv(low,34))*100;
varg2e:=sma(varg2d,3,1);
varg2f:=sma(varg2e,3,1);
varg30:=3*varg2e-2*varg2f;
varg31:=cross(varg30,varg2e) and cross(varg30,varg2f) and cross(varg2e,varg2f);
varg32:=if(filter(varg31 and varg30<25 and varg2f<20,5)=1,80,0);
varg33:=if(filter(varg17 or varg18,1)=1,100,0);
varg34:=大盘方向<5 and 获利<0 and 操盘手=0;
j买: if(filter(varg34 or varg33,30)=1,120,0),linethick2,color009999,{00010001};
drawtext(j买,100,'"j买"'),color009999 , {00010001};
drawicon(j买,j买,1),color009999;
varg35:=大盘方向>80 and 操盘手=100 and varg29>80 and varg30>100;
varg36:=if(filter(varg19 and varg16 and vargf,2)=1,100,0);
j卖: if(filter(varg36 or varg35,9)=1,120,0),linethick2,colorgreen,{00010001};
drawtext(j卖,100,'"j卖"'),colorgreen , {00010001};
drawicon(j卖,j卖,9),colorgreen;
varg37:=if(filter(varg2c and varg29<60 and varg2b<40,15)=1,80,0);
m1: if(filter(大盘方向<5 and varg2c and varg29<60 and varg2b<40,15)=1,100,0),colormagenta , {00010001};
drawtext(m1,90,'"m1"'),colormagenta,{00010001};
varg38:=if(filter(varg37 and varg32,5)=1,10,0);
m2: if(filter(大盘方向<5 and varg37 and varg32,5)=1,100,0),coloryellow , {00010001};
drawtext(m2,90,'"m2"'),coloryellow,{00010001};
varg39:=if(filter(varg37 and varg32 and varg27,5)=1,80,0);
m3: if(filter(大盘方向<5 and varg37 and varg32 and varg27,5)=1,100,0),colorred,linethick2,{00010001};
drawtext(m3,90,'"m3买"'),coloryellow,{00010001};
varr2:=close-ref(close,1);
varr3:=if(close-ref(close,1)>=0,varr2,0);
varr4:=ref(close,1)-close;
varr5:=if(close-ref(close,1)<=0,varr4,0);
varr6:=sum(varr3,16)/sum(varr5,16);
varr7:=100-100/(1+varr6);
varr8:=ema(varr7,16);
varr9:=ema(varr8,8);
varra:=ema(varr8,45);
varrb:=varr8-varra;
advc:=amount/vol;
asr:=ema((winner(c*1.1)-winner(c*0.9))*80,5);
dpa:="1a0001$vol"*"1a0001$close";
dpma:=ema(dpa,5)/ema("1a0001$vol",5);
cys:=("1a0001$close"-dpma)/dpma*100;
a1:=indexc;
a2:=ma(a1,5);
a3:=ma(a1,20);
a4:=ma(a1,30);
b1:=a4>a2*1.08 and a3>a2*1.055;
b2:=a2>a1*1.03 and a3>a1*1.13;
advc0:=cys<=-2 and b2;
刀:if(asr<6 and cys< -2 and advc0,100,0),colorred,linethick2;
drawicon( 刀,90, 5),colorred;
龙:if(asr<6 ,110,0),color66ffcc,linethick2;
drawtext(cross(龙,2.6) or cross(2.6,龙),90, '龙') ,color66ffcc ;
varbb4:=ma(close,5);
varbb5:=ma(close,10);
varbb6:=ma(close,30);
varbb7:=ma(close,60);
varbb8:=ema(cost(85),7);
varbb9:=ema(cost(15),7);
varbba:=sum(close*vol*100,4)/sum(vol*100,4);
varbbb:=intpart(varbba*100)/100;
varbbc:=sum(close*vol*100,7)/sum(vol*100,7);
varbbd:=intpart(varbbc*100)/100;
varbbe:=sum(close*vol*100,28)/sum(vol*100,28);
varbbf:=intpart(varbbe*100)/100;
dcs:=(ema(close,5)-ema(close,10))*100,linethick2;
zcs:=ema(dcs,9),linethick2;
varbb10:=-100*(hhv(close,5)-close)/(hhv(close,5)-llv(low,5))+100;
varbb11:=-100*(hhv(close,10)-close)/(hhv(close,10)-llv(low,10))+100;
varbb12:=-100*(hhv(close,20)-close)/(hhv(close,20)-llv(low,20))+100;
varbb13:=-100*(hhv(close,30)-close)/(hhv(close,30)-llv(low,30))+100;
varbb14:=ref(zcs,1);
varbb15:=zcs;
varbb16:=(varbb15-varbb14)/3;
varbb17:=ref(dcs,1);
varbb18:=dcs;
varbb19:=varbb18-varbb17;
varbb1a:=open;
varbb1b:=close;
dhm:if(varbb1a<=varbb4 and varbb1a<=varbb5 and varbb1a<=varbb6 and varbb1b>=varbb4 and varbb1b>=varbbf and varbb16>0 and varbb19>0,120,0),colormagenta,linethick2;
drawtext(dhm,80,'"dhm"'),colormagenta,{00010001};
xx2:=(ma(close,80)-ma(close,13)/3);
sqx:=ma((close-xx2)/xx2,10)*0.01;
买3:if(cross(sqx,0) and low/ref(high,1)<1.012,60,0), stick,colorwhite,linethick2;
稳赚:if(count(sqx>ref(sqx,1),3)=3 and count(sqx<0,10)=10 and ref(sqx,3)=llv(sqx,10),60,0),color9999ff;
买4: if(ref(sqx,2)=llv(sqx,20) and ref(sqx,2)<0.071 and ref(sqx,2)<ref(sqx,1) and not(ref(low,1)>ref(high,2) and low>ref(high,1)) and close>ref(close,1),60,0),colorff00ff,linethick2;
drawtext( 买3>0,40 ,' 买3'),colorwhite;
drawtext( 稳赚>0,40 ,'稳赚'),color9999ff;
drawtext( 买4>0,40 , '买4'),colorff00ff;
varj1:=indexc;
varj2:=ma(varj1,6);
varj3:=ma(varj1,24);
varj4:=ma(varj1,32);
varj5:=ma(varj1,62);
varj6:=ma(varj1,105);
varj7:=varj5<ref(varj5,1) and varj6<ref(varj6,1) and varj5<varj6*0.98;
varj8:=varj4>varj2*1.11 and varj3>varj2*1.095;
varj9:=varj2>varj1*0.95;
bf:=varj7 and varj8 and varj9 and close/cost(8)<=0.8 and (close>open or close<open) and (ref(close,1)>ref(open,1) or ref(close,1)<ref(open,1)) or close>0.1,colorgreen;
上一指标公式:如虎添翼-公式 飞狐如虎添翼指标 源码
下一指标公式:30分钟判市-公式 飞狐源码指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文自用实用副图公式 飞狐自用指标 源码仅供学习研究。