趋势画线
最新的主图画线公式。特好用
input: k(2,0,2),n(10,1,255),p1(3,1,255);
bbi:(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4,pointdot,colorffffff;
bbi2:bbi+3*std(bbi,10),pointdot,colormagenta;
bbi3:bbi-3*std(bbi,10),pointdot,colorblue;
b1:=ma(close,1);
b2:=sma(sma(sma(b1,2,1),2,1),2,1) ;
sma2:=ma(b2,3) ;
fillrgn(b2,sma2,b2>sma2),colorred;
fillrgn(b2,sma2,b2<sma2),colorgreen;
var9q:=c= hhv(c,4)and (ref(c,1)>=ref(c,2) or ref(c,1)>=ref(c,3))
or ref(c,1)=hhv(c,4) and close>=ref(c,2)
or ref(c,2)=hhv(c,4) and ref(c,3)=llv(c,4) and c>=ref(c,1)
or ref(c,3)=hhv(c,4) and c>=ref(c,1) and c>=ref(c,2);
红持:var9q,color0000ff,linethick0;
varaq:=c=hhv(c,4) and ref(c,1)=llv(c,4);
粉变:varaq,colorff99ff,linethick0;
varbq:=c=llv(c,4) and (ref(c,1)<ref(c,2) or ref(c,1)<ref(c,3))
or ref(c,1)=llv(c,4) and c<ref(c,2)
or ref(c,2)=llv(c,4) and ref(c,1)<>hhv(c,4) and c<ref(c,1)
or ref(c,3)=llv(c,4) and c<ref(c,1) and c<ref(c,2);
灰跌:varbq,color888888,linethick0;
varcq:=ref(c,1)=llv(c,4) and c>=ref(c,2) or ref(c,2)=llv(c,4)
and ref(c,1)<=ref(c,3) and ref(c,2)<ref(c,4) and c>=ref(c,1);
绿买:varcq,color00ff00,linethick0;
vardq:=ref(c,1)=hhv(c,4) and c<ref(c,2)
or (ref(c,2)=hhv(c,4) and ref(c,1)>ref(c,3)
or ref(c,3)=hhv(c,4) and ref(c,1)>ref(c,2))
and ref(c,2)>=ref(c,4) and c<ref(c,1);
蓝抛:vardq,colorff9900,linethick0;
if datatype>1 then begin;
xxx1:=(c+l+h)/3;
xxx2:ema(xxx1,6),colorffffff,linethick1;
xxx3:ema(xxx2,5),color00ffff,linethick1;
var1111:=backset(ref(high,2)=hhv(high,5),3);
var2222:=cross(var1111,0.9);
var3333:=backset(ref(low,2)=llv(low,5),3);
var4444:=cross(var3333,0.9);
压力: ref(high,barslast(var2222)), pointdot,colorea91b5;
stickline(close,ref(high,barslast(var2222)),ref(high,barslast(var2222)),5,0),colorea91b5;
支撑: ref(low,barslast(var4444)), pointdot,color00b4ff;
stickline(close,ref(low,barslast(var4444)),ref(low,barslast(var4444)),5,0),color00b4ff;
下档线:=(((close - llv(low,13)) / (hhv(high,13) - llv(low,13))) * 100);
arsv:=sma(下档线,3,1);
ak:=sma(arsv,3,1);
ad:=((3 * arsv) - (2 * ak));
aj12:=(((close - llv(low,55)) / (hhv(high,55) - llv(low,55))) * 100);
arsv24:=sma(aj12,3,1);
ak24:=sma(arsv24,3,1);
ad24:=((3 * arsv24) - (2 * ak24));
撑压位:=if(cross(ad24,ad),high,ref(high,barslast(cross(ad24,ad)))){,linethick2,colorffffff};
底:=llv(high,30){,color00ff00,linethick2};
stickline(barstatus=2 ,撑压位,撑压位,30,1),linethick1,colorffffff;
drawtext(barstatus=2 ,撑压位,' 撑压'),colorffffff,valign1;
stickline(barstatus=2 ,底,底,30,1),color00ff00,linethick1;
drawtext(barstatus=2 ,底,' 底线'),color00ff00,valign0;
end;
stickline(close>open,open,low,0.5,0 ),color0000ff;
stickline(close>open,close,high,0.5 ,0 ),color0000ff;
stickline(open>=close,close,low,0.5 ,0 ),color00ff00;
stickline(open>=close,open,high,0.5 ,0 ),color00ff00;
stickline(open>=close ,close ,open,7,0 ),colorff7700;
stickline(open>=close ,close ,open,6,0 ),colorff9900;
stickline(open>=close ,close ,open,5,0 ),colorffbb00;
stickline(open>=close ,close ,open,4,0 ),colorffcc00;
stickline(open>=close ,close ,open,3,0 ),colorffdd00;
stickline(open>=close ,close ,open,2,0 ),colorffee00;
stickline(open>=close ,close ,open,1,0 ),colorffff00;
stickline(close>open,close,open,7,0) ,color000055;
stickline(close>open,close,open,6,0) ,color000066;
stickline(close>open,close,open,5,0) ,color000077;
stickline(close>open,close,open,4,0) ,color000099;
stickline(close>open,close,open,3,0) ,color0000bb;
stickline(close>open,close,open,2,0) ,color0000dd;
stickline(close>open,close,open,1,0) ,color0000ff;
stickline(var9q,c,(o+c)/2,7,0),color000077;
stickline(var9q,c,(o+c)/2,6,0),color000088;
stickline(var9q,c,(o+c)/2,5,0),color0000aa;
stickline(var9q,c,(o+c)/2,4,0),color0000cc;
stickline(var9q,c,(o+c)/2,2,0),color0000ff;
stickline(var9q,c,(o+c)/2,0,0),colorffffff;
stickline(varaq,c,(o+c)/2,7,0),colorff11ff;
stickline(varaq,c,(o+c)/2,6,0),colorff33ff;
stickline(varaq,c,(o+c)/2,5,0),colorff55ff;
stickline(varaq,c,(o+c)/2,4,0),colorff77ff;
stickline(varaq,c,(o+c)/2,3,0),colorff99ff;
stickline(varaq,c,(o+c)/2,2,0),colorffbbff;
stickline(varaq,c,(o+c)/2,1,0),colorffddff;
stickline(varbq,c,(o+c)/2,7,0),color333333;
stickline(varbq,c,(o+c)/2,6,0),color555555;
stickline(varbq,c,(o+c)/2,5,0),color777777;
stickline(varbq,c,(o+c)/2,4,0),color999999;
stickline(varbq,c,(o+c)/2,3,0),colorbbbbbb;
stickline(varbq,c,(o+c)/2,2,0),colordddddd;
stickline(varbq,c,(o+c)/2,1,0),colorffffff;
stickline(varcq,o,(o+c)/2,7,0),color003300;
stickline(varcq,o,(o+c)/2,6,0),color005500;
stickline(varcq,o,(o+c)/2,5,0),color007700;
stickline(varcq,o,(o+c)/2,4,0),color009900;
stickline(varcq,o,(o+c)/2,3,0),color00bb00;
stickline(varcq,o,(o+c)/2,2,0),color00dd00;
stickline(varcq,o,(o+c)/2,1,0),color00ff00;
stickline(vardq,o,(o+c)/2,7,0),colorff1100;
stickline(vardq,o,(o+c)/2,6,0),colorff3300;
stickline(vardq,o,(o+c)/2,5,0),colorff5500;
stickline(vardq,o,(o+c)/2,4,0),colorff7700;
stickline(vardq,o,(o+c)/2,3,0),colorff9900;
stickline(vardq,o,(o+c)/2,2,0),colorffbb00;
stickline(vardq,o,(o+c)/2,1,0),colorffdd00;
v7:=barstatus=2;
v8:=(ref(high,n) = hhv(high,((2 * n) + 1)));
v9:=filter(v8,n);
va:=backset(v9,(n + 1));
vb:=filter(va,n);
vc:=(vb or v7);
vd:=(ref(low,n) = llv(low,((2 * n) + 1)));
ve:=filter(vd,n);
vf:=backset(ve,(n + 1));
v10:=filter(vf,n);
v11:=(v10 and not(vb));
v12:=backset(vc,(ref(barslast(v11),1) + 1));
v13:=(v12 > ref(v12,1));
v14:=backset(v13,2);
v15:=(v14 > ref(v14,1));
v16:=backset((v15 and (count(vc,(ref(barslast(v11),1) + 2)) = 0)),(ref(barslast(v11),1) + 2));
v17:=(v16 > ref(v16,1));
v18:=backset((v17 and (count(vc,(ref(barslast(v11),1) + 2)) = 0)),(ref(barslast(v11),1) + 2));
v19:=(v18 > ref(v18,1));
v1a:=if(vc,count(v11,(ref(barslast(vc),1) + 1)),0);
v1b:=if(((v1a = 1) and vc),barslast(v15),0);
v1c:=if((vc and (ref(low,barslast(v15)) >= ref(low,barslast(v17)))),barslast(v17),barslast(v15));
v1d:=if(((v1a = 2) and vc),v1c,0);
v1e:=if(((v1a >= 3) and vc),if((vc and (ref(low,v1c) >= ref(low,barslast(v19)))),barslast(v19),v1c),0);
v1f:=((v1b + v1d) + v1e);
v20:=backset(vc,v1f);
v21:=(v20 > ref(v20,1));
v22:=backset(v21,2);
v23:=(v22 > ref(v22,1));
v24:=(v23 or v7);
v25:=backset(v24,(ref(barslast(vc),1) + 1));
v26:=(v25 > ref(v25,1));
v27:=backset(v26,2);
v28:=(v27 > ref(v27,1));
v29:=backset((v28 and (count(v24,(ref(barslast(vc),1) + 2)) = 0)),(ref(barslast(vc),1) + 2));
v2a:=(v29 > ref(v29,1));
v2b:=backset((v2a and (count(v24,(ref(barslast(vc),1) + 2)) = 0)),(ref(barslast(vc),1) + 2));
v2c:=(v2b > ref(v2b,1));
v2d:=if(v24,count(vb,(ref(barslast(v24),1) + 1)),0);
v2e:=if(((v2d = 1) and v24),barslast(v28),0);
v2f:=if((v24 and (ref(high,barslast(v28)) <= ref(high,barslast(v2a)))),barslast(v2a),barslast(v28));
v30:=if(((v2d = 2) and v24),v2f,0);
v3b:=if(((v2d >= 3) and v24),if((v24 and (ref(high,v2f) <= ref(high,barslast(v2c)))),barslast(v2c),v2f),0);
v3c:=((v2e + v30) + v3b);
v3d:=backset(v24,v3c);
v3e:=(v3d > ref(v3d,1));
aa:=backset(v3e,2);
aaa:=(aa > ref(aa,1));
bb:=backset(v7,(barslast(aaa) + 1));
cc1:=(bb > ref(bb,1));
cc:=backset(cc1,(ref(barslast(aaa),1) + 2));
aaa2:=(cc > ref(cc,1));
drawline(k=1 and aaa2,high,k=1 and cc1,high,1),pointdot,color00aaaa;
bb2:=(ref(high,4) = hhv(high,((2 * 4) + 1)));
cc22:=filter(bb2,4);
cc2:=backset(cc22,(4 + 1));
ea:=filter(cc2,4);
eb:=(ea or barstatus=2);
a6:=(ref(low,4) = llv(low,((2 * 4) + 1)));
ee:=filter(a6,4);
ff1:=backset(ee,(4 + 1));
ee2:=filter(ff1,4);
ff2:=(ee2 and not(ea));
ee3:=backset(eb,(ref(barslast(ff2),1) + 1));
ff3:=(ee3 > ref(ee3,1));
js:=backset(ff3,2);
g1:=(js > ref(js,1));
ga:=backset((g1 and (count(eb,(ref(barslast(ff2),1) + 2)) = 0)),(ref(barslast(ff2),1) + 2));
g2:=(ga > ref(ga,1));
g3:=backset((g2 and (count(eb,(ref(barslast(ff2),1) + 2)) = 0)),(ref(barslast(ff2),1) + 2));
gg:=(g3 > ref(g3,1));
ja:=if(eb,count(ff2,(ref(barslast(eb),1) + 1)),0);
jb:=if(((ja = 1) and eb),barslast(g1),0);
jj:=if((eb and (ref(low,barslast(g1)) >= ref(low,barslast(g2)))),barslast(g2),barslast(g1));
ld:=if(((ja = 2) and eb),jj,0);
ld1:=if(((ja >= 3) and eb),if((eb and (ref(low,jj) >= ref(low,barslast(gg)))),barslast(gg),jj),0);
hea:=((jb + ld) + ld1);
heb:=backset(eb,hea);
hee:=(heb > ref(heb,1));
hff1:=backset(hee,2);
hee2:=(hff1 > ref(hff1,1));
hff2:=(hee2 or barstatus=2);
hee3:=backset(hff2,(ref(barslast(eb),1) + 1));
hff3:=(hee3 > ref(hee3,1));
hjs:=backset(hff3,2);
hg1:=(hjs > ref(hjs,1));
hga:=backset((hg1 and (count(hff2,(ref(barslast(eb),1) + 2)) = 0)),(ref(barslast(eb),1) + 2));
hg2:=(hga > ref(hga,1));
hg3:=backset((hg2 and (count(hff2,(ref(barslast(eb),1) + 2)) = 0)),(ref(barslast(eb),1) + 2));
hgg:=(hg3 > ref(hg3,1));
hja:=if(hff2,count(ea,(ref(barslast(hff2),1) + 1)),0);
hjb:=if(((hja = 1) and hff2),barslast(hg1),0);
hjj:=if((hff2 and (ref(high,barslast(hg1)) <= ref(high,barslast(hg2)))),barslast(hg2),barslast(hg1));
hd:=if(((hja = 2) and hff2),hjj,0);
x1:=if(((hja >= 3) and hff2),if((hff2 and (ref(high,hjj) <= ref(high,barslast(hgg)))),barslast(hgg),hjj),0);
x2:=((hjb + hd) + x1);
y1:=backset(hff2,x2);
y2:=(y1 > ref(y1,1));
z1:=backset(y2,2);
z2:=(z1 > ref(z1,1));
uu:=backset(barstatus=2,(barslast(hee2) + 1));
vv:=(uu > ref(uu,1));
ww:=backset(barstatus=2,(barslast(z2) + 1));
xx:=(ww > ref(ww,1));
uu2:=if((barslast(vv) < barslast(xx)),vv,xx);
vv2:=if((barslast(vv) < barslast(xx)),low,high);
drawline(k=1 and uu2,vv2,k=1 and barstatus=2,close,0),pointdot,colorff9900;
ww2:=backset(barstatus=2,(barslast(hee2) + 1));
xx2:=(ww2 > ref(ww2,1));
var246:=backset(xx2,(ref(barslast(hee2),1) + 2));
var247:=(var246 > ref(var246,1));
drawline(k=1 and var247,low, k=1 and xx2,low,1),pointdot,color00ffff;
var249:=backset(barstatus=2,(barslast(z2) + 1));
var250:=(var249 > ref(var249,1));
var251:=backset(var250,(ref(barslast(z2),1) + 2));
var252:=(var251 > ref(var251,1));
drawline(k=1 and var252,high, k=1 and var250,high,1),pointdot,color00ffff;
wn:=p1;{原码 n:=3;}
wa1:=ref(h,wn)=hhv(h,2*wn+1); wb1:=filter(wa1,wn); wc1:=backset(wb1,wn+1); wd1:=filter(wc1,wn);{高点}
wa2:=ref(l,wn)=llv(l,2*wn+1); wb2:=filter(wa2,wn); wc2:=backset(wb2,wn+1); wd2:=filter(wc2,wn);{低点}
we1:=(ref(llv(l,2*wn),1)+ref(hhv(h,2*wn),1))/2; we2:=(h+l)/2;{高低点出现在同一k线上时可作取舍}
wh1:=(wd1 and not(wd2 and we1>=we2)) or dispstatus=2 or barscount(c)=1;
wl1:=(wd2 and not(wd1 and we1<we2)); wh2:=wd1 and not(wd2 and we1>=we2);
wx1:=ref(barslast(wh1),1)+1; wf1:=backset(wh1 and count(wl1,wx1)>0,llvbars(if(wl1,l,10000),wx1));
wg1:=wf1>ref(wf1,1); wi1:=backset(wg1,2); wld:=wi1>ref(wi1,1);{过滤后低点}
wl2:=wld or dispstatus=2 or barscount(c)=1;
wx2:=ref(barslast(wl2),1)+1; wf2:=backset(wl2 and count(wh2,wx2)>0,hhvbars(if(wh2,h,0),wx2));
wg2:=wf2>ref(wf2,1); wi2:=backset(wg2,2); whd:=wi2>ref(wi2,1);{过滤后高点}
wr1:=backset(dispstatus=2,barslast(whd)+1); ws1:=wr1>ref(wr1,1); {前一高}
wt1:=backset(dispstatus=2,barslast(wld)+1); wu1:=wt1>ref(wt1,1); {前一低}
wr2:=backset(ws1,ref(barslast(whd),1)+2); ws2:=wr2>ref(wr2,1); {前二高}
wt2:=backset(wu1,ref(barslast(wld),1)+2); wu2:=wt2>ref(wt2,1); {前二低}
wt3:=backset(wu2,ref(barslast(wld),1)+2); wu3:=wt3>ref(wt3,1); {前三低}
wt4:=backset(wu3,ref(barslast(wld),1)+2); wu4:=wt4>ref(wt4,1); {前四低}
wr3:=backset(ws2,ref(barslast(whd),1)+2); ws3:=wr3>ref(wr3,1); {前三高}
wr4:=backset(ws3,ref(barslast(whd),1)+2); ws4:=wr4>ref(wr4,1); {前四高}
drawline(k=2 and ws2,h,k=2 and ws1,h,1),color008888; {★压力1:}
drawline(k=2 and wu2,l,k=2 and wu1,l,1),pointdot,color008888;{★支撑1:}
drawline(k=2 and ws3,h,k=2 and ws2,h,1),color888000; {★压力2:}
drawline(k=2 and wu3,l,k=2 and wu2,l,1),pointdot,color888000;{★支撑2:}
drawline(k=2 and ws4,h,k=2 and ws3,h,1),color0000cc;{★压力3:}
drawline(k=2 and wu4,l,k=2 and wu3,l,1),pointdot,color0000cc;{★支撑3:};
底:=sum(ma(close,10),9)/11.114;
drawtext(cross(low,底) and ref(底,1)>ref(high,1) or cross(high,底),0.85*close,'---铁底'),color00ff00;
x1:=(3*close+high+low+open)/6;
x2:=ema(x1,10);
x3:=ref(x2,1);
x4:=(ref(high,1)+ref(low,1))/2;
x5:=ma(close,21)+2*std(close,21);
x6:=ref(close,1);
x7:=(sma(max(close-x6,0),7,1))/(sma(abs(close-x6),7,1))*100;
x8:=cross(79,x7);
x9:=filter(x8,4);
wz1:=pow(ma(close,5),2)+ma(close,5);
wz2:=pow(ma(low,5),2)+ma(low,5);
wz3:=pow(ma(high,5),2)+ma(high,5);
wz4:=(wz1-llv(wz2,9))/(hhv(wz3,9)-llv(wz2,9))*150+65;
dk:=sma(wz4,3,1)*1.5;
dd:=sma(dk,3,1);
dj:=3*dk-2*dd;
wz5:=ema(close,12)-ema(close,26);
wz6:=ema(wz5,9);
wz7:=2*(wz5-wz6);
wz8:=ref(wz7,1);
wz9:=cross(wz8,wz7) and wz8>0;
var1t:=ema(close,8);
var2t:=ema(var1t,20);
var3t:=cross(var1t,var2t);
var4t:=var1t<ma(close,120);
var5t:=(hhv(high,36)-close)/(hhv(high,36)-llv(low,36))*100;
var6t:=sma(var5t,5,1);
var7t:=sma(var6t,8,1);
var8t:=cross(var6t,var7t) and var7t<20;
var9t:=close>llv(close,60)+0.3*llv(close,60) and var8t;
vara:=if(close>1000,var8t,var9t);
起步:=var3t and var4t;
逃遁:=vara;
xl1:=ema(close,10)/100;
xl2:=ma((xl1-ref(xl1,10))/ref(xl1,10),3)*100;
xl3:=ma(xl2,3);
xl4:=sma((close-llv(low,9))/(hhv(high,9)-llv(low,9))*100,3,1);
drawtext(if(cross(3*xl4-2*sma(xl4,3,1),8),87,0) and x2>x3,low-0.1,'←反弹'),colorred;
drawtext(if(cross((var1t-llv(var1t,4))/(hhv(var1t,4)-llv(var1t,4))*4*25,87.5) and var1t<40,87,0) and x2>x3,low-0.15,'←短买'),colorffff00;
drawtext(if(cross(2*(ema((close*2+high+low)/4,12)-ema((close*2+high+low)/4,26)-(ema(ema((close*2+high+low)/4,12)-ema((close*2+high+low)/4,26),2)))*5.8,0.47),low,0) and x2>x3,low-0.2,'←加仓'),colorff5ed8;
drawtext(cross(x4,x5),high*1.01,'←减'),color00ff00;
drawtext(filter((wz9 and dj>250) or x9 ,5),high*1.02,'←跑'),colorbcff8b;
stickline(起步>0,high,low,0.8,0),color00ffff;
stickline(起步>0,open,close,5,0),color00ffff;
drawtext(逃遁>0,high*1.04,'●←逃'),color7fffd6;
sam:=(c+l+h)/3;
bb13:=atan(ema(sam,13)-ref(ema(sam,13),1))*3.1416*10;
ema8:=ema(c,8);
drawtext(filter(bb13>1 and ema(sam,13)>ref(ema(sam,8),1),10),
ema8,'∠45上升'),colorwhite;
var3aa:=if((close>ref(close,1)),88,0);
var4aa:=if(((close)/(ref(close,1))>1.05) and ((high)/(close)<1.01) and (var3aa>0),91,0);
drawtext(filter((var4aa>90),45),(low)*(0.94999998),'★大胆搏 '),color00ffff;
l23:=ma(100*(close-llv(close,34))/(hhv(high,34)-llv(low,34)),5)-20;
l24:=(high+low+close)/3;
l25:=(l24-ma(l24,14))/(0.015*avedev(l24,14));
l26:=(l24-ma(l24,70))/(0.015*avedev(l24,70));
l27:=if(l25>=150 and l25<200 and l26>=150 and l26<200,10,0);
l28:=if(l25<=-150 and l25>-200 and l26<=-150 and l26>-200,-10,l27);
l29:=100-abs((close-ma(close,13))/ma(close,13)*100);
l30:=if(l29<90,l29,100);
l31:=if(l23>0,l23,0);
xl1:=(if(l28>=200 and l25>=150,15,if(l26<=-200 and l25<=-150,-15,l28)))+60;
xl2:=l31>48 and xl1>60 and l30<100;
drawtext(xl2 and count(xl2,30)=1,l,'大笔成交'),colorff00ff;
mtm:=c-ref(c,1);
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
买:=if(llv(dx,2)=llv(dx,7) and count(dx<0,2) and cross(dx,ma(dx,2)),1,0);
drawtext(filter(买=1,5),low-0.3,'▲拉升'),colormagenta;
{放量股价上穿布林中轨}
放量:=close>ma(close,24) and vol/ref(vol,1)>2;
上一指标公式:收费版分时BBD+DDX公式下载 大智慧BBD收费
下一指标公式:大底与小底L2公式下载 大智慧大智慧
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文趋势画线公式下载 大智慧趋势仅供学习研究。