ma5:ma(c,5);
ma10:ma(c,10);
ma20:=ma(c,20);
ma30:ma(c,30);
ma60:ma(c,60);
ma120:ma(c,120);
ma250:ma(c,250);
{www.goodgongshi.com}
{qzs2:=(ema(c,30)+ema(c,60))/2;
drawband(qzs2,rgb(150,30,30),ema(qzs2,60),rgb(0,110,30));
drawkline(h,o,l,c);
drawgbk(c>0,rgb(0,0,0),rgb(0,0,0),0,'56',0),linethick2;}
{重心a:=(c+0.618*ref(c,1)+0.382*ref(c,1)+0.236*ref(c,3)+0.146*ref(c,4))/2.382;
操盘线a:ema(((slope(c,22)*20)+c),55),coloryellow,linethick3;
黄金线a:if(重心a>=操盘线a,操盘线a,drawnull),colorred,linethick2;
空仓线a:if(重心a<操盘线a,操盘线a,drawnull),colorcyan,linethick2;}
rsvj:=(c-llv(l,nj))/(hhv(h,nj)-llv(l,nj))*100;
kj:=sma(rsvj,p1j,1);
dj:=sma(kj,p2j,1);
jj:=3*kj-2*dj;
rav5q:=sma(((c-llv(l,9))/(hhv(h,9)-llv(l,9)))*100,3,1);
短线:=(3*rav5q-2*sma(rav5q,3,1))*1.1;
rsvsk:=(c-llv(l,20))/(hhv(h,20)-llv(l,20))*100;
长线2:=3*sma(rsvsk,8,1)-2*sma(sma(rsvsk,8,1),7,1);
云端2:=if(c/ref(c,1)>1.050 and high/c<1.010 and if(c>ref(c,1),88,0)>0, 91, 0);
dx:=100*ema(ema(c-ref(c,1),6),6)/ema(ema(abs(c-ref(c,1)),6),6);
买:=if(llv(dx,2)=llv(dx,7) and count(dx<0,2) and cross(dx,ma(dx,2)),1,0);
{tlamsenr:=max(max((h-l),abs((ref(c,1)-high))),abs((ref(c,1)-l)));
atr:=ma(tlamsenr,13);
var1acd:=(ref(c,1)-ref(atr,1));
胡紧套:(hhv(var1acd,12)),linethick1,colorffde00;}
var1t:=(c-llv(l,13))/(hhv(h,13)-llv(l,13))*100;
var2t:=(c-llv(l,9))/(hhv(h,9)-llv(l,9))*100;
var3t:=(sma(var2t,3,1)-18)*1.55;
var4t:=sma(var3t,3,1);
var5t:=(c-llv(l,100))/(hhv(h,100)-llv(l,100))*100;
var6t:=sma(var5t,10,1);
var7t:=(ema(sma(var6t,8,1),34)-25)*2.6;
var8t:=pow(ma(c,5),2)+ma(c,5);
var9t:=pow(ma(l,5),2)+ma(l,5);
varat:=pow(ma(h,5),2)+ma(h,5);
varbt:=((var8t-llv(var9t,64))/(hhv(varat,64)-llv(var9t,64))*150+65-10)/2;
varct:=sma(varbt,3,1)*1.5-46;
vardt:=sma(varct,3,1);
varet:=3*varct-2*vardt;
varft:=(var1t+var2t+var5t)/3;
var10t:=((var3t+var3t+var6t+varct)/4-15)*1.67;
var11t:=((var4t+var4t+var7t+vardt)/4-15)*1.67;
var12t:=((var1t+var5t*2+varft+var10t+var11t+varbt+varct+vardt+varet)/10-15)*1.67;
var13t:=(hhv(h,5)-c)/(hhv(h,5)-llv(l,5))*(-1)+0.9;
var14t:=(hhv(h,10)-c)/(hhv(h,10)-llv(l,10))*(-1)+0.92;
var15t:=(hhv(h,15)-c)/(hhv(h,15)-llv(l,15))*(-1)+0.93;
var16t:=(hhv(h,55)-c)/(hhv(h,55)-llv(l,55))*(-1)+0.94;
var17t:=(hhv(h,89)-c)/(hhv(h,89)-llv(l,89))*(-1)+0.95;
var18t:=(hhv(h,120)-c)/(hhv(h,180)-llv(l,180))*(-1)+0.96;
var19t:=(hhv(h,180)-c)/(hhv(h,180)-llv(l,180))*(-1)+0.96;
var1at:=((var13t*8+var14t*8+var15t*8+var16t+var17t+var18t+var19t)/28-0.1)*185;
var1bt:=sma(var1at,3,1);
var1ct:=(sma(var1bt,8,1)-8)*1.18;
浮筹1:=(var10t+var11t+var12t+varct+vardt+varet+var1ct+var7t)/13;
浮筹2:=(var10t+var11t+var12t+varct+vardt+varet+var1ct+var7t)/21;
浮筹3:=(var10t+var11t+var12t+varct+vardt+varet+var1ct+var7t)/34;
rsi57:=((sma(max((c - ref(c,1)),0),5,1) / sma(abs((c - ref(c,1))),5,1)) * 100);
tr1:=sum(max(max((h - l),abs((h - ref(c,1)))),abs((l - ref(c,1)))),10);
hd:=(h - ref(h,1));
ld:=(ref(l,1) - l);
dmp:=sum(if(((hd > 0) and (hd > ld)),hd,0),10);
dmm:=sum(if(((ld > 0) and (ld > hd)),ld,0),10);
pdi:=((dmp * 100) / tr1);
mdi:=((dmm * 100) / tr1);
adx:=ma(((abs((mdi - pdi)) / (mdi + pdi)) * 100),5);
dxr:=(((adx + ref(adx,5)) / 2) + rsi57);
wr10:=((100 * (hhv(h,10) - c)) / (hhv(h,10) - llv(l,10)));
多方趋势:=((7)*(sma(((c-llv (l,27))/(hhv(h,27)-llv(l,27)))*30,4,1))-(3)*(sma(sma(((c-llv(l,27))/(hhv(h,27)-llv(l,27)))*30,4,1),3,1))-sma(sma(sma(((c-llv(l,27))/(hhv(h,27)-llv(l,27)))*(30),4,1),3,1),2,1));
空方趋势:=(ema(ma(多方趋势,5),7));
aa9:=(ma(c,1)+ma(c,3)+ma(c,5)+ma(c,7)+ma(c,9))/5;
bb9:=(ma(c,2)+ma(c,4)+ma(c,6)+ma(c,8)+ma(c,10))/5;
tj0:=cross(ema(aa9,2),ema(bb9,5));
tj1:=cross(ema(c,3),ema(c,5));
tj2:=ema(c,3)>ref(ema(c,3),1);
bb5:=atan(ema((c+l+h)/3,5)-ref(ema((c+l+h)/3,5),1))*3.1416*10;
tj3:=bb5>1 and ema((c+l+h)/3,5)>ref(ema((c+l+h)/3,3),1);
drawtext(tj1 and tj2 and tj0 and tj3 and 短线<100 and 空方趋势>ref(空方趋势,1) and 空方趋势>20 and jj>ref(jj,1)
and jj>5,l*0.97,'牛启动'),colorwhite;
drawtext(tj1 and tj2 and tj0 and tj3 and cross((rsi57 + adx) + rsi57-wr10,0) and jj>ref(jj,1),l*0.93,'大牛'),colorwhite;
j6:=(3*ema((c-llv(l,18))/(hhv(h,18) - llv(l,18))*100,3)-2*ema(ema((c-llv(l,18))/(hhv(h,18) - llv(l,18))*100,3),3));
反转:=if(filter(ref(count(j6<ref(j6,1),5)>=3,1) and ref(j6,1)<20 and j6>ref(j6,1),3),30,0);
stickline(反转,o,c,6,0),colorblue;
v33:=(c-llv(l,8))/(hhv(h,8)-llv(l,8))*100;
抄底:=(if(sma(v33,2,1)>ref(sma(v33,2,1),1) and ref(sma(v33,2,1),1)<ref(sma(v33,2,1),2) and sma(v33,2,1)<23 ,1.5,0))*80;
stickline(抄底,l,h,7,0),colorblue;
ks:=sma((c-llv(l,9))/(hhv(h,9)-llv(l,9))*100,3,1);
ds:=sma(ks,3,1);
js:=3*ks-2*ds;
stickline(cross(js,ref(js+0.01,1)) and llv(js,2)=llv(js,8) and js<20,l,h,4,0),coloryellow;
dbx:=100*ema(ema(c-ref(c,1),6),6)/ema(ema(abs(c-ref(c,1)),6),6);
买dd:=if(llv(dbx,2)=llv(dbx,7) and count(dbx<0,2) and cross(dbx,ma(dbx,2)),1,0);
drawtext(filter(买dd=1,5) and (反转 or 抄底) ,l*0.96,'b'),colorwhite;
drawtext(filter(买dd=1,5) and (tj1 and tj2 and tj0 and tj3 and 买 and filter(云端2>1,5)) ,l*0.96,'b'),coloryellow;
drawtext(filter(买dd=1,5) and (tj1 and tj2 and tj0 and tj3 and cross((rsi57 + adx) + rsi57-wr10,0) and jj>ref(jj,1)) ,l*0.96,'b'),colorred;
cj5:=ma(c,5)*102/100;
hj5:=ma(h,5)*102/100;
tgh1:=if(c>o and h>ref(c,1),atan(hj5-ref(cj5,1)),0);
tgh2:=if(c>o and h<ref(c,1),-atan(ref(cj5,1)-hj5),0);
tgh3:=if(c>o and h=ref(c,1),0,0);
lgh1:=if(c<o and h>ref(c,1),atan(hj5-ref(cj5,1)),0);
lgh2:=if(c<o and h<ref(c,1),-atan(ref(cj5,1)-hj5),0);
lgh3:=if(c<o and h=ref(c,1),0,0);
ggh:=(tgh1+tgh2+tgh3+lgh1+lgh2+lgh3);
突破高点:=ma(ref(ggh,1),26)*100;
通道1:=ma((2*c+h+l)/4,9)*102/100;
通道2:=(1+7/100)*dma(c,(abs((2*c+h+l)/4-ma(c,26))/ma(c,26)));
ta2:=ma(atan((通道2-ref(通道2,1))),3)*100;
t1:=atan((通道1-ref(通道1,1)));
t2:=atan((通道1-ref(通道1,2)));
t3:=atan((通道1-ref(通道1,3)));
t4:=atan((通道1-ref(通道1,4)));
t5:=atan((通道1-ref(通道1,5)));
t6:=atan((通道1-ref(通道1,6)));
t7:=atan((通道1-ref(通道1,7)));
t8:=atan((通道1-ref(通道1,8)));
t9:=atan((通道1-ref(通道1,9)));
t10:=atan((通道1-ref(通道1,10)));
tjd:=ma((((t1+t2+t3+t4+t5+t6+t7+t8+t9+t10)/10)),3)*100;
tt1:=atan((通道2-ref(通道2,1)));
tt2:=(atan((通道2-ref(通道2,2))));
tt3:=(atan((通道2-ref(通道2,3))));
tt4:=(atan((通道2-ref(通道2,4))));
tt5:=(atan((通道2-ref(通道2,5))));
tt6:=(atan((通道2-ref(通道2,6))));
tt7:=(atan((通道2-ref(通道2,7))));
tt8:=(atan((通道2-ref(通道2,8))));
tt9:=(atan((通道2-ref(通道2,9))));
tt10:=(atan((通道2-ref(通道2,10))));
tjd2:=ma((((tt1+tt2+tt3+tt4+tt5+tt6+tt7+tt8+tt9+tt10)/10)),3)*100;
ak1:=ema((((c-llv(l,21))/(hhv(h,21) - llv(l,21)))*100),5);
ak:=ema((((c-llv(l,21))/(hhv(h,21) - llv(l,21)))*50),13);
drawtext( cross(ak1,ak),l*0.92,'吸'),colormagenta;
var6h:=if(v>=1.3*ma(v,5) and count((c-ref(o,29))/ref(o,29)*100>=ema(0.667*ref((c-ref(o,29))/ref(o,29)*100,1)+0.333*(c-ref(o,29))/ref(o,29)*100,5) and (c-ref(o,29))/ref(o,29)*100<-17,3) and ref(l,1)=llv(l,120),1,0);
var8h:=sma(max((h+l+o+2*c)/5-ref((h+l+o+2*c)/5,1),0),10,1)/sma(abs((h+l+o+2*c)/5-ref((h+l+o+2*c)/5,1)),10,1)*100;
var9h:=if(count(var8h<20,5)>=1 and count((h+l+o+2*c)/5=llv((h+l+o+2*c)/5,10),10)>=1 and c>=o*1.038 and vol>ma(vol,5)*1.2,1,0);
drawtext(filter(var9h or var6h,5) and filter(云端2>1,5),l*0.93,'注意买入'),colorred;
{www.goodgongshi.com}
v3:=100-(100-3*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,20,1)+2*sma(sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,20,1),15,1));
趋势线5:= 3*sma((c-llv(l,27))/(hhv(h,27)-llv(l,27))*100,5,1)-2*sma(sma((c-llv(l,27))/(hhv(h,27)-llv(l,27))*100,5,1),3,1);
买入:= if(cross(趋势线5,3),100,0);
趋势线1:= 3*sma((c-llv(l,36))/(hhv(h,36)-llv(l,36))*100,5,1)-2*sma(sma((c-llv(l,36))/(hhv(h,36)-llv(l,36))*100,5,1),3,1);
买入1:= if(cross(趋势线1,3),100,0);
趋势线2:= 3*sma((c-llv(l,54))/(hhv(h,54)-llv(l,54))*100,5,1)-2*sma(sma((c-llv(l,54))/(hhv(h,54)-llv(l,54))*100,5,1),3,1);
买入2:= if(cross(趋势线2,3),100,0);
顶入:=stickline(买入 and 买入1 and 买入2 and v3<10,0,0,8,0);
drawtext(filter(filter(stickline(顶入 or if(count(( v3<0),5)=3, -25,0),0,0,8,0),25),15),l*0.93,'钻石底'),colorgreen;
typ:=(h+l+c)/3;
ci15:=(typ-ma(typ,15))/(0.015*avedev(typ,15));
ci10:=(typ-ma(typ,10))/(0.015*avedev(typ,10));
ci5:=(typ-ma(typ,5))/(0.015*avedev(typ,5));
ci3:=(typ-ma(typ,3))/(0.015*avedev(typ,3));
emah3:=ema(h,3);
emal3:=ema(l,3);
emah5:=ema(h,5);
emal5:=ema(l,5);
emal10:=ema(l,10);
emaz:=(emah3+emah5+emal3+emal5)/4;
ema3:=(emah3-emal3)/6+emal3;
pbx1:=(ema((c+h+l)/3,4)+ma((c+h+l)/3,4*2)+ma((c+h+l)/3,4*4))/3;
pbx2:=(ema((c+h+l)/3,6)+ma((c+h+l)/3,6*2)+ma((c+h+l)/3,6*4))/3;
冠军1号短线王:=pbx1>pbx2 and ci15>0 and ci10>0 and emah3>emah5 and emal3>emal5 and emal5>emal10 and o<ema3 and l<emal3;
macd价格1:=ema(close,3) - ema(close,9);
dea1021:=ema((ema(macd价格1,102) - ema(macd价格1,204)),9);
dea511:=ema((ema(macd价格1,51) - ema(macd价格1,102)),9);
dea36361:=ema((ema(macd价格1,36) - ema(macd价格1,72)),9);
dea24241:=ema((ema(macd价格1,24) - ema(macd价格1,48)),9);
dea18181:=ema((ema(macd价格1,18) - ema(macd价格1,36)),9);
dea661:=ema((ema(macd价格1,6) - ema(macd价格1,12)),9);
dea331:=ema((ema(macd价格1,3) - ema(macd价格1,9)),9);
dea12121:=ema((ema(macd价格1,12) - ema(macd价格1,24)),9);
macd24241:=2*((ema(macd价格1,24) - ema(macd价格1,48))-dea24241);
hh1:=(20*h+19*ref(h,1)+18*ref(h,2)+17*ref(h,3)+16*ref(h,4)+15*ref(h,5)+14*ref(h,6)
+13*ref(h,7)+12*ref(h,8)+11*ref(h,9)+10*ref(h,10)+9*ref(h,11)+8*ref(h,12)
+7*ref(h,13)+6*ref(h,14)+5*ref(h,15)+4*ref(h,16)+3*ref(h,17)+2*ref(h,18)+
ref(h,20))/210;
ll1:=(20*l+19*ref(l,1)+18*ref(l,2)+17*ref(l,3)+16*ref(l,4)+15*ref(l,5)+14*ref(l,6)
+13*ref(l,7)+12*ref(l,8)+11*ref(l,9)+10*ref(l,10)+9*ref(l,11)+8*ref(l,12)
+7*ref(l,13)+6*ref(l,14)+5*ref(l,15)+4*ref(l,16)+3*ref(l,17)+2*ref(l,18)+
ref(l,20))/210;
d90h1:=ema(hh1,90);
d90l1:=ema(ll1,90);
d901:=(d90h1+d90l1)/2;
y1m:=ema(slope((h+l+c)/3,24)*20+(h+l+c)/3,48);
cci151:=((h+l+c)/3-ma((h+l+c)/3,15))/(0.015*avedev((h+l+c)/3,15));
cci101:=((h+l+c)/3-ma((h+l+c)/3,10))/(0.015*avedev((h+l+c)/3,10));
cci51:=((h+l+c)/3-ma((h+l+c)/3,5))/(0.015*avedev((h+l+c)/3,5));
cci31:=((h+l+c)/3-ma((h+l+c)/3,3))/(0.015*avedev((h+l+c)/3,3));
cci买点定位1:=cross(cci51,0) and cross(cci31,0) and ref(cci151,1)>0 and ref(cci101,1)>-30 and ref(cci151,1)>ref(cci101,1) and ref(cci101,1)>ref(cci51,1);
cci买点定位2:=cross(cci31,0) and cci51>ref(cci51,1) and ref(cci51,1)<-100 and ref(cci151,1)>0 and ref(cci101,1)>-30 and ref(cci151,1)>ref(cci101,1) and ref(cci101,1)>ref(cci51,1);
cci买点定位3:=cross(cci51,0) and cross(cci31,0) and ref(cci101,1)>0 and ref(cci101,1)>ref(cci151,1);
cci买点定位:=cci买点定位1=1 or cci买点定位2=1 or cci买点定位3=1;
起爆金股1:=cci买点定位=1 and dea12121>dea18181 and dea18181>dea24241 and dea24241>dea36361 and dea36361>dea511 and dea511>=dea1021 and dea18181>ref(dea18181,1) and dea24241>ref(dea24241,1) and dea36361>ref(dea36361,1) and dea511>ref(dea511,1) and dea1021>ref(dea1021,1) and dea36361>0 and dea331>0;
起爆金股2:=cci买点定位=1 and dea12121>dea18181 and dea18181>dea24241 and dea24241>dea36361 and dea18181>dea1021 and dea18181>ref(dea18181,1) and dea24241>ref(dea24241,1) and dea36361>ref(dea36361,1) and dea511>ref(dea511,1) and dea1021>ref(dea1021,1) and dea18181>0 and dea331>0;
起爆金股:=起爆金股1 or 起爆金股2;
vol比:=vol/ref(vol,1);
高度1:=(d90h1-d90l1)*4+d90h1;
pbx11:=(ema((h+l+c)/3,4)+ema((h+l+c)/3,4*2)+ema((h+l+c)/3,4*4))/3;
pbx22:=(ema((h+l+c)/3,5)+ema((h+l+c)/3,5*2)+ema((h+l+c)/3,5*4))/3;
pbxhh:=(ema(h,2)+ema(h,2*2)+ema(h,2*4))/3;
pbx高:=ref(pbxhh,1);
海底蛟龙:=(h+l+c)/3<d901 and (h+l+c)/3>y1m and 起爆金股 and c<高度1 and pbx11>pbx22 and l<pbx高 and o<pbx高 {and 资金定位=1} and vol比>1.2;
云上天龙:=(h+l+c)/3>d901 and (h+l+c)/3>y1m and 起爆金股 and c<高度1 and pbx11>pbx22 and l<pbx高 and o<pbx高 {and 资金定位=1} and vol比>1.2;
drawtext((海底蛟龙 or 云上天龙) and 冠军1号短线王 and 浮筹1>ref( 浮筹1,1),l*0.98,'庄叫你买'),colorwhite;
var011:=((c-ma(c,6))/ma(c,6)*100+(c-ma(c,24))/ma(c,24)*100+(c-ma(c,32))/ma(c,32)*100)/3;
drawtext(var011>9 and filter(var011<ref(var011,1),5),h*1.03,'x'),colorgreen,linethick2;
stickline(cross(88,((sma(max((c -ref(c,1)),0),3,1) / sma(abs((c- ref(c,1))),3,1)) * 100)),o,c,6,0),colorgreen;
长期线:=ma(-100*(hhv(h,34)-c)/(hhv(h,34)-llv(l,34)),19)+100;
中期线:=ema(-100*(hhv(h,34)-c)/(hhv(h,34)-llv(l,34)),4)+100;
短期线:=-100*(hhv(h,14)-c)/(hhv(h,14)-llv(l,14))+100;
低位金叉:=长期线<15 and ref(长期线,1)<15 and 中期线<18 and 短期线>ref(短期线,1) and cross(短期线,长期线) and 短期线>中期线
and (ref(短期线,1)<5 or ref(短期线,2)<5 ) and (中期线>=长期线 or ref( 短期线,1)<1 );
drawtext(低位金叉 and 短线>=20,l*0.94,'牛'),colorred;
a2:=sma(max(c-ref(c,1),0),5,1)/sma(abs(c-ref(c,1)),5,1)*1000;
a5:=(ma((a2-llv(a2,10)),2)*3+(a2-llv(a2,10))*13)/16;
a6:=if(a5>13,ma(a5,2),a5)/6;
rsi2:=sma(max(c-ref(c,1),0),12,1)/sma(abs(c-ref(c,1)),12,1)*100;
支撑:=llv(ma(rsi2,3),12);
中间:=(hhv(ma(rsi2,3),12)+llv(ma(rsi2,3),12))/2;
短线2:=if(cross(a6,1) and (a6<30)and rsi2<35 and rsi2>=支撑 and rsi2<中间,50,20);
drawtext(cross(a6,1) and (a6<30)and rsi2<35 and rsi2>=支撑 and rsi2<中间 ,l*0.88,'大胆买'), colorred;
m8:=ema(c,8);
m13:=ema(m8,13);
m55:=ema(m8,55);
m81:=ema(m55,81);
var1b:=ema(m13,55);
var2b:=(ref(h,1)+ref(l,1))/2;
sk4:=ema(((2*c+h+l)/4-var1b)/(var2b-var1b)*100,7);
sd4:=ema(0.667*ref(sk4,1)+0.333*sk4,5);
drawtext(if(count(close<ref(c,1),8)/8>6/10 and vol>=1.5*ma(vol,5) and
count(sk4>=sd4,3) and ref(l,1)=llv(l,120),1,0) and 短线>=20,l*0.85,'↖多') ,colorred;
vare:=(ema((((2*c+h+l)/4-ema(m13,62))/((ref(h,1)+ref(l,1))/2-ema(m13,62)))*(100),7));
varf:=(ema((0.667)*(ref(vare,1))+(0.333)*(vare),5));
drawtext(if(((count((c<ref(c,1)),8))/(8)>0.6) and (vol>=(1.5)*(ma(vol,5))) and count((vare>=varf),3) and (ref(l,1)=llv(l,120)),1,0),
l*0.992,'●'),colorff00ff;
drawtext(if(((count((c<ref(c,1)),13))/(13)>0.6) and count((vare>varf),6) and (ref(l,5)=llv(l,120)) and ref((c>=o),4)
and ref((c>o),3) and ref((c>o),2) and ref((o>c),1) and (o>ref(c,1)),1,0),l*0.95,'●进'),color00ffff;
drawtext(if((c<(ma(close,80)-(ma(c,10))/3)) and ((vol)/(240)>(ma(vol,5))/(240)) and (c>(ref(c,1))*(1.08)) and
(c<(ma(c,13))*(1.3)),1,0) and 短线>=20,l*0.96,'操'),colorred;
jd:=3*sma(((c-llv(l,13)) / (hhv(h,13) - llv(l,13)))*100,3,1)-2*sma(sma(((c-llv(l,13)) / (hhv(h,13) - llv(l,13)))*100,3,1),3,1);
k24:=sma(((c- llv(l,55))/(hhv(h,55)-llv(l,55)))*100,3,1);
d24:=sma(k24,3,1);
j24:=3*k24-2* d24;
aas:=if(cross(j24,jd),h,ref(h,barslast(cross(j24,jd))));
ssf:=if(cross(j24,jd),high,ref(h,barslast(cross(j24,jd))));
u2l:=if((c >= ma(c,20)),80,50);
l2l:=if((c >= ma(c,20)),50,20);
rh1:=if(((jd < u2l) and (ref(jd,1) >= u2l)),hhv(ref(h,1),(barslast(((jd >= u2l) and (ref(jd,1) < u2l))) - 1)),ref(hhv(ref(high,1),
(barslast(((jd >= u2l) and (ref(jd,1) < u2l))) - 1)),barslast(((jd < u2l) and ref(jd,1)))));
rh4:=if((h> rh1),l,ref(l,barslast((h > rh1))));
rh42:=if((h> rh1),jd,ref(jd,barslast((h > rh1))));
rh5:=if((((h > rh4) and (jd < rh42)) and (jd < j24)),high,ref(h,barslast((((h > rh4) and (jd < rh42)) and (jd < j24)))));
rl1:=if(((jd > l2l) and (ref(jd,1) <= l2l)),llv(ref(l,1),(barslast(((jd <= l2l) and (ref(jd,1) > l2l))) - 1)),ref(llv(ref(low,1),
(barslast(((jd <= l2l) and (ref(jd,1) > l2l))) - 1)),barslast(((jd > l2l) and ref(jd,1)))));
rl4:=if((l< rl1),h,ref(h,barslast((l < rl1))));
rl42:=if((l < rl1),jd,ref(jd,barslast((l < rl1))));
rl5:=if((((l < rl4) and (jd > rl42)) and (jd > j24)),l,ref(l,barslast((((l < rl4) and (jd > rl42)) and (jd > j24)))));
drawtext(((((((cross(ma(c,3),llv(o,30)) and (rl5 - ref(rl5,1)) > 0) and (ma(c,3)- ref(ma(c,3),1)) > 0)and
ma(c,3)> 1)and l <= aas)and c > aas)and h<ssf),l*0.96,'黑'),colorwhite;
drawtext(filter(((((l<sma(l,21,2)* 0.969) and (c> ma(c,15))) and (c> llv(h,30))) and (h< aas)),10),l*0.92,'5%'),colorwhite;
drawtext(((cross(sma(l,5,1),sma(l,21,2) * 0.95) and (l<= ema((3*c+h+l+o)/6,10))) and ((ema((3*c+h+l+o)/6,10) - ref(ema((3*c+h+l+o)/6,10),1)) > 0)),l*0.95,'买'),colorwhite;
rsi1r:=sma(max(c-ref(c,1),0),5,1)/sma(abs(c-ref(c,1)),5,1)*100;
rsi2r:=sma(max(c-ref(c,1),0),8,1)/sma(abs(c-ref(c,1)),8,1)*100;
rsi5:=sma(max(c-ref(c,1),0),6,1)/sma(abs(c-ref(c,1)),6,1)*100;
wr:=-100*(hhv(h,14)-c)/(hhv(h,14)-llv(l,14));
wr反向买点:=-wr-100>-80 and -wr-100<ref(-wr-100,1);
drawtext(rsi5<20 and rsi5>ref(rsi5,1) and wr反向买点,l*0.96,'梁'),colorred;
drawtext(rsi5<20 and rsi5>ref(rsi5,1) and wr反向买点 and cross(rsi1r,20) and (cross(rsi1r,rsi2r) and rsi1r<50) and tjd>ref(tjd,1) and 短线>=20,l*0.95,'↖狮1'),colorwhite;
ap:=ma(c,17)+abs(ma(c,17)-ref(ma(c,17),1));
bp:=ma(c,17)+ma(c,17)-ref(ma(c,17),1);
分水岭:=if(ma(c,17)<bp,bp,ma(c,17));
操作线:分水岭-(ema(c,3)-分水岭),colorred,linethick1;
{pm:=ma(c,5),colorwhite,linethick1;
if(pm>ref(pm,1),pm,drawnull),colorred,linethick1;
if(pm=ref(pm,1),pm,drawnull),colorred;
if(pm<ref(pm,1),pm,drawnull),colorff9900,linethick1;}
hy1:=ref(ema(dma((((h+l)+c*2) / 4.15),0.9),3),1);
bb1:=l<amount/v*0.9;
cc1:=(c-ref(c,1))/ref(c,1)*100>1.2;
dd1:=l<ma(c,5)*0.921;
ee1:=v<ma(v,5)*1.5;
ff1:=bb1 and cc1 and dd1 and ee1;
drawtext(ff1 and cross(c,hy1) and 浮筹3>ref(浮筹3,1) ,l*0.96,'↖短进'),colorred;
散户线:=ema(125*(c-llv(l,20))/(hhv(h,20)-llv(l,20)),7);
庄家线:=ema(125*(c-llv(l,9))/(hhv(h,9)-llv(l,9)),2);
drawtext(散户线<25,l*0.98,'d'),colorwhite,linethick2;
var31:=ema(sma(abs(l-ref((l+o+c+h)/4,1)),13,1)/sma(max(l-ref((l+o+c+h)/4,1),0),10,1),10);
var51:=ema(if(l<=llv(l,33),var31,0),3);
主力进场:=if(var51>ref(var51,1),var51,0);
drawtext(散户线<25 and 主力进场,l*0.94,'d'),colorgreen,linethick2;
百日地量:= v=llv(v,100) and v>0 and barscount(v)>=100;
倍量:= vol>=ref(v,1)*1.9 and c>ref(c,1);
百地_倍量:=ref(百日地量,1) and 倍量;
选股1:=count(百地_倍量,1)>=1; {当选不出时,前面1可调大};
drawtext (选股1,l*0.93,'钻a'),colorgreen;
百日地量2:= ma(v,5)=llv(ma(v,5),100) and barscount(v)>=100;
倍量比:= v>=ref(ma(v,5),1)*1.9 and c>ref(c,1);
百地_倍量2:=ref(百日地量2,1) and 倍量比;
选股2:=count(百地_倍量2,1)>=1; {当选不出时,前面1可调大};
drawtext (选股2,l*0.9,'钻b'),colorgreen;
stickline(vol>(ma(vol,20)*3),o,c,2.5,0),color999999;
stickline(vol>(ma(vol,20)*3),o,c,2.2,0),colorbbbbbb;
stickline(vol>(ma(vol,20)*3),o,c,1.4,0),colordddddd;
stickline(vol>(ma(vol,20)*3),o,c,0.7,0),colorffffff;
红底:=ema((c-llv(l,36))/(hhv(h,30)-llv(l,36))*4,4)*25;
cdma:=ema(ema((c-ma(c,4))/ma(c,4)*100,7),7)*10;
散户q:=100*(hhv(h,60)-c)/(hhv(h,60)-llv(l,60));
rsvq:=(c-llv(l,30))/(hhv(h,30)-llv(l,30))*100;
jq:=3*sma(rsvq,5,1)-2*sma(sma(rsvq,5,1),3,1);
drawtext( 红底<20 and ema(jq,6) >ref(ema(jq,6),1) and ref(ema(jq,6),1)< ref(ema(jq,6),2) and
cdma> ref(cdma,1),l*0.88,'底'),colorwhite;
bdgd:=c=hhv(c,20);
gdsj:=barslast(bdgd);
前高:if(gdsj>0,ref(c,gdsj),ref(c,gdsj)),colorffff00,precis2,pointdot,linethick2;
mtm:=c-ref(c,1);
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
zx:=100*ema(ema(mtm,12),12)/ema(ema(abs(mtm),12),12);
cx:=100*ema(ema(mtm,26),26)/ema(ema(abs(mtm),26),26);
买:=if(llv(dx,2)=llv(dx,7) and count(dx<0,2) and cross(dx,ma(dx,2)),1,0);
卖:=if(hhv(dx,2)=hhv(dx,7) and count(dx>50,2) and cross(ma(dx,2),dx),1,0);
dtpl:=dx>zx and zx>cx and cx>0;
qsxs:=dx>ref(dx,1) and zx>ref(zx,1);
tsjc:=cross(dx,cx) and cross(zx,cx);
优选:=if(cross(dtpl,0.8) and (tsjc or count(qsxs,3)=3) and cx<40,1,0);
drawtext(filter(买=1,5),low*0.99,'▲'),colorred,align1;
drawtext(filter(卖=1,5),high*1.02,'▼'),color00ff00,align1;
a1s:=3*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1)-2*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1);
a54:=((c-llv(l,21))/(hhv(h,21)-llv(l,21)))*100;
趋势线:=(ma(3*sma(a54,6,1)-2*sma(sma(a54,5,1),5,1),2));
drawtext(cross(趋势线,0)and ema(a1s,5)<40,l* 0.93,'▲大黑马'),coloryellow;
上一指标公式:敢死队涨停敢死队详解 大智慧敢死队
下一指标公式:风控长短线详解 大智慧风控长
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文HXZ主图详解 大智慧HXZ仅供学习研究。