炒着玩的三个主图公式
czw-b
{czw-b}
{n1: 7; 1; 100}
a03:=datatype;
a08:=ma(close, 20);
a0a:=if(a03=2 ,"cdp.al#min1" ,if(a03=3 ,"cdp.al#min5" ,if(a03=4 ,"cdp.al#min15" ,if(a03=5 ,"cdp.al#min30" ,if( a03=6,"cdp.al#min60" ,if(a03=7 ,"cdp.al#day" ,if(a03=8 ,"cdp.al#week" , if(a03=9 ,"cdp.al#month" ,"cdp.al#day" ))))))));
a0b:=if(a03=2 ,"cdp.ah#min1" ,if(a03=3 ,"cdp.ah#min5" ,if(a03=4 ,"cdp.ah#min15" ,if(a03=5 ,"cdp.ah#min30" ,if( a03=6,"cdp.ah#min60" ,if(a03=7 ,"cdp.ah#day" ,if(a03=8 ,"cdp.ah#week" , if(a03=9 ,"cdp.ah#month" ,"cdp.ah#day" ))))))));
a09:=if(a03=2 ,"cdp.cdp#min1" ,if(a03=3 ,"cdp.cdp#min5" ,if(a03=4 ,"cdp.cdp#min15" ,if(a03=5 ,"cdp.cdp#min30" ,if( a03=6,"cdp.cdp#min60" ,if(a03=7 ,"cdp.cdp#day" ,if(a03=8 ,"cdp.cdp#week" , if(a03=9 ,"cdp.cdp#month" ,"cdp.cdp#day" ))))))));
a0c:=if((a08>ref(a08,1)),a09,a0b);
a0d:=if((a08<ref(a08,1)),a0a,a09);
a0e:=if((a08>ref(a08,1)),a0c,a0d);
a12:=ma(a0e,10);
voo:=month<>ref(month,1);
vd11:=barslast(voo);
vd22:=ref(vd11,vd11+1);
ccc:=ref(c,vd11+1);
koo:=ref(o,vd22+1);
hhh:=hhv(ref(h,1),vd22);
lll:=llv(ref(l,1),vd22);
vo:=weekday=1;
vd1:=barslast(vo);
vd2:=ref(vd1,vd1+1);
cc:=ref(c,vd1+1);
ko:=ref(o,vd2+1);
hh:=hhv(ref(h,1),vd2);
ll:=llv(ref(l,1),vd2);
周收阳:if(vo and cc>ko,l,h),colorred,linethick0;
stickline(vo and cc>ko,h,l,0,1),colorred;
stickline(vo and cc>ko,o,c,4,1),colorred;
周收阴:if(vo and cc<=ko,l,h),colorffff52,linethick0;
stickline(vo and cc<=ko,h,l,0,1),colorffff52;
stickline(vo and cc<=ko,o,c,4,0),colorffff52;
月收阳:if(voo and ccc>koo,l,h),colorff00ff,linethick0;
stickline(voo and ccc>koo,h,l,0,1),colorff00ff;
stickline(voo and ccc>koo,o,c,4,1),colorff00ff;
月收阴:if(voo and ccc<=koo,l,h),color00ff00,linethick0;
partline(a0e>=ref(a0e,5),a0e),coloryellow;
partline(a0e< ref(a0e,5),a0e),colormagenta;
partline(a12>=ref(a12,1),a12),colormagenta,linethick2;
partline(a12<ref(a12,1),a12),colorgreen,linethick2;
stickline(voo and ccc<=koo,h,l,0,1),color00ff00;
stickline(voo and ccc<=koo,o,c,4,0),color00ff00;
上市年:ref(year,barscount(c)-1),linethick0,colorgreen;
月:ref(month,barscount(c)-1),linethick0,colormagenta;
n2:=sysparam(3);
n:=n2-sysparam(2)+1;
hh:=hhv(h,n);
ll:=llv(l,n);
k2:hh[n1];
k1:ll[n1];
aa1:=amount/vol;
bb1:=l<aa1*0.9;
cc1:=(c-ref(c,1))/ref(c,1)*100>1.2;
dd1:=l<ma(c,5)*0.921;
ee1:=vol<ma(v,5)*1.5;
ff1:bb1 and cc1 and dd1 and ee1,linethick0;
drawtext(ff1,l*0.995,'老鼠仓'),color00ff00;
stickline(ff1,h,l,0.5,0),color00ff00;
stickline(ff1,o,c,6,1),linethick2,color00ff00;
drawtext(l>ref(h,1),ref(h,1),'←<'),colorred;{//上涨缺口}
drawtext(h<ref(l,1),ref(l,1),'←<'),colorgreen;{//下跌缺口}
varr1:=sma(max(close-ref(close,1),0),6,1)/sma(abs(close-ref(close,1)),6,1)*100;
drawicon(cross(82,varr1),high*1.002,2),align1;
drawtext(cross(82,varr1),high*1.005,'▲风险↓'),coloryellow,align2;
aaa:=barscount(c);
aah:=hhv(h,200);
aal:=llv(l,200);
ab0:=(aah-aal)/40;
ab1:=h+ab0;
ab2:=l-ab0;
stickline((aaa+0)/34=floor((aaa+0)/34),ab2,ab2-3*ab0,3,0),coloryellow;
drawtext((aaa+0)/34=floor((aaa+0)/34),ab2-2*ab0,'时间窗'),colorffffff;
vvar1:=winner(close);
vvar2:=vol/capital;
vvar3:=vvar2/vvar1;
财神线:=if(vvar1<n1/100 ,vvar3,0);
drawicon(财神线>1,k1,8),align1;
drawicon(财神线<ref(财神线>1,1) and 财神线>0.5 and 财神线<1,k1,9),align1;
var1:=ema(close,30)-ema(close,17);
var2:=ema(var1,5);
drawtext(cross(var1,var2) and troughbars(3,7,1)<1,l*0.993,'震◎仓'),align0,coloryellow;
a1:=barslast(ref(cross("macd.diff","macd.dea"),1));
b1:=ref(c,a1+1)>c and ref("macd.diff",a1+1)<"macd.diff" and cross("macd.diff","macd.dea");
drawtext(filter(b1>0,5),l-0.01,'macd底背'),colorgreen;
a2:=barslast(ref(cross("kdj.k","kdj.d"),1));
b2:=ref(c,a2+1)>c and ref("kdj.k",a2+1)<"kdj.k" and cross("kdj.k","kdj.d");
drawtext(filter(b2>0,5),l-0.02,'kdj底背'),coloryellow;
a3:=barslast(ref(cross("rsi.rsi1","rsi.rsi2"),1));
b3:=ref(c,a3+1)>c and ref("rsi.rsi1",a3+1)<"rsi.rsi1" and cross("rsi.rsi1","rsi.rsi2");
drawtext(filter(b3>0,5),l*0.98,'rsi底背'),colorcyan;
c1:=barslast(ref(cross("macd.dea","macd.diff"),1));
d1:=ref(c,c1+1)<c and ref("macd.diff",c1+1)>"macd.diff" and cross("macd.dea","macd.diff");
drawtext(filter(d1>0,5),h+0.04,'macd顶背'),colorwhite,align2;
c2:=barslast(ref(cross("kdj.d","kdj.k"),1));
d2:=ref(c,c2+1)<c and ref("kdj.k",c2+1)>"kdj.k" and cross("kdj.d","kdj.k");
drawtext(filter(d2>0,5),h+0.06,'kdj顶背'),colorwhite,align2;
c3:=barslast(ref(cross("rsi.rsi2","rsi.rsi1"),1));
d3:=ref(c,c3+1)<c and ref("rsi.rsi1",c3+1)>"rsi.rsi1" and cross("rsi.rsi2","rsi.rsi1");
drawtext(filter(d3>0,5),h+0.08,'rsi顶背'),colormagenta,align2;
ac:=c;
ah:=h;
al:=l;
ao:=o;
stickline(ac>=ao,ah,ac,1,0),color225588;
stickline(ac>=ao,ah,ac,0,0),color66ccff;
stickline(ac>=ao,ao,al,1,0),color225588;
stickline(ac>=ao,ao,al,0,0),color66ccff;
stickline(ac>ao,ac,ao,8,0),color225588;
stickline(ac>ao,ac,ao,7,0),color226699;
stickline(ac>ao,ac,ao,6,0),color3377aa;
stickline(ac>ao,ac,ao,5,0),color3388bb;
stickline(ac>ao,ac,ao,4,0),color4499cc;
stickline(ac>ao,ac,ao,3,0),color44aadd;
stickline(ac>ao,ac,ao,2,0),color55bbee;
stickline(ac>ao,ac,ao,1,0),color66ccff;
stickline(ac<=ao,ah,ac,1,0),color888800;
stickline(ac<=ao,ah,ac,0,0),colorffff00;
stickline(ac<=ao,ao,al,1,0),color888800;
stickline(ac<=ao,ao,al,0,0),colorffff00;
stickline(ac<=ao,ac,ao,8,0),color888800;
stickline(ac<=ao,ac,ao,7,0),color999900;
stickline(ac<=ao,ac,ao,6,0),coloraaaa00;
stickline(ac<=ao,ac,ao,5,0),colorbbbb00;
stickline(ac<=ao,ac,ao,4,0),colorcccc00;
stickline(ac<=ao,ac,ao,3,0),colordddd00;
stickline(ac<=ao,ac,ao,2,0),coloreeee00;
stickline(ac<=ao,ac,ao,1,0),colorffff00;
a:=hhv(ma((l+h+c)/3,3),3);
b:=llv(ma((l+h+c)/3,3),5);
a150:ema(close, 150);
drawtext(c>0 and sysparam(2),((h+l)/2)*1.05,' '+'+5%'),color63806a;
drawtext(c>0 and sysparam(2),((h+l)/2)*1.03,' '+'+3%'),color63806a;
drawtext(c>0 and sysparam(2),((h+l)/2)*0.95,' '+'-5%'),color63806a ,linethick2;
drawtext(c>0 and sysparam(2),((h+l)/2)*0.97,' '+'-3%'),color63806a,linethick2;
drawtext(c>0 and c>=a and sysparam(2),a*1.015,'多←--'),coloryellow,align2;
stickline(c>0 and sysparam(2),a,a,20,0),coloryellow,linethick2;
drawtext(c>0 and sysparam(2),a,' '+numtostr(a , 3)),coloryellow,align1;
stickline(c>0 and sysparam(2),b,b,20,0),colorred,linethick2;
drawtext(c>0 and sysparam(2),b,' '+numtostr(b , 3)),colorred,align1;
stickline(c>0 and sysparam(2),((h+l)/2),((h+l)/2),4,0),colorblue,linethick2;
drawtext(c>0 and sysparam(2),(h+l)/2,' '+numtostr((h+l)/2,3)),colorgreen;
drawtext(c>0 and ref(c,1)<ref(a,1) and c>=a and sysparam(2),a*0.995,'进←--'),coloryellow,align2;
drawtext(c>0 and ref(c,1)>ref(a,1) and c<a and sysparam(2),a*1.01,'↓减--'),coloryellow,align2;
drawtext(c>0 and ref(c,1)>ref(b,1) and c<b and sysparam(2),a*0.995,'↓逃--'),colorgreen,align2;
个股msd:=ema(100*(c-llv(low,34))/(hhv(h,34)-llv(low,34)),3);
大盘msd:=ema(100*(indexc-llv(indexl,34))/(hhv(indexh,34)-llv(indexl,34)),3);
q1:=个股msd<=20 and 大盘msd<=20;
q2:=个股msd>=20 and 大盘msd<=20 and range(个股msd,20,50) and 个股msd> ref(个股msd,2);
q3:=range(个股msd,50,80) and range(大盘msd,20,50) and 个股msd>=ref(个股msd,1) and 大盘msd>ref(大盘msd,1);
q5:=range(大盘msd,80,100) and cross(个股msd,50) and 个股msd<80 and 个股msd>=ref(个股msd,2);
q6:=大盘msd<20 and cross(个股msd,50) ;
q7:=range(大盘msd,50,20 ) and 个股msd<=20 and 个股msd<ref(个股msd,2);
q8:=大盘msd<ref(大盘msd,2) and 个股msd<ref(个股msd,2) and 大盘msd<80 and 个股msd<80 and 大盘msd>50 and 个股msd>50;
q9:=大盘msd<ref(大盘msd,2) and 个股msd<ref(个股msd,2) and 大盘msd<50 and 个股msd<50 and 大盘msd>20 and 个股msd>20;
q10:=大盘msd< ref(大盘msd,2) and range(个股msd,20,50) and range(大盘msd,20,50) and 个股msd>ref(个股msd,1)and cross(个股msd,大盘msd);
q11:=range(个股msd,80,100) and range(大盘msd,80,100) and 大盘msd<=ref(大盘msd,2) and 个股msd<=ref(个股msd,1);
q12:=range(个股msd,50,80) and range(大盘msd,50,80) and 大盘msd<=ref(大盘msd,2) and 个股msd>=ref(个股msd,1) and cross(个股msd,大盘msd);
q13:=range(个股msd,80,100) and range(大盘msd,80,100) and 大盘msd>=ref(大盘msd,1) and 个股msd>=ref(个股msd,1);
q14:=range(个股msd,50,80) and range(大盘msd,50,80) and 大盘msd>=ref(大盘msd,1) and 个股msd>=ref(个股msd,1);
q15:=range(个股msd,50,80) and range(大盘msd,80,100) and 个股msd>=ref(个股msd,1);
q16:=range(个股msd,80,100) and range(大盘msd,50,80) and 个股msd>=ref(个股msd,1) and 大盘msd<=ref(大盘msd,1);
q17:=range(个股msd,80,100) and range(大盘msd,50,80) and 个股msd<=ref(个股msd,1) and 大盘msd<=ref(大盘msd,1);
q18:=range(个股msd,20,50) and range(大盘msd,0,20) and 个股msd<=ref(个股msd,1)and 大盘msd<=ref(大盘msd,1);
q19:=range(个股msd,20,50) and range(大盘msd,0,20) and 个股msd<=ref(个股msd,1)and 大盘msd<=ref(大盘msd,1) and ref(大盘msd,1)>20 and ref(大盘msd,2)>20 and ref(大盘msd,3)<20;
q20:=range(个股msd,0,20) and range(大盘msd,20,50) and 大盘msd>=ref(大盘msd,1);
q22:=range(个股msd,50,80) and range(大盘msd,20,50) and 个股msd>ref(个股msd,1) and ref(个股msd,1)<ref(个股msd,2) ;
drawtext(c>0 and barpos=sysparam(2),k2*1.04,' 【个股大盘对比分析】'),coloryellow,align2;
//drawtextex(sz1[sysparam(1)],0,320,25,'调整结束短线介入'),colorred;
drawtextex(q1[sysparam(1)],0,320,25,'指数与个股的msd同时处于相对低位区,表明个股与大盘同步下跌,表明大盘与个股处于历史低位,密切关注可能的向上突破。'),colorff00ff,align2;
drawtextex(q2[sysparam(1)],0,320,25,'指数msd处于低位,个股msd脱离低位区并向上突破,表明有庄先行介入,择机买入;'),colorred,align2;
drawtextex(q3[sysparam(1)],0,320,25,'大盘反弹,个股已经突破分水岭,进入强势;'),colorred,align2;
drawtextex(q5[sysparam(1)],0,320,25,'后来者居上,个股主升浪开始,买入;'),coloryellow,align2;
drawtextex(q6[sysparam(1)],0,320,25,'个股逆市上涨,突破分水岭,择机介入,机者成交量,均线和k线的配合;'),colorgreen,align2;
drawtextex(q7[sysparam(1)],0,320,25,'个股逆市下跌,关注对于20试庄线的突破;'),colorred,align2;
drawtextex(q8[sysparam(1)],0,320,25,'个股随同大盘顺势下跌,个股行情结束,下跌刚刚开始.;'),coloryellow,align2;
drawtextex(q9[sysparam(1)],0,320,25,'个股顺势继续下跌,个股行情仍没有见底迹象;'),coloryellow,align2;
drawtextex(q10[sysparam(1)],0,320,25,'大盘下跌而个股上涨选择买入时机;'),coloryellow,align2;
drawtextex(q11[sysparam(1)],0,320,25,'大盘与个股皆处强势拉升的未期,有可能转势,择机卖出;'),colorgreen,align2;
drawtextex(q12[sysparam(1)],0,320,25,'大盘从高位下跌,而个股逆市上涨,有拉高出货的嫌疑,仔细分析,择机出局;'),colorgreen,align2;
drawtextex(q13[sysparam(1)],0,320,25,'大盘与个股皆处强势拉升中期;'),colorgreen,align2;
drawtextex(q14[sysparam(1)],0,320,25,'大盘与个股皆处强势拉升的初级阶段;'),colorgreen,align2;
drawtextex(q15[sysparam(1)],0,320,25,'大盘处于超强势,个股拉升渐渐进入强势;'),colorgreen,align2;
drawtextex(q16[sysparam(1)],0,320,25,'大盘处于拉升未期,刚开始下跌,个股反而逆市上涨,寻找介入和出货点;'),colorgreen,align2;
drawtextex(q17[sysparam(1)],0,320,25,'大盘处于拉升未期,刚开始下跌,个股也处拉升的未期,注意见顶;'),colorgreen,align2;
drawtextex(q18[sysparam(1)],0,320,25,'大盘处于下跌未期,可能是最后一跌,个股可能还有一跌,现在不是介入时机,等待介入时机;'),colorgreen,align2;
drawtextex(q19[sysparam(1)],0,320,25,'大盘刚突破底部又开始下跌,寻找介入时机;'),colorgreen,align2;
drawtextex(q20[sysparam(1)],0,320,25,'大盘刚突破底部,个股仍处于底部,寻找介入时机;'),colorgreen,align2;
drawtextex(q22[sysparam(1)],0,320,25,'个股洗盘结束,再次起动,有可能是领涨股龙头;'),colorgreen,align2;
drawtext(c>0 and barpos=sysparam(2),k1,'* * * 炒着玩 * * *'),colorffcccc,align0;
///////
czw-g
drawbkbmp(close>0,'a008');
{p1:3,0,30;p2:6,1,300;p3:18,1,300;p4:250,0,300}
var1:=(c+l+h)/3;
var2:=ema(var1,6);
var3:=ema(var2,5);
var4:=ema(var3,12);
var5:=ema(var4,5);
生命线:ema(var3,30),colorred,pointdot;
drawicon(c>=生命线,生命线,10);
drawicon(c<生命线,生命线,11);
a:=hhv(ma((l+h+c)/3,3),3);
b:=llv(ma((l+h+c)/3,3),10);
stickline(barscount(c)=sysparam(1),a,a,20,0),coloryellow,linethick3,shift1;
drawnumber(barscount(c)=sysparam(1),a,a,3),shift3,coloryellow;
stickline(barscount(c)=sysparam(1),b,b,20,0),colordb3fdd,linethick3,shift1;
drawnumber(barscount(c)=sysparam(1),b,b,3),shift3,colordb3fdd;
drawtext(sysparam(2)=barpos,c,' '+blkname),colorccffcc,align4;//板块
a1:=cost(95);
a2:=cost(5);
ly:=(a1-a2)*100/(a1+a2);
drawicon(ly>ref(ly,1), l*0.98,8)align5;
n:=p1;{原码 n:=3;}
a1:=ref(h,n)=hhv(h,2*n+1); b1:=filter(a1,n); c1:=backset(b1,n+1); d1:=filter(c1,n);{高点}
a2:=ref(l,n)=llv(l,2*n+1); b2:=filter(a2,n); c2:=backset(b2,n+1); d2:=filter(c2,n);{低点}
e1:=(ref(llv(l,2*n),1)+ref(hhv(h,2*n),1))/2; e2:=(h+l)/2;{高低点出现在同一k线上时可作取舍}
h1:=(d1 and not(d2 and e1>=e2)) or islastbar or barscount(c)=1;
l1:=(d2 and not(d1 and e1<e2)); h2:=d1 and not(d2 and e1>=e2);
x1:=ref(barslast(h1),1)+1; f1:=backset(h1 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),linethick0;{过滤后低点}
l2:=ld or islastbar or barscount(c)=1;
x2:=ref(barslast(l2),1)+1; f2:=backset(l2 and count(h2,x2)>0,hhvbars(if(h2,h,0),x2));
g2:=f2>ref(f2,1); i2:=backset(g2,2); hd:=i2>ref(i2,1),linethick0;{过滤后高点}
///hd:="jgb.hd"(n);ld:="jgb.ld"(n);
r1:=backset(islastbar,barslast(hd)+1); s1:=r1>ref(r1,1); {前一高}
t1:=backset(islastbar,barslast(ld)+1); u1:=t1>ref(t1,1); {前一低}
r2:=backset(s1,ref(barslast(hd),1)+2); s2:=r2>ref(r2,1); {前二高}
t2:=backset(u1,ref(barslast(ld),1)+2); u2:=t2>ref(t2,1); {前二低}
t3:=backset(u2,ref(barslast(ld),1)+2); u3:=t3>ref(t3,1); {前三低}
t4:=backset(u3,ref(barslast(ld),1)+2); u4:=t4>ref(t4,1); {前四低}
r3:=backset(s2,ref(barslast(hd),1)+2); s3:=r3>ref(r3,1); {前三高}
r4:=backset(s3,ref(barslast(hd),1)+2); s4:=r4>ref(r4,1); {前四高}
★压力1:drawline(s2,h,s1,h,1),color80ffff,linethick2;
★支撑1:drawline(u2,l,u1,l,1),pointdot,color00ffff;
★压力2:drawline(s3,h,s2,h,1),colorff8000;
★支撑2:drawline(u3,l,u2,l,1),pointdot,colorff8000;
★压力3:drawline(s4,h,s3,h,1),color0000ff;
★支撑3:drawline(u4,l,u3,l,1)pointdot,color0000ff;
drawicon(s2,h*1.01,10); drawicon(s3,h*1.01,10);
drawnumber(s2,h*1.02,h,2),colormagenta;
drawnumber(s1,h*1.02,h,2),colormagenta;
drawnumber(s3,h*1.02,h,2),colormagenta;
drawicon(u1,l*0.99,11); drawicon(u2,l*0.99,11);
drawicon(u3,l*0.99,11);drawicon(u4,l*0.99,11);
drawnumber(u1,l*0.98,l,2),colorcyan;
drawnumber(u2,l*0.98,l,2),colorcyan;
drawnumber(u3,l*0.98,l,2),colorcyan;
drawnumber(u4,l*0.98,l,2),colorcyan;
stickline(open>=close ,close ,open,0,0 ),color00ff00;
stickline(open>=close ,close ,open,8,0 ),color008800;
stickline(open>=close ,close ,open,7,0 ),color009900;
stickline(open>=close ,close ,open,6,0 ),color00aa00;
stickline(open>=close ,close ,open,5,0 ),color00bb00;
stickline(open>=close ,close ,open,4,0 ),color00cc00;
stickline(open>=close ,close ,open,3,0 ),color00dd00;
stickline(open>=close ,close ,open,2,0 ),color00ee00;
stickline(open>=close ,close ,open,1,0 ),color00ff00;
stickline(close>open,close,open,0,0) ,colorffbbff;
stickline(close>open,close,open,8,0) ,colorff00ff;
stickline(close>open,close,open,7,0) ,colorff22ff;
stickline(close>open,close,open,6,0) ,colorff44ff;
stickline(close>open,close,open,5,0) ,colorff66ff;
stickline(close>open,close,open,4,0) ,colorff88ff;
stickline(close>open,close,open,3,0) ,colorff99ff;
stickline(close>open,close,open,2,0) ,colorffaaff;
stickline(close>open,close,open,1,0) ,colorffbbff;
explain(c>0 ,'〓 k 线形态分析 〓 '),colorffffff;
★早晨之星:=ref(close,2)/ref(open,2) < 0.95 and ref(open,1) < ref(close,2) and abs(ref(open,1)-ref(close,1))/ref(close,1)<0.03 and
close/open>1.05 and close>ref(close,2);
★黄昏之星:=ref(close,2)/ref(open,2) > 1.03 and ref(open,1) > ref(close,2) and abs(ref(open,1)-ref(close,1))/ref(close,1)<0.02 and
close/open<0.97 and close<ref(close,2);
★长十字:=close=open and high/low >1.03;
★垂死十字:=close=open and close=low and close<>high;
★早晨十字星:=ref(close,2)/ref(open,2) < 0.95 and ref(open,1) < ref(close,2) and ref(open,1)=ref(close,1) and
close/open>1.05 and close>ref(close,2);
★黄昏十字星:=ref(close,2)/ref(open,2) > 1.05 and ref(open,1) > ref(close,2) and ref(open,1)=ref(close,1) and
close/open<0.95 and close<ref(close,2);
★射击之星:=min(open,close)=low and high-low > 3*(max(open,close)-low) and close > ma(close,5);
★倒转锤头:=min(open,close)=low and high-low > 3*(max(open,close)-low) and close < ma(close,5);
★锤头:=high = max(open,close) and high-low > 3*(high-min(open,close)) and close < ma(close,5);
★吊颈:=high = max(open,close) and high-low > 3*(high-min(open,close)) and close>ma(close,5);
★穿头破脚:=(ref(close,1)/ref(open,1)>1.03 and close/open<0.96 and close<ref(open,1) and open>ref(close,1))
or (ref(close,1)/ref(open,1)<0.97 and close/open>1.04 and close>ref(open,1) and open<ref(close,1));
★乌云盖顶:=ref(close,1)/ref(open,1)>1.03 and close/open<0.97 and open>ref(close,1) and close<ref(close,1);
★曙光初现:=ref(close,1)/ref(open,1)<0.97 and close/open>1.03 and open<ref(close,1) and close>ref(close,1);
★身怀六甲:=abs(ref(close,1)-ref(open,1))/ref(close,1) > 0.04 and abs(close-open)/close<0.005 and
max(close,open) < max(ref(close,1),ref(open,1)) and min(close,open) > min(ref(close,1),ref(open,1));
★十字胎:=abs(ref(close,1)-ref(open,1))/ref(close,1) > 0.04 and close=open and
close < max(ref(close,1),ref(open,1)) and close > min(ref(close,1),ref(open,1));
★平顶:=abs(high-ref(high,1))/high<0.001;
★平底:=(abs(low-ref(low,1))/low<0.001 and abs(ref(low,1)-ref(low,2))/ref(low,1)<=0.001);
★大阳烛:=close/open>1.05 and high/low < close/open+0.018;
★红三兵:=ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1) and close>open
and ref(close,1)>ref(close,2) and close>ref(close,1);
★双飞乌鸦:=ref(close,1)<ref(open,1) and close<open and close/open<0.98;
★孕育线:=ref(close,2)>ref(open,2) and (ref(close,2)-ref(open,2))/ref(open,2)>=2/100 and ref(open,1)>=ref(close,1) and
(ref(open,1)-ref(close,1))/ref(close,1)<=2/100 and ref(open,1)<=ref(close,2) and ref(close,1)>=ref(open,2) and c>=open and
(close-open)/open>=2/100 and close>=ref(open,1) and open<=ref(close,1) and (max(close,ref(c,2))-min(close,ref(close,2)))/min(close,ref(close,2))<=1/100;
★多方炮:=ref(close,2)>ref(open,2) and ref(close,1)<ref(open,1) and close>open;
★出水芙蓉:=(open<ema(c,20) or open<ema(c,40) or open<ema(c,60)) and (c>max(ema(c,20),max(ema(c,40),ema(c,60))))
and (v/ma(v,30)>1.2 and c/ref(c,1)>1.049);
★上升三部曲:=ref(close,4)/ref(open,4)>1.03 and ref(close,3)<ref(open,3) and ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and
ref(low,4)<ref(low,3) and ref(low,4)<ref(low,2) and ref(low,4)<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and
ref(high,4)>ref(high,1) and close/open>1.03 and close>ref(close,4);
★下跌三部曲:= ref(close,4)/ref(open,4)<0.97 and ref(close,3)>ref(open,3) and ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1) and ref(low,4)<ref(low,3) and
ref(low,4)<ref(low,2) and ref(low,4)<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and ref(high,4)>ref(high,1) and close/open<0.97 and
close<ref(close,4);
★跳空缺口:=high<ref(low,1) or low>ref(high,1);
★三只乌鸦:=ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and close<open and ref(close,1)<ref(close,2) and close<ref(close,1);
★光脚阴线:=low=close and high<>low;
★光头阳线:=high=close and high<>low;
★分离:=open=ref(open,1) and (close-open)*(ref(close,1)-ref(open,1))<0;
★长下影:=(min(close,open)-low)/(high-low)>0.667;
★长上影:=(high-max(close,open))/(high-low)>0.667;
★十字星:=close=open and high<>low;
★大阴烛:=open/close > 1.05 and high/low < open/close+0.018;
★好友反攻:=(ref(close,1)<ref(open,1) and close>open and abs(close-ref(close,1))/close<0.002)
or (ref(close,1)>ref(open,1) and close<open and abs(close-ref(close,1))/close<0.002);
★倾盆大雨:=ref(c,1)/ref(o,1)>=1.03 and o<ref(c,1) and o>ref(o,1) and c<ref(o,1);
explain(★倾盆大雨,'★倾盆大雨★见顶信号;'),colorcyan;
explain(★大阴烛,'★大阴烛★后市向淡,发生逆转;'),colorcyan;
explain(★好友反攻,'★好友反攻★底部反转;'),colorred;
explain(★跳空缺口,'★跳空缺口★注意向上还是向下跳空;'),colorwhite;
explain(★光脚阴线,'★光脚阴线★下跌信号;'),colorcyan;
explain(★光头阳线,'★光头阳线★后市看涨;'),colorred;
explain(★三只乌鸦,'★三只乌鸦★可能见顶回落;'),colorcyan;
explain(★分离,'★分离★注意看涨分离和看跌分离;'),colorwhite;
explain(★长下影,'★长下影★持续下跌后出现,有可能止跌回升;在升势末期出现,须多加留意;'),colorred;
explain(★长上影,'★长上影★表明行情上档压力沉重,升势受阻;'),colorcyan;
explain(★下跌三部曲,'★下跌三部曲★下跌信号;'),colorred;
explain(★上升三部曲,'★上升三部曲★上涨信号;'),colorcyan;
explain(★早晨之星,'★早晨之星★见底回升;'),colorred;
explain(★黄昏之星,'★黄昏之星★见顶回落;'),colorcyan;
explain(★十字星,'★十字星★有转向意味,注意股价位置在顶部还是底部;'),colorwhite;
explain(★长十字,'★长十字★注意在顶部还是底部;'),colorwhite;
explain(★垂死十字,'★垂死十字★下跌信号;'),colorcyan;
explain(★早晨十字星,'★早晨十字星★上涨信号,见底回升;'),colorred;
explain(★黄昏十字星,'★黄昏十字星★下跌信号,见顶回落;'),colorcyan;
explain(★射击之星,'★射击之星★可能见顶回落,可靠性低;'),colorcyan;
explain(★倒转锤头,'★倒转锤头★可能见底回升;'),colorred;
explain(★锤头,'★锤头★可能见底回升,如有量配合,信号强烈;'),colorred;
explain(★吊颈,'★吊颈★上升行情中见顶回落,顶部出现,见顶信号;'),colorcyan;
explain(★平顶,'★平顶★温和的反转;'),colorcyan;
explain(★穿头破脚,'★穿头破脚★顶部出现,见顶回落信号;'),colorcyan;
explain(★乌云盖顶,'★乌云盖顶★见顶回落信号;'),colorcyan;
explain(★曙光初现,'★曙光初现★后市见底回升;'),colorred;
explain(★身怀六甲,'★身怀六甲★出现在底部,是见底回升信号;出现在顶部,是见顶回落信号;'),colorred;
explain(★十字胎,'★十字胎★'),colorred;
explain(★平底,'★平底★温和的反转;'),colorred;
explain(★大阳烛,'★大阳烛★看涨;'),colorred;
explain(★红三兵,'★红三兵★每日收盘价上移,表示可能见底回升;'),colorred;
explain(★双飞乌鸦,'★双飞乌鸦★行情将见顶回落;'),colorcyan;
explain(★孕育线,'★孕育线★注意股价位置;'),colorwhite;
explain(★多方炮,'★多方炮★在底部出现有上涨可能,在中间出现有可能是上涨中继,顶部出现是复合见顶信号;'),colorred;
explain(★出水芙蓉,'★出水芙蓉★见底回升;'),colorred;
czw-h
drawbkbmp(close>0,'a008');
var2:=ema(slope(ema(close,20),10)*34+close,30);
var3:=ema(var2,3);
var4:=ema(var3,3);
var5:=ema(var4,3);
var6:=ema(var5,3);
va7:=ema(var6,3);
var7:=ema(va7,3);
va8:=ema(var7,3);
var8:=ema(va8,3);
var9:=ema(var8,3);
vara:=barslast(cross(close,var9));
varb:=barslast(cross(var9,close));
卷帘操作: stickline(close>var9 and close>ref(close,vara),ref(close,vara),low*1,00,1),color0000b0,linethick0;
强: stickline(close<var9 and close<ref(close,varb),ref(close,varb),high*1.00,0,1),color00b000,linethick0;
势: stickline(close>var9 and close<ref(close,vara),ref(close,vara),low*1.02,0,1),linethick0;
冷: stickline(close>var9 and close<ref(close,vara),ref(close,vara),ref(close,vara),6,1),colorgreen,linethick0;
沉: stickline(close<var9,ref(close,varb),ref(close,varb),16,0),colorb3b3b3,linethick2;
var10:stickline(close>var9,ref(close,vara),ref(close,vara),16,0),colorblue,linethick2;
x5:hhv((ref(close,1)+ref(close,2)+ref(close,3)+ref(close,4))/4.00,5),colorgreen;
x10:hhv((ref(close,2)+ref(close,3)+ref(close,4)+ref(close,5))/4.00,10),coloryellow;
x20:hhv((ref(close,3)+ref(close,4)+ref(close,5)+ref(close,6))/4,20),colormagenta;
ac:=c;
ah:=h;
al:=l;
ao:=o;
stickline(ac>=ao,ah,ac,1,0),color225588;
stickline(ac>=ao,ah,ac,0,0),color66ccff;
stickline(ac>=ao,ao,al,1,0),color225588;
stickline(ac>=ao,ao,al,0,0),color66ccff;
stickline(ac>ao,ac,ao,8,0),color225588;
stickline(ac>ao,ac,ao,7,0),color226699;
stickline(ac>ao,ac,ao,6,0),color3377aa;
stickline(ac>ao,ac,ao,5,0),color3388bb;
stickline(ac>ao,ac,ao,4,0),color4499cc;
stickline(ac>ao,ac,ao,3,0),color44aadd;
stickline(ac>ao,ac,ao,2,0),color55bbee;
stickline(ac>ao,ac,ao,1,0),color66ccff;
stickline(ac<=ao,ah,ac,1,0),color888800;
stickline(ac<=ao,ah,ac,0,0),colorffff00;
stickline(ac<=ao,ao,al,1,0),color888800;
stickline(ac<=ao,ao,al,0,0),colorffff00;
stickline(ac<=ao,ac,ao,8,0),color888800;
stickline(ac<=ao,ac,ao,7,0),color999900;
stickline(ac<=ao,ac,ao,6,0),coloraaaa00;
stickline(ac<=ao,ac,ao,5,0),colorbbbb00;
stickline(ac<=ao,ac,ao,4,0),colorcccc00;
stickline(ac<=ao,ac,ao,3,0),colordddd00;
stickline(ac<=ao,ac,ao,2,0),coloreeee00;
stickline(ac<=ao,ac,ao,1,0),colorffff00;
drawtext(sysparam(2)=barpos,c,' '+blkname),colorccffcc,align4;//板块
次买:=o+(c-o)/2 ,linethick2,pointdot,shift1;
次卖:=c+(o-c)/2 ,colorred,pointdot,linethick2,shift1;
上涨空间预测:=c+((h-l)/2)*2 ,pointdot,linethick2,shift1;;
下跌空间预测:=c-((h-l)/2)*2 ,pointdot,linethick2,shift1;;
partline(次买 and islastbar=1,次买),shift1,pointdot,colordddddd;
partline(上涨空间预测 and islastbar=1,上涨空间预测),shift1,pointdot,colordddddd;
partline(下跌空间预测 and islastbar=1,下跌空间预测),shift1,pointdot,colordddddd;
次1:=c*2-ma(ref(c,3),3){ref(c,3)};
次2:=ref(c,1)*2-ma(ref(c,4),4){ref(c,4)};
次3:=ref(c,2)*2-ma(ref(c,5),5){ref(c,5)};
partline(c*2-ma(ref(c,3),3)and islastbar=1,次1),shift3,coloryellow,linethick1,pointdot;
partline(ref(c,1)*2-ma(ref(c,4),4)and islastbar=1,次2),shift2,coloryellow,linethick1,pointdot;
partline(ref(c,2)*2-ma(ref(c,5),5)and islastbar=1,次3),shift1,coloryellow,linethick1,pointdot;
a1:=cost(95);
a2:=cost(5);
ly:=(a1-a2)*100/(a1+a2);
drawicon(ly>ref(ly,1), l*0.98,8)align5;
var3:=if((close>ref(close,1)),88,0);
var4:=if(((close)/(ref(close,1))>1.03) and ((high)/(close)<1.01) and (var3>0),91,0);
drawtext((var4>90),(low)*(0.94999998),'★加仓'),color00ffff;
drawtext((var4>90),(low)*(0.99000001),'★'),color00ffff;
var1:=(high+low+open+2*close)/5;
var2:=ref(var1,1);
var3:=sma(max(var1-var2,0),10,1)/sma(abs(var1-var2),10,1)*100;
hy3:=if(count(var3<20,5)>=1 and count(var1=llv(var1,10),10)>=1 and close>=open*1.038 and vol>ma(vol,5)*1.2,1,0);
drawtext(hy3,low,'▲买入'),coloryellow;
varr1:=sma(max(close-ref(close,1),0),6,1)/sma(abs(close-ref(close,1)),6,1)*100;
drawicon(cross(82,varr1),high,2);
drawtext(cross(82,varr1),high,'▲风险↓'),coloryellow;
el1:=ema(low,6);
el2:=ema(ema(low,34)*1,02)-0.16;
drawicon(cross(el1,el2),el1,10);
v1:=ref(c,1);
v2:=sma(max(c-v1,0),6,1)/sma(abs(c-v1),6,1)*100;
drawicon(if(cross(81,v2),1,0),h*1.01,11);
上一指标公式:千钧剑公式 飞狐千钧指标 源码
下一指标公式:筹码山好漂亮的公式 飞狐筹码公式指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文炒着玩的三个主图CZW-BCZW-GCZW-H公式 飞狐炒着玩CZW指标 源码仅供学习研究。