收藏不少精品公式,以后每天推荐精品公式一个(组),能成为精品,必须是实用指标,有完整用法说明,先来第一个,这是带未来函数的,不喜欢的别下。
赌鬼决策系统 - 解盘精品指标
超级精品,慢慢看清下面的用法说明啊,不顶不留言别下!
{引用指标名}chus
tt:=(date < 10997061599);
//check:=strcmp(upperstr(strleft(,1)),'f');
//check1:=strcmp(upperstr(strleft(,5)),'pu003');
//aaa:=if((((check = 0) or (check1 = 0)) and (tt = 1)),1,0);
aaa:=1;
rc:=(ref(close,1) * aaa);
xa:=if((rc > high),rc,0);
xb:=if(((high >= rc) and (rc > low)),high,0);
xc:=if((rc <= low),high,0);
xd:=((xa + xb) + xc);
ya:=if((rc > high),low,0);
yb:=if(((high >= rc) and (rc > low)),low,0);
yc:=if((rc <= low),rc,0);
yd:=((ya + yb) + yc);
atr:=sma((xd - yd),20,1);
tt1:(((ema(close,20) + (2 * atr)) * tt) * aaa),linethick1;
tt2:(((ema(close,20) - (2 * atr)) * tt) * aaa),linethick1;
tt3:((((((tt1 + tt1) + tt1) + tt2) / 4) * tt) * aaa),linethick1;
tt4:((((((tt1 + tt2) + tt2) + tt2) / 4) * tt) * aaa),linethick1;
tt5:((ema(close,8) * tt) * aaa),linethick1;
tt6:((ema(close,20) * tt) * aaa),linethick1;
参数 p1=13 p2=34 p3=55 p4=89 p5=144 n=10 p=3
drawgbk(close=close,colorrgb(30,30,60),colorrgb(30,30,60),1);
drawtext(sysparam(2)=barpos,close,'收益:'+numtostr(finance(33),2)+'\n'+'净资:'+numtostr(finance(34),2)+'\n'+'流通:'+numtostr(finance(7)/10000,2)+'亿'+'\n'+'流通:'+numtostr(finance(7)/finance(1)*100,0)+' %'+'\n'+'权益:'+numtostr(finance(36),0)+' %'+'\n'+'主营:'+numtostr(finance(53),0)+' %'+'\n'+'利润:'+numtostr(finance(54),0)+' %'+'\n'+'主营:'+numtostr(finance(20)/10000,1)+'亿'+'\n'),align3,colorccffcc;
var0:=if(date<=1901120,1,0);
上市日期年:ref(year,barscount(close)-1),linethick0,colorff;
月:ref(month,barscount(close)-1),linethick0,colorff00ff;
日:ref(day,barscount(close)-1),linethick0,colorffff;
drawtext(sysparam(2)=barpos,close,'证券代码:'+stklabel),align4,colorff;
drawtext(barpos=sysparam(2),high,' 所属板块:'+blkname+' 发行价'+numtostr(finance(51),2)+'元'+' 发行量'+numtostr(finance(52),2)+'万股'+'\n'+'总股本'+numtostr(finance(1),0)+'万股'+' 流通a股'+numtostr(finance(7),0)+'万股'+' 净资产'+numtostr(finance(35),2)+'亿元'+' 每股收益'+numtostr(finance(33),2)+'元'+' 每股未分配'+numtostr(finance(32),2)+'元'+' 市盈率'+numtostr(dynainfo(39),2)+'%'+' 投资收益'+numtostr(finance(24),2)+'元'+' 股东总数'+numtostr(finance(50),0)+'户'),align4,color222222;
板幅度:=if(strfind(stkname,'s',1)>0,0.0489,0.0965);
板:=(close-ref(close,1))/ref(close,1)>板幅度 and high=close;
varva:=板;
drawtext(板,high,'板'),align0,pxup25,colorff00;
vars:=sysparam(1);
varss:=sysparam(3);
vardate:=date;
光标年:=strright(numtostr(vardate[vars]/10000,0),2)+'年';
光标月:=strleft(strright(numtostr(vardate[vars],0),4),2)+'月';
光标日:=strright(numtostr(vardate[vars],0),2)+'日';
a:=varss-vars;
drawtext(cross(backset(islastbar,max(35,a)),1),low,光标年+光标月+光标日+'至今'),align4,pxdn4,colorffffff;
drawtext(cross(backset(islastbar,max(35,a)),1),low,'────────'),align5,pxdn15,colorff;
drawtext(cross(backset(islastbar,max(35,a)),1),low,' 换手:'+numtostr(sum(vol,a+1)/(finance(7)),2)+' %'),align4,pxdn95,colorff99cc;
drawtext(cross(backset(islastbar,max(35,a)),1),low,' 成本:'+numtostr((sum(if(close<100,amount,close),a+1))/(sum(if(close<100,vol*100,1),a+1)),2)+' 元'),align4,pxdn35,colorffff;
drawtext(cross(backset(islastbar,max(35,a)),1),low,' 涨幅:'+numtostr((close-ref(close,a+1))*100/ref(close,a+1),2)+' %'),align4,pxdn65,colorff99cc;
drawtext(cross(backset(islastbar,max(35,a)),1),low,' 涨停:'+numtostr(count(varva,a+1),0)+' 次'),align4,pxdn125,colorff99cc;
stickline(islastbar and a<>0,(sum(if(close<100,amount,close),a+1))/(sum(if(close<100,vol*100,1),a+1)),(sum(if(close<100,amount,close),a+1))/(sum(if(close<100,vol*100,1),a+1)),8,0),colorffff;
drawtext(cross(backset(islastbar,max(35,a)),1),low,'http://yzcdj.51.com'),align5,pxdn15,colorffcc33;
drawtext(cross(backset(islastbar,max(3,a)),1),low,'因为专业 所以成功qq:87041989'),align3,colorffcc33;
drawtext(sysparam(2)=barpos,high,'操作:以今日中价作为介入点(熊市不追高),涨跌5%作为止盈止损点,在次日k线位画线作为提示,可以调整。 '),align5,colorffffff;
explainex(close,'本中:',(low+high)/2,2,1),colorffff;
explainex(close,'+1%:',(high+low)/2*1.01,2,1);
explainex(close,'+2%:',(high+low)/2*1.02,2,1);
explainex(close,'+3%:',(high+low)/2*1.03,2,1);
explainex(close,'+5%:',(high+low)/2*1.05,2,1);
explainex(close,'+10%:',(high+low)/2*1.1,2,1),colorff;
explainex(close,'-1%:',(high+low)/2*0.99,2,1);
explainex(close,'-2%:',(high+low)/2*0.98,2,1);
explainex(close,'-3%:',(high+low)/2*0.97,2,1);
explainex(close,'-5%:',(high+low)/2*0.95,2,1);
explainex(close,'-10%:',(high+low)/2*0.9,2,1),colorff0000;
drawnumber(barscount(close)=sysparam(1),(high+low)/2,(high+low)/2,2),shift1,colorffff;
drawtext(barscount(close)=sysparam(1),(high+low)/2*1.05,'少贪为妙5%'),shift2,colorff00ff;
drawtext(barscount(close)=sysparam(1),(high+low)/2*0.95,'愿赌服输5%'),shift2,pxup10,colorffff;
stickline(barscount(close)=sysparam(1),(high+low)/2,(high+low)/2,10,0),linethick2,colorffff;
stickline(barscount(close)=sysparam(1),(high+low)/2*1.01,(high+low)/2*1.01,2,0),shift1,colorffff;
stickline(barscount(close)=sysparam(1),(high+low)/2*1.02,(high+low)/2*1.02,2,0),shift1,linethick1,colorffff;
stickline(barscount(close)=sysparam(1),(high+low)/2*1.03,(high+low)/2*1.03,5,0),shift1,colorffff;
stickline(barscount(close)=sysparam(1),(high+low)/2*1.05,(high+low)/2*1.05,17,0),shift1,colorff00ff;
stickline(barscount(close)=sysparam(1),(high+low)/2*0.99,(high+low)/2*0.99,2,0),shift1,colorafb49c;
stickline(barscount(close)=sysparam(1),(high+low)/2*0.98,(high+low)/2*0.98,2,0),shift1,linethick1,colorafb49c;
stickline(barscount(close)=sysparam(1),(high+low)/2*0.97,(high+low)/2*0.97,5,0),shift1,colorafb49c;
stickline(barscount(close)=sysparam(1),(high+low)/2*0.95,(high+low)/2*0.95,17,0),shift1,colorffff;
drawbkbmp(close>=open or close<open,'999');
var1:=(open+low+high+close)/4;
drawicon(cross(ema(close,3),ma(close,10)),low,4);
dp:=if(close=indexc,0,1);
gj:=amount/vol/100;
明日阻力:=low+gj-low+close-low;
明日支撑:=low+close-gj;
今日阻力:=ref(明日阻力,1);
今日支撑:=ref(明日支撑,1);
if sysparam(3)=2 then
a:=barpos;
if sysparam(3)=1 then
b:=barpos;
d:=a-b;
e:=hhv(high,d);
drawtextex(close,1,20,0,'---------------'),colorffffff;
drawtextex(close,1,20,80,'---------------'),colorffffff;
drawtextex(close,1,20,160,'---------------'),colorffffff;
drawtextex(close,1,20,240,'---------------'),colorffffff;
drawtextex(close,1,20,320,'---------------'),colorffffff;
drawtextex(close,1,20,40,'今日支撑=:'+numtostr(今日支撑,2)+''),colorffff;
drawtextex(close,1,20,120,'今日阻力=:'+numtostr(今日阻力,2)+''),colorff00;
drawtextex(close,1,20,200,'明日支撑=:'+numtostr(明日支撑,2)),colorff00ff;
drawtextex(close,1,20,280,'明日阻力=:'+numtostr(明日阻力,2)),colorffff00;
drawtextex(close,1,20,280,'明日阻力=:'+numtostr(明日阻力,2)),colorffff00;
stickline(barscount(close)=sysparam(1),(high+low)/2,(high+low)/2,10,0),linethick2,colorffff;
stickline(barscount(close)=sysparam(1),(high+low)/2*1.01,(high+low)/2*1.01,2,0),shift1,colorffff;
stickline(barscount(close)=sysparam(1),(high+low)/2*1.02,(high+low)/2*1.02,2,0),shift1,linethick1,colorffff;
stickline(barscount(close)=sysparam(1),(high+low)/2*1.03,(high+low)/2*1.03,5,0),shift1,colorffff;
stickline(barscount(close)=sysparam(1),(high+low)/2*1.05,(high+low)/2*1.05,17,0),shift1,colorff00ff;
stickline(barscount(close)=sysparam(1),(high+low)/2*0.99,(high+low)/2*0.99,2,0),shift1,colorafb49c;
stickline(barscount(close)=sysparam(1),(high+low)/2*0.98,(high+low)/2*0.98,2,0),shift1,linethick1,colorafb49c;
stickline(barscount(close)=sysparam(1),(high+low)/2*0.97,(high+low)/2*0.97,5,0),shift1,colorafb49c;
stickline(barscount(close)=sysparam(1),(high+low)/2*0.95,(high+low)/2*0.95,17,0),shift1,colorffff;
drawbkbmp(close>=open or close<open,'999');
var1:=(open+low+high+close)/4;
td:=datatype;
tt5:=if(td=1,"chus.tt1#min5",if(td=2,"chus.tt1#min15",if(td=3,"chus.tt1#min60",if(td=4,"chus.tt1#min60",if(td=5,"chus.tt1#day",if(td=6,"chus.tt1#week","chus.tt1#year"))))));
tt6:=if(td=1,"chus.tt2#min5",if(td=2,"chus.tt2#min15",if(td=3,"chus.tt2#min60",if(td=4,"chus.tt2#min60",if(td=5,"chus.tt2#day",if(td=6,"chus.tt2#week","chus.tt2#year"))))));
a3:=if(td=1,"chus.tt3#min5",if(td=2,"chus.tt3#min15",if(td=3,"chus.tt3#min60",if(td=4,"chus.tt3#min60",if(td=5,"chus.tt3#day",if(td=6,"chus.tt3#week","chus.tt3#year"))))));
a4:=if(td=1,"chus.tt4#min5",if(td=2,"chus.tt4#min15",if(td=3,"chus.tt4#min60",if(td=4,"chus.tt4#min60",if(td=5,"chus.tt4#day",if(td=6,"chus.tt4#week","chus.tt4#year"))))));
xc:=if(td=1,"chus.tt5#min5",if(td=2,"chus.tt5#min15",if(td=3,"chus.tt5#min60",if(td=4,"chus.tt5#min60",if(td=5,"chus.tt5#day",if(td=6,"chus.tt5#week","chus.tt5#year"))))));
xd:=if(td=1,"chus.tt6#min5",if(td=2,"chus.tt6#min15",if(td=3,"chus.tt6#min60",if(td=4,"chus.tt6#min60",if(td=5,"chus.tt6#day",if(td=6,"chus.tt6#week","chus.tt6#year"))))));
fo:=open;
fh:=high;
fl:=low;
fc:=close;
kk:=if(fc>=fo and (fc>=ref(fc,1) or ref(fc,1)>=ref(fo,1)),1,if(fc<fo and (fc<ref(fo,1) or ref(fc,1)<ref(fo,1)),-1,0));
明日轉折:round((fo+fc)/2),shift1,linethick0,colorffff;
今日轉折:=round(if(kk=1,min(fc,fo),if(kk=-1,max(fc,fo),if(ref(kk,1)=1,min(fc,fo),if(ref(kk,1)=-1,max(fc,fo),(fc+fo)/2)))));
drawnumber(islastbar,明日轉折,round(明日轉折),2),shift3;
ma(close,5),linedashdot,colorff;
stickline(close>open,open,low,0.5,0),colorff;
stickline(close>open,close,high,0.5,0),colorff;
stickline(open>=close,close,low,0.5,0),colorff00;
stickline(open>=close,open,high,0.5,0),colorff00;
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),color55;
stickline(close>open,close,open,6,0),color66;
stickline(close>open,close,open,5,0),color77;
stickline(close>open,close,open,4,0),color99;
stickline(close>open,close,open,3,0),colorbb;
stickline(close>open,close,open,2,0),colordd;
stickline(close>open,close,open,1,0),colorff;
var9q:=close=hhv(close,4) and (ref(close,1)>=ref(close,2) or ref(close,1)>=ref(close,3)) or ref(close,1)=hhv(close,4) and close>=ref(close,2) or ref(close,2)=hhv(close,4) and ref(close,3)=llv(close,4) and close>=ref(close,1) or ref(close,3)=hhv(close,4) and close>=ref(close,1) and close>=ref(close,2);
stickline(var9q,close,(open+close)/2,7,0),color55;
stickline(var9q,close,(open+close)/2,6,0),color66;
stickline(var9q,close,(open+close)/2,5,0),color77;
stickline(var9q,close,(open+close)/2,4,0),color99;
stickline(var9q,close,(open+close)/2,3,0),colorbb;
stickline(var9q,close,(open+close)/2,2,0),colordd;
stickline(var9q,close,(open+close)/2,1,0),colorff;
varaq:=close=hhv(close,4) and ref(close,1)=llv(close,4);
stickline(varaq,close,(open+close)/2,7,0),colorff11ff;
stickline(varaq,close,(open+close)/2,6,0),colorff33ff;
stickline(varaq,close,(open+close)/2,5,0),colorff55ff;
stickline(varaq,close,(open+close)/2,4,0),colorff77ff;
stickline(varaq,close,(open+close)/2,3,0),colorff99ff;
stickline(varaq,close,(open+close)/2,2,0),colorffbbff;
stickline(varaq,close,(open+close)/2,1,0),colorffddff;
varbq:=close=llv(close,4) and (ref(close,1)<ref(close,2) or ref(close,1)<ref(close,3)) or ref(close,1)=llv(close,4) and close<ref(close,2) or ref(close,2)=llv(close,4) and ref(close,1)<>hhv(close,4) and close<ref(close,1) or ref(close,3)=llv(close,4) and close<ref(close,1) and close<ref(close,2);
stickline(varbq,close,(open+close)/2,7,0),color333333;
stickline(varbq,close,(open+close)/2,6,0),color555555;
stickline(varbq,close,(open+close)/2,5,0),color777777;
stickline(varbq,close,(open+close)/2,4,0),color999999;
stickline(varbq,close,(open+close)/2,3,0),colorbbbbbb;
stickline(varbq,close,(open+close)/2,2,0),colordddddd;
stickline(varbq,close,(open+close)/2,1,0),colorffffff;
varcq:=ref(close,1)=llv(close,4) and close>=ref(close,2) or ref(close,2)=llv(close,4) and ref(close,1)<=ref(close,3) and ref(close,2)<ref(close,4) and close>=ref(close,1);
stickline(varcq,open,(open+close)/2,7,0),color3300;
stickline(varcq,open,(open+close)/2,6,0),color5500;
stickline(varcq,open,(open+close)/2,5,0),color7700;
stickline(varcq,open,(open+close)/2,4,0),color9900;
stickline(varcq,open,(open+close)/2,3,0),colorbb00;
stickline(varcq,open,(open+close)/2,2,0),colordd00;
stickline(varcq,open,(open+close)/2,1,0),colorff00;
vardq:=ref(close,1)=hhv(close,4) and close<ref(close,2) or (ref(close,2)=hhv(close,4) and ref(close,1)>ref(close,3) or ref(close,3)=hhv(close,4) and ref(close,1)>ref(close,2)) and ref(close,2)>=ref(close,4) and close<ref(close,1);
stickline(vardq,open,(open+close)/2,7,0),colorff1100;
stickline(vardq,open,(open+close)/2,6,0),colorff3300;
stickline(vardq,open,(open+close)/2,5,0),colorff5500;
stickline(vardq,open,(open+close)/2,4,0),colorff7700;
stickline(vardq,open,(open+close)/2,3,0),colorff9900;
stickline(vardq,open,(open+close)/2,2,0),colorffbb00;
stickline(vardq,open,(open+close)/2,1,0),colorffdd00;
var1:=100-90*(hhv(high,21)-close)/(hhv(high,21)-llv(low,21));
var2:=100-90*(hhv(high,21)-close)/(hhv(high,21)-llv(low,21));
var3:=100-ma(100*(hhv(high,6)-close)/(hhv(high,6)-llv(low,6)),34);
drawtext(cross(var2,ma(var3,6)),low*0.984,'b '),colorff;
drawtext(cross(ma(var3,6),var1),high*1.035,'s '),colorffffff;
drawbkbmp(close>=open or close<open,'999');
var1:=(open+low+high+close)/4;
wr:=100*(hhv(high,14)-close)/(hhv(high,14)-llv(low,14));
drawicon(filter(cross(-wr,-81),10),low,1);
drawicon(filter(cross(-19,-wr),10),high*1.02,2);
drawtext(filter(cross(-wr,-81),21),low*0.98,'买入'),colorff;
drawtext(filter(cross(-19,-wr),21),high*1.03,'卖出'),colorff00;
bbi:=(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4;
upr:=bbi+3*std(bbi,13);
dwn:=bbi-3*std(bbi,13);
安全:=ma(close,60);
lc:=ref(close,1);
rsi:=(sma(max(close-lc,0),6,1))/(sma(abs(close-lc),6,1))*100;
drawtext(cross(82,rsi),high*1.02,'减仓'),pxup4,colorff9966;
ma2:=ma(close,10);
ma34:=ma(close,34);
vara:=amount/vol/100;
varb:=(3*high+low+open+2*close)/7;
varc:=sum(amount,7)/vara/100;
vard:=dma(varb,vol/varc);
vare:=(close-vard)/vard*100;
varf:=(close-llv(low,34))/(hhv(high,34)-llv(low,34))*100;
varj:=ma(vare,20)+std(vare,20);
bias18:=(close-ma(close,18))/ma(close,18)*100;
k:=sma(varf,3,1);
顶:=ref(bias18,1)>=5 and cross(varj,vare) and k>79;
drawtext(ref(bias18,1)>=5 and cross(varj,vare) and k>79,high*1.02,'★风险'),colorffff;
var1:=close>ref(close,1) and close>ref(close,2);
var2:=ref(var1,1) and close<=ref(close,1) and close>=ref(close,2);
var3:=ref(var2,1) and close>=ref(close,1) and close<=ref(close,2);
var4:=ref(var3,1) and close<=ref(close,1) and close>=ref(close,2);
var5:=ref(var4,1) and close>=ref(close,1) and close<=ref(close,2);
var6:=ref(var5,1) and close<=ref(close,1) and close>=ref(close,2);
var7:=ref(var6,1) and close>=ref(close,1) and close<=ref(close,2);
var8:=ref(var7,1) and close<=ref(close,1) and close>=ref(close,2);
var9:=ref(var8,1) and close>=ref(close,1) and close<=ref(close,2);
vara:=ref(var9,1) and close<=ref(close,1) and close>=ref(close,2);
varb:=ref(vara,1) and close>=ref(close,1) and close<=ref(close,2);
varc:=ref(varb,1) and close<=ref(close,1) and close>=ref(close,2);
vard:=close<ref(close,1) and close<ref(close,2);
vare:=ref(vard,1) and close>=ref(close,1) and close<=ref(close,2);
varf:=ref(vare,1) and close<=ref(close,1) and close>=ref(close,2);
var10:=ref(varf,1) and close>=ref(close,1) and close<=ref(close,2);
var11:=ref(var10,1) and close<=ref(close,1) and close>=ref(close,2);
var12:=ref(var11,1) and close>=ref(close,1) and close<=ref(close,2);
var13:=ref(var12,1) and close<=ref(close,1) and close>=ref(close,2);
var14:=ref(var13,1) and close>=ref(close,1) and close<=ref(close,2);
var15:=ref(var14,1) and close<=ref(close,1) and close>=ref(close,2);
var16:=ref(var15,1) and close>=ref(close,1) and close<=ref(close,2);
var17:=ref(var16,1) and close<=ref(close,1) and close>=ref(close,2);
var18:=ref(var17,1) and close>=ref(close,1) and close<=ref(close,2);
var19:=(ref(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,1)) and var1;
drawtext(var19,low,'b'),colorffffff;
var1a:=(ref(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,1)) and vard;
drawtext(var1a,high*1.02,'s'),colorffff;
drawtext(sysparam(2)=barpos,high,'操作:以今日中价作为介入点(熊市不追高),涨跌5%作为止盈止损点,在次日k线位画线作为提示,可以调整。 '),align5,colorffffff;
lc:=ref(close,1);
rsi:=(sma(max(close-lc,0),3,1))/(sma(abs(close-lc),3,1))*100;
ff:=ema(close,3);
ma15:=ema(close,21);
波动回调提示图:ma(close,10000);
drawicon(ma15<ref(ma15,1),ref(ma15,2),11),pxup4,colorffffff;
drawicon(ma15>=ref(ma15,1),ref(ma15,2),10),pxup4,colorff;
drawtext(cross(ff,ma15),low*0.99,'上拐点'),colorffff;
drawtext(cross(ma15,ff),high*1.02,'下拐点'),colorff00;
drawtext(cross(85,rsi),high*1.02,'回调!'),colorffffff;
买线:=ema(close,2);
卖线:=ema(slope(close,21)*20+close,42);
bu:=cross(买线,卖线);
sel:=cross(卖线,买线);
var32:=close/ref(close,1)>=1.062 and high/close<1.005 and ma(close,90)/close>=1.15;
var33:=var32 and count(var32,20)=1;
var34:=(indexc-ref(indexc,1))/ref(indexc,1);
var35:=(close-ref(close,1))/ref(close,1);
var36:=if(var34>0.01,0.9,1) and if(var34>-0.025,1,1.2);
var37:=var36*(var35-var34)*100;
var38:=sum(var37,10);
var39:=sma(var38,40,1);
var310:=var38>20;
var311:=cross(close,ma(close*1.055,3)) and close>open*1.06 and vol>=ref(vol,1)*1.5 and close>=ma(close,10);
var312:=var310 and var311;
var313:=(-100)*(hhv(high,3)-close)/(hhv(high,3)-llv(low,3));
var314:=cross(var313,-87) and open=1.09*ref(close,1) and indexc>0.98*ref(indexc,1) and close<=1.47*llv(close,58);
var315:=ema(close,12)-ema(close,26);
var316:=ema(var315,9);
var317:=2*(var315-var316);
var318:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
var319:=sma(var318,3,1);
var320:=sma(var319,3,1);
var321:=(ema(if(var316>ref(var316,1),1,-1),14))*14;
var322:=(ema(if(var320>ref(var320,1),1,-1),14))*14*2;
var323:=(ma(close,5)/ma(close,70)-1)*100;
var324:=(var323+var322+var321)/3;
var325:=ma(close,80)-ma(close,10)/3;
var326:=if(close and ma(vol,5)/240 and close>ref(close,1)*1 and close,88,0);
var327:=if(close/ref(close,1)>1.05 and vol/capital*100<10 and close<17 and high/close<1.01 and var326>0,91,0);
var328:=if(var324>ref(var324,1) and ref(var324,1)<ref(var324,2) and (var33 or var312 or var314) or var326>0 or var327>0,85,0);
var329:=if(var327>0,95,0);
var330:=if(var326>0 or var327>0,91,0);
var331:=if(var328>0 or var327>0 or var326>0,88,0);
var332:=100*(close-llv(low,42))/(hhv(high,42)-llv(low,42));
var333:=count(ma(close,3)>ref(ma(close,3),1),1)=1;
var334:=(var332<93 and var333 and max(max(var329,var330),var331))*100;
drawicon(var333>0,low*0.99,10),align5;
drawicon(var333=0,low*0.99,11),align4;
drawtext(var327>90,low*0.95,'▲追涨'),colorffff;
drawicon(var310>0 and var327=0,high*1.01,5);
var1:=ema(vol,12)-ema(vol,26);
var2:=ema(var1,9);
var3:=(ema(close,30)*2+ma(close,60))/3;
a3:=(ema(close,10)*2+ma(close,20))/3;
var4:=vol*close;
var5:=ema(var4,13)/ema(vol,13);
var6:=ema(var4,60)/ema(vol,60);
var7:=ema((var5+var6)/2,3);
a5:=ema(var4,5)/ema(vol,5);
a6:=ema(var4,20)/ema(vol,20);
a7:=ema((a5+a6)/2,3);
a:=ma((a3+a7)/2,1);
a1:=ref(a,1);
a8:=ma((var3+var7)/2,1);
a22:=ma((var3+var7)/2,1);
var11:=(2*close+open+high+low)/5;
var12:=vol;
am:=dma(ma(dma(close,var2),6),vol/sum(vol,89));
vara:=if(close>150,91.3,0.913);
【下沿】:=intpart(close/vara)*vara;
【上沿】:=【下沿】+vara;
【中线】:=(【下沿】+【上沿】)/2;
stickline(sysparam(1)=barpos and 【下沿】 and close>【下沿】 and close<【中线】,【下沿】,【下沿】,50,0),linethick3,colorff9900;
stickline(sysparam(1)=barpos and 【上沿】 and close<【上沿】 and close>【中线】,【上沿】,【上沿】,50,0),linethick3,color99ff;
stickline(sysparam(1)=barpos and 【中线】,【中线】,【中线】,50,0),linethick3,colorffffff;
【蓝色】:【下沿】,linethick0,colorff9900;
【棕色】:【上沿】,linethick0,color99ff;
【白色】:【中线】,linethick0,colorffffff;
drawtext(sysparam(1)=barpos and 【下沿】 and close>【下沿】 and close<【中线】,【下沿】,'支撑'),shift3,colorff00;
drawtext(sysparam(1)=barpos and 【下沿】 and close>【下沿】 and close<【中线】,【中线】,'压力'),shift3,colorff;
drawtext(sysparam(1)=barpos and 【上沿】 and close<【上沿】 and close>【中线】,【上沿】,'压力'),shift3,colorff;
drawtext(sysparam(1)=barpos and 【上沿】 and close<【上沿】 and close>【中线】,【中线】,'支撑'),shift3,colorff00;
var3:=sma(sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,3,1),3,1);
var4:=sma(var3,3,1);
drawtext(cross(var3,var4),low,'--中期好'),colorffff;
drawtext(cross(var4,var3),high,'--中期坏'),colorf0f000;
drawtext(cross(a,b),low,'--短期好'),colorffff;
drawtext(cross(b,a),high,'--短期坏'),colorf0f000;
explain(close>0,'〓 k 线形态分析 〓 '),colorffffff;
a001:=close-ref(close,6);
a002:=ma(a001,6);
a003:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
a004:=sma(a003,3,1);
a005:=sma(a004,3,1);
a006:=ema(3*a004-2*a005,2);
a007:=(high+low+close)/3;
a008:=(a007-ma(a007,14))/(0.015*avedev(a007,14))/2;
a009:=(a008+ema((-100*(hhv(high,14)-close)/(hhv(high,14)-llv(low,14))+100)/100,3)*200-100)/2;
a010:=a009-ref(a009,14);
a011:=a009-ref(a009,26);
a012:=(a009+a010+a011)/3;
kkm:=ema(a012,4);
a013:=hhv(high,34);
a014:=(2*close+high+low)/4;
a015:=llv(low,34);
a016:=ema((a014-a015)/(a013-a015)*100,13);
a017:=ema(0.667*ref(a016,1)+0.333*a016,2);
kkmd:=a016-a017>1 and a016<30 and a017<30;
kkml:=a016-a017<0 and a016>80 and a017>80 and ref(a016-a017,1)>0;
kkmq:=count(a016-a017>0,2)=2;
kkal:=a016-a017<0;
生命线:=ma(close,20);
取舍线:=ma(close,10);
explainicon(kkmd,4);
explainicon(kkal,1);
explain(kkmd,'最佳买入时机');
explain(kkml,'最佳卖出时机');
explain(kkmq,'持仓区');
explain(kkal,'空仓区');
explain(close/ref(close,1)>indexc/ref(indexc,1),'该股强于大盘');
explain(close/ref(close,1),'该股强于大盘');
explain(cross(ma(close,5),ma(close,10)),'可出手');
explain(cross(ma(close,10),ma(close,5)),'收手了');
explain(kkm>ema(kkm,4) and kkm>ref(kkm,1),'快速介入');
explain(kkm>ema(kkm,4) and kkm<ref(kkm,1),'休息观望~');
explain(kkm<ema(kkm,4) and kkm>ref(kkm,1),'有防御能力');
explain(kkm<ema(kkm,4) and kkm<ref(kkm,1),'风险较大');
pt:=ref(high,1)-ref(low,1);
cdp:=(high+low+2*close)/4;
ah:=cdp+pt;
al:=cdp-pt;
nh敏感阻力:=2*cdp-low;
nl:=2*cdp-high;
explainex(ah,'解盘:次日重大阻力价位=',ah,2,0),colorff00;
explainex(nh敏感阻力,'解盘:次日敏感阻力区域=',nh敏感阻力,2,0),colorffff;
explainex(cdp,'解盘:次日关键均衡价位=',cdp,2,0),colorffffff;
explainex(nl,'解盘:次日重要支撑区域=',nl,2,0),colorffff80;
explainex(al,'解盘:次日关键支撑价位=',al,2,0),colorff;
explainicon(close>0,'szczxh'),align1;
var0:=ref(close,1)-ref(open,1);
var1:=ref(open,1);
var2:=close>=var1*1.05;
var3:=close>=2*var0/3*var1 and close<=var1*1.05;
var4:=close<var0*2/3*var1;
explainex(var2,'解盘:个股目前态势:超级强势。涨幅 %f %',(close-ref(close,1))/ref(close,1)*100,1,0),colorff00ff;
explainex(var3,'解盘:个股目前态势:强势。涨幅 %f %',(close-ref(close,1))/ref(close,1)*100,1,0),colorff;
explainex(var4,'解盘:个股目前态势:弱势。涨幅 %f %',(close-ref(close,1))/ref(close,1)*100,1,0),colorff00;
b1:=(close-ma(close,30))/ma(close,30)*100<-12;
b3:=(close-ma(close,30))/ma(close,30)*100>15;
b:=(close-ma(close,30))/ma(close,30)*100;
explainex(b<-18 and close/open>1.06,'解盘:抢反弹!负乖离偏大,小单进场。此刻30日乖离率=',b,2,1),colorff;
explainex(b>40 and close/ref(close,1)<1.08,'解盘:高抛!正乖离偏大,按照短线技术系统高抛:',b,2,0),colorff00;
explainex(not(b<-18 and close/open>1.06) or not(b>40 and close/ref(close,1)<1.08),'解盘:此刻30日乖离率=',b,2,0),colorffff;
早晨之星:=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 close>=open and (close-open)/open>=2/100 and close>=ref(open,1) and open<=ref(close,1) and (max(close,ref(close,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(close,20) or open<ema(close,40) or open<ema(close,60)) and close>max(ema(close,20),max(ema(close,40),ema(close,60))) and vol/ma(vol,30)>1.2 and close/ref(close,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(close,1)/ref(open,1)>=1.03 and open<ref(close,1) and open>ref(open,1) and close<ref(open,1);
bj:=close/indexc*1000;
qs:=bj>ref(bj,1);
rs:=bj<=ref(bj,1);
explain(qs,'今日个股走势:强于大盘'),colorffff00;
explain(rs,'今日个股走势:弱于大盘'),colorff00;
日k:="kdj.k#day"(20,5,5);
日d:="kdj.d#day"(20,5,5);
周k:="kdj.k#week"(9,3,3);
周d:="kdj.d#week"(9,3,3);
explainex(日k>0,'日k=',日k,2,0),colorffff00;
explain(日k<=20,'日线kd指标位置:低位'),colorffff00;
explain(日k>20 and 日k<50,'日线kd指标位置:中低'),colorff;
explain(日k>50 and 日k<80,'日线kd指标位置:中高'),colorff00;
explain(日k>=80,'日线kd指标位置:高位'),colorff00;
explainex(周k>0,'周k=',周k,2,0),colorff;
explain(周k<=20,'周线kd指标位置:低位'),colorff;
explain(周k>20 and 周k<50,'周线kd指标位置:中低'),colorff;
explain(周k>50 and 周k<80,'周线kd指标位置:中高'),colorff00;
explain(周k>=80,'周线kd指标位置:高位');
explain(cross(日k,日d),'日k与日d今日金叉'),colorffff00;
explain(cross(日d,日k),'日k与日d今日死叉'),colorff00;
explain(cross(周k,周d),'周k与周d今日金叉'),colorff;
explain(cross(周d,周k),'周k与周d今日死叉'),colorff00;
r:=ref(close,1)/close;
qy:=vol;
qtt:=qy*r;
tl:=filter(vol=hhv(vol,20),20);
dl:=filter(vol=llv(vol,20),20);
xd:=filter(low=llv(low,20),20);
xg:=filter(high=hhv(high,20),20);
explainex(xd,'今日为20日最低价格=',low,2,0),colorff00;
explainex(xg,'今日为20日最高价格=',low,2,0),colorff;
pt:=ref(high,1)-ref(low,1);
cdp:=(high+low+2*close)/4;
ah:=cdp+pt;
al:=cdp-pt;
nh敏感阻力:=2*cdp-low;
nl:=2*cdp-high;
explainex(ah,'次日重大阻力价位=',ah,2,0),colorff00;
explainex(nh敏感阻力,'次日敏感阻力区域=',nh敏感阻力,2,0),colorffff;
explainex(cdp,'次日关键均衡价位=',cdp,2,0),colorffffff;
explainex(nl,'次日重要支撑区域=',nl,2,0),colorffff00;
explainex(al,'次日关键支撑价位=',al,2,0),colorff;
var0a:=ref(close,1)-ref(open,1);
var1a:=ref(open,1);
var2a:=close>=var1a*1.05;
var3a:=close>=2*var0a/3+var1a and close<=var1a*1.05;
var4a:=close<var0a*2/3+var1a;
explainex(var2a,'个股目前态势:超级强势。涨幅 %f %',(close-ref(close,1))/ref(close,1)*100,1,0),colorff00ff;
explainex(var3a,'个股目前态势:强势。涨幅 %f %',(close-ref(close,1))/ref(close,1)*100,1,0),colorff00;
explainex(var4a,'个股目前态势:弱势。涨幅 %f %',(close-ref(close,1))/ref(close,1)*100,1,0),colorffff;
ba:=(close-ma(close,30))/ma(close,30)*100;
explainex(ba<-18 and close/open>1.06,'抢反弹!负乖离偏大,小单进场。此刻30日乖离率=',ba,2,1),colorff;
explainex(ba>40 and close/ref(close,1)<1.08,'高抛!正乖离偏大,按照短线技术系统高抛:',ba,2,0),colorff00;
hd:=ma(vol/(high-low),4);
ld:=abs(close-open);
dmp:=vol/(high-low);
explain(dmp<hd and ld<ma(ld,4),'资金无入场意愿,萎缩中'),colorffff00;
explain(dmp<hd and ld>ma(ld,4),'场内资金有运作行为'),colorffff;
explain(dmp>hd and ld<ma(ld,4),'多空双方激烈争夺中'),colorffff;
explain(dmp>hd and ld>ma(ld,4),'场外资金介入(或出局)意愿强烈'),color99ff;
dmm:=sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),14);
pdi:=high-ref(high,1);
mdi:=ref(low,1)-low;
adx:=sum(if(pdi>0 and pdi>mdi,pdi,0),14);
adxr:=sum(if(mdi>0 and mdi>pdi,mdi,0),14);
typ:=adx*100/dmm;
cci:=adxr*100/dmm;
wr:=ma((abs(cci-typ))/(cci+typ)*100,6);
mtm:=(wr+ref(wr,6))/2;
explain(cross(typ,cci),'pdi线从下向上突破mdi线,显示有新多头进场,为买进信号'),colorff00;
explain(cross(cci,typ),'pdi线从上向下跌破mdi线,显示有新空头进场,为卖出信号'),colorffff00;
explain(wr>ref(wr,1),'adx值持续高于前一日,行情将维持原趋势'),colorffff;
explain(wr<ref(wr,1) and wr<20,'adx值递减,降到20以下,且横向行进时,市场气氛为盘整'),color99ff;
explain(wr<ref(wr,1) and ref(wr,1)<ref(wr,2) and ref(wr,2)>ref(wr,3) and ref(wr,3)>ref(wr,4),'adx值从上升倾向转为下降时,表明行情即将反转'),colorffff;
mtmma:=(high+low+close)/3;
lc:=(mtmma-ma(mtmma,14))/(0.015*avedev(mtmma,14));
explain(lc<-180,'cci指标底位,买入机会'),colorff00;
explain(lc>180,'cci指标高位,卖出机会'),colorffff00;
explain(vol/capital>0.075,'换手过大,小心主力出逃,短期头部'),colorffff00;
rsi1:=-100*(hhv(high,14)-close)/(hhv(high,14)-llv(low,14));
explain(rsi1>-20,'w&r超买,短线即将见顶,应及时卖出'),colorffff00;
explain(rsi1<-80,'w&r超卖,短线即将见底,应伺机买进'),colorff00;
rsi2:=close-ref(close,6);
psy:=ma(rsi2,6);
explain(cross(rsi2,psy) and psy<-0.8,'mtm从下向上突破mtmma,买入信号'),colorff00;
explain(cross(psy,rsi2) and psy>0.8,'mtm从上向下跌破mtmma,卖出信号'),colorffff00;
vvv:=1;
a004:=1;
a005:=close-ref(close,6);
a006:=ma(a005,6)*vvv;
a007:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
a008:=sma(a007,3,1);
a009:=sma(a008,3,1);
a010:=(ema(3*a008-2*a009,2))*a004;
a011:=(high+low+close)/3*a004;
a012:=(a011-ma(a011,14))/(0.015*avedev(a011,14))/2*a004;
a013:=(a012+ema((-100*(hhv(high,14)-close)/(hhv(high,14)-llv(low,14))+100)/100,3)*200-100)/2;
a014:=a013-ref(a013,14)*vvv;
a015:=a013-ref(a013,26)*a004;
a016:=(a013+a014+a015)/3;
a017:=1.1*close*vvv;
a018:=0.9*close*a004;
a019:=100*(winner(a017)-winner(a018));
a020:=(ema(100-a019,3))*a004;
a021:=a020;
a022:=ma(a020,12)*vvv;
a023:=(a021-a022)*7;
a024:=ema(a023,3);
a025:=ma(close,5);
a026:=ma(ma(close,20),5);
a027:=(a025-ref(a025,1))/ref(a025,1)*1000*vvv;
a028:=(a026-ref(a026,1))/ref(a026,1)*1000;
a029:=a027-a028;
a030:=if(a027<a029*vvv,a029+abs(a027-a029),a029-(abs(a027-a029)));
a031:=a027+50;
a032:=a030+50;
a033:=if(max(a031,a032)>100,100,max(a031,a032));
kkm:=if(min(a031,a032)<0,0,min(a031,a032));
a034:=(a033+kkm)/2;
ccccc1:=a034-50;
ccccc2:=a016*vvv;
xdp:=ema(a016,4);
dpm:=xdp;
a035:=-(a005+100)/2+a010;
a036:=a035/2-50;
a037:=a036*4;
a038:=ema(a037,3);
a039:=ema(xdp,4);
a040:=ema(a038,4);
a041:=(xdp+a038*(-1))/2;
xy:=xdp*vvv;
xm:=a038*vvv;
xd:=ema(xdp,4);
varx:=a040;
c023:=1;
c024:=1;
c025:=1;
c026:=c023*c024*c025;
vare:=xy;
var6:=xm;
var7:=xd;
var8:=varx;
explain(ccccc1>0 and c026>0,'短线投机活跃!'),colorff;
explain(ccccc1<0 and c026>0,'短线投机小心!'),colorffff;
explain(xy>xd and xy>xm and c026>0,'从多头看:短线适度持股'),colorff;
explain(xy>xd and xy<xm and c026>0,'从多头看:短线择机增仓'),colorff00;
explain(xy<xd and xy>xm and c026>0,'从多头看:短线获利减仓'),colorffff;
explain(xy<xd and xy<xm and c026>0,'从多头看:短线空仓观望'),colorff0000;
explain(xm>varx and xm>xy and c026>0,'从空头看:短线空仓观望'),colorff0000;
explain(xm>varx and xm<xy and c026>0,'从空头看:短线获利减仓'),colorffff;
explain(xm<varx and xm<xy and c026>0,'从空头看:短线适度持股'),colorff;
explain(xm<varx and xm>xy and c026>0,'从空头看:短线择机增仓'),colorff00;
explain(1=1,'【蔡东俊编制】'),colorffff;
drawtext(barpos=sysparam(2),high,stklabel),align4,colorff00;
aa:=barslast(day<>ref(day,1));
hh:=ref(high,aa);
ll:=ref(low,aa);
阻力1:=ll+(hh-ll)*0.328;
阻力2:=ll+(hh-ll)*0.5;
阻力3:=ll+(hh-ll)*0.618;
支撑1:=hh-(hh-ll)*0.328;
支撑2:=hh-(hh-ll)*0.5;
支撑3:=hh-(hh-ll)*0.618;
explainex(1,'【阻力位价一】:',阻力1,3,0),colorff00;
explainex(1,'【阻力位价二】:',阻力2,3,0),colorff00;
explainex(1,'【阻力位价三】:',阻力3,3,0),colorff00;
explainex(1,'【支撑位价一】:',支撑1,3,0),colorff;
explainex(1,'【支撑位价二】:',支撑2,3,0),colorff;
explainex(1,'【支撑位价三】:',支撑3,3,0),colorff;
ma5:=ma(close,5);
ma10:=ma(close,10);
bbi:=(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4;
upr:bbi+p*std(bbi,n),linethick2;
dwn:bbi-p*std(bbi,n);
th:=sma(hhv(high,n),15,5);
tl:=sma(llv(low,n),15,5);
t24:=(th-tl)*0.24+tl;
t76:=(th-tl)*0.76+tl;
diff1:=ema(close,4)-ema(close,10);
dea1:=ema(diff1,5);
diff:=diff1*4.5+ema(close,4)*0.9;
dea:=dea1*4.5+ema(close,5)*0.9;
cc:=cross(low,tl);
drawicon(cc,low,1);
ee:=cross(high,t24);
drawicon(ee,low,10),align0;
gg:=cc+ee and close=high;
var1:=hhv(high,144);
逢低介入:=llv(low,144);
建仓区域:=llv(low,144)*1.2;
出货区域:=if(var1>llv(low,233)*1.45 and var1>low*1.3,var1*0.82,0);
逢高出局:=if(var1>llv(low,233)*1.45 and var1>low*1.3,var1,0);
explainex(1,'【主力派发高点】=',逢高出局,2,0),colorff;
explainex(1,'【主力派发区域】=',出货区域,2,0),colorffff;
explainex(1,'【主力底仓】=',逢低介入,2,0),colorffff00;
explainex(1,'【主力建仓】=',建仓区域,2,0),colorff00;
var1:=llv(low,5)=llv(low,45) and close>=open*1.04;
var2:=close>(ref(high,1)+ref(low,1))/2;
买入提示:=var1 and var2;
var3:=ref(close,1);
var4:=(sma(max(close-var3,0),6,1))/(sma(abs(close-var3),6,1))*100;
卖出提示:=cross(80,var4);
drawicon(买入提示,low-0.01,1);
drawicon(卖出提示,high+0.1,2);
pt:=ref(high,1)-ref(low,1);
cdp:=(ref(high,1)+ref(low,1)+ref(close,1)*2)/4;
ah:=cdp+pt;
al:=cdp-pt;
nh:=2*cdp-low;
nl:=2*cdp-high;
近高值0:=if(ah>nh,nh,ah);
近低值0:=if(al<nl,nl,al);
最高值0:=if(ah>nh,ah,nh);
最低值0:=if(al<nl,al,nl);
explainex(between(open,近高值0,近低值0),'【盘局买入价参考】:',近低值0,2,0),colorff;
explainex(between(open,近高值0,近低值0),'【盘局卖出价参考】:',近高值0,2,0),colorffff00;
explainex(between(open,最高值0,近高值0) or open>最高值0,'【盘局买入价参考】:',最高值0,2,0),colorff00;
explainex(between(open,最低值0,近低值0) or open<最低值0,'【盘局卖出价参考】:',最低值0,2,0),colorff00ff;
var1:=(extdata(4)-extdata(5))/100;
庄资金5:=ema(var1,5);
庄资金13:=ema(var1,13);
庄资金34:=ema(var1,34);
庄家obv:=(sum(extdata(4)-extdata(5),0))/10000;
explainex(1=1,'【庄家资金5】=',庄资金5,2,0),colorff;
explainex(1=1,'【庄家资金34】=',庄资金34,2,0),colorff;
explainex(1=1,'【庄家资金obv】=',庄家obv,2,0),colorff;
委卖obv:=sum(extdata(7),0)/1000000;
explainex(1=1,'【委卖obv】=',委卖obv,2,0),colorff;
委买obv:=sum(extdata(6),0)/1000000;
explainex(1=1,'【委买obv】=',委买obv,2,0),colorff;
每日委卖量:=sum(askvol(1)+askvol(2)+askvol(3)+askvol(4)+askvol(5)+askvol(6)+askvol(7)+askvol(8)+askvol(9),0);
explainex(1=1,'【每日委卖量】=',每日委卖量,2,0),colorff;
每日委买量:=sum(bidvol(1)+bidvol(2)+bidvol(3)+bidvol(4)+bidvol(5)+bidvol(6)+bidvol(7)+bidvol(8)+bidvol(9),0);
explainex(1=1,'【每日委买量】=',每日委买量,2,0),colorff;
var1:=(extdata(2)-extdata(3))/100;
资金5:=ema(var1,5);
资金13:=ema(var1,13);
资金34:=ema(var1,34);
explainex(1=1,'【资金5】=',资金5,2,0),colorffff00;
explainex(1=1,'【资金13】=',资金13,2,0),colorffff00;
explainex(1=1,'【资金34】=',资金34,2,0),colorffff00;
牛熊obv:=(sum(extdata(2)-extdata(3),0))/10000;
explainex(1=1,'【牛熊obv】=',牛熊obv,2,0),colorff;
每日卖单总和:=sum(sellvol,0);
每日买单总和:=sum(buyvol,0);
每日庄卖:=sum(if(sellvol>=100,vol,0),0);
每日庄买:=sum(if(buyvol>=100,vol,0),0);
explainex(1=1,'【每日卖单总和】=',每日卖单总和,2,0),colorffff;
explainex(1=1,'【每日买单总和】=',每日买单总和,2,0),colorff00;
explainex(1=1,'【每日庄卖】=',每日庄卖,2,0),colorff;
explainex(1=1,'【每日庄买】=',每日庄买,2,0),colorffff00;
a:=if(close>126.32,amount/100000,vol);
主力:=ma(a,4);
游资:=ma(a,8);
大户:=ma(a,16);
散户:=ma(a,32);
主力参与比例:=round(主力/(主力+游资+大户+散户)*100);
游资参与比例:=round(游资/(主力+游资+大户+散户)*100);
大户参与比例:=round(大户/(主力+游资+大户+散户)*100);
散户参与比例:=round(散户/(主力+游资+大户+散户)*100);
警戒线:=ma(a,180);
explainex(1,'【主力】=',主力,2,0),colorffff;
explainex(1,'【游资】=',游资,2,0),colorff00;
explainex(1,'【大户】=',大户,2,0),colorff;
explainex(1,'【散户】=',散户,2,0),colorffff00;
explainex(1,'【主力参与比例】=',主力参与比例,2,0),colorffff;
explainex(1,'【游资参与比例】=',游资参与比例,2,0),colorff00;
explainex(1,'【大户参与比例】=',大户参与比例,2,0),colorff;
explainex(1,'【散户参与比例】=',散户参与比例,2,0),colorffff00;
explainex(1,'【警戒线】=',警戒线,2,0),colorff00ff;
fl:=ma(close,17)+abs(ma(close,17)-ref(ma(close,17),1));
fs:=ma(close,17)+ma(close,17)-ref(ma(close,17),1);
cg:=if(ma(close,17)<fs,fs,ma(close,17));
explainex(1,'【短线卖出参考价1】=',fs,2,0),colorff00;
explainex(1,'【短线卖出参考价2】=',cg,2,0),colorffff;
explainex(1,'【短线卖出参考价3】=',fl,2,0),colorff;
var0:=(close*2+high+low)/4*vol;
var1:=sum(var0,89)/sum(vol,89);
var2:=if(count(var0>0,2)>=2,ma(close,89)*(1+(ma(var0,89)/ref(ma(var0,89),1)-1)/21),ma(close,89));
var3:=if(count(abs(close-var1)>21,8)>=1 and count(close/ref(close,1)<0.8,8)<1 and count(var0>0,2)>=2,10,0);
var4:=if(close>=var1 and count(var0>0,2)>=2,var1*1.001,if(var0<0.1 and count(var0>0,2)<1.5,ma(close,89),var1*0.999));
var5:=if(var3>0,var2,var4);
var6:=ma(close,89);
搏杀生命线:=if(var5/ref(var5,1)>1.1 or var5/ref(var5,1)<0.9,var6,var5);
explainex(1,'【多空搏杀临界点】=',搏杀生命线,2,0),colorff00ff;
a:=(close*2+high+low)/4*vol;
b:=sum(a,1)/sum(vol,1);
b1:=ema(b,17);
资金:=(b-b1)*100/b;
强弱线:=0;
explainex(1,'【每日资金流向】=',资金,2,0),colorffffff;
var1:=vol/((high-low)*2-(abs(close-open)));
成交能量:=vol;
主动买盘:=if(close>open,var1*(high-low),if(close<open,var1*(high-open+close-low),vol/2));
主动卖盘:=if(close>open,-var1*(high-close+open-low),if(close<open,-var1*(high-low),-vol/2));
explainex(1,'【成交量】=',成交能量,2,0),colorff00ff;
explainex(1,'【主动买盘】=',主动买盘,2,0),colorffff00;
explainex(1,'【主动卖盘】=',主动卖盘,2,0),colorffff;
持股线:=ma(high,21);
空仓线:=ma(low,21);
操盘趋势:=ma(close,3);
explainex(1,'【突破压力价位】=',持股线,2,0),colorffff;
explainex(1,'【短线回调价位】=',空仓线,2,0),colorff;
explainex(1,'【伺机出击价位】=',操盘趋势,2,0),colorffffff;
风险揭示
尊敬的投资者:我们郑重提醒您理性看待市场,没有只涨不跌的市场,也没有包赚不赔的投资,投资者应理解并始终牢记“买者自负”的原则与“股市有风险,入市须谨慎”的投资准则,防止不顾一切、盲目投资的非理性行为。理性管理个人财富,安全第一。切勿冒险投资,请切记风险!
重要揭示
最看不起把人家指标修改一下,然后加个密卖钱的垃圾!
请尊重作者的劳动!不私自肆意传播及盗版商售活动。如果有市场营销
高手觉得此套作品有商业运作价值可向作者申请当地的独家代理合作
───────────────作者qq:87041989───────────
使用说明:
移动光标
1、以今日中价作为介入点(熊市不追高),涨跌5%作为止盈止损点,
在次日k线位画线作为提示,可以调整短线5%止盈止损.
操盘短线(红色,绿色):红色时买股持股立即跟进,变绿色时卖出。
操盘中线(趋势均线)*:红色时买股持股立即跟进,变绿色时就卖出,空仓或观望阶段。
纪律:不买高位除权票,不买无故暴跌票,不买高位横盘票,年底不买腰部票,切记熊市不言底'),
短线八要领:
短线第一要领:做短线心态很重要,要善于调节自己。
短线第二要领:一次成功的操作能给自己好心情。
短线第三要领:短线买入要在尾盘,过滤掉3小时焦虑。
短线第四要领:做短线只能看多,永不看空,买了才赚钱。
短线第五要领:做短线不要预测阻力支撑,买卖靠感觉。
短线第六要领:买进一定要涨,否则止损就在次日尾盘。
短线第七要领:做短线不能不懂波浪理论、时间之窗。
短线第八要领:不能什么时候都满仓,操作不能太频。
想在短时间内获得赢利是需要技巧的,下面介绍几种常见的方法
一、止赢法
1.短期内股价上扬30%就主动卖出。
2.从波段最高价向下设一个5%以内的止赢位,保障盈利。
3.股指见顶下跌形成一个底,再次跌破该底就是获利了结的时间
4.根据超买信号卖出法
a.周kdj由钝化变为向下,坚决卖出
b.周kdj的d值大于80时出现死叉坚决卖出
c.股价冲出boll上轨又跌回上轨以下,坚决卖出
d.bias乖离率过高时结合其他信号卖出
5.阻力位卖出法
a.前期高点位,尤其带巨量的高点,更应卖出。
b.成交密集区
c.重要的黄金分割位,如38.2%、50%、61.8%、75%等
6.击穿生命线卖出法:
就短线而言,生命线大多设为10日均线和20日均线,多数个股沿
此均线上升,一旦向下击穿两日内不返回,果断卖出止损止赢。
二、止损位
1.短线一根k线止损法,把进场k线的最低点设为止损点。
2.根据自己的特点和风险承受能力设置,一般把止损点设在买入价
下方的5%,最多不超过10%。
3.sar指标止损法,用法见相关书籍。
炒股必须设止损位,跌破止损位要果断认输,不要用任何理由来骗
自己。否则,短线做成中线,中线做成长线。
三、短线炒作灵活运用之招
1.必须具备不怕赔的心理。短线操作是以短为主,一旦买进发现
不妙,必须坚持赔本出局。
2.必须赢利就走。如果卖完再涨怎么办?既然是做短线,就应该
以获利为标准,不应以“再涨”为标准,否则就不是做短线。
3.必须结合大盘走势。一般讲,在多头行情中,短线时间可放宽
到 3-10天,但如果在空头市场中,时间最多 2天,不可在盘中久
留,盈利、亏损都不能久留。
4.必须关注成交量变化。当某股的成交量在逐步堆积,然后突然
放量上涨,可迅速跟进。但在第2天缩量上涨和下跌中及时出货。
5.必须有题财配合。有时主力利用题材短暂拉抬股票,所以必须
掌握题材。
好公式网www.goodgongshi.com--中国最大股票公式软件下载基地!
欢迎股友交流,修改编写公式,提供各类加密公式还原源码服务。
qq52421709
(0 0)
+----ooo----(_)----------+
| |
| 好公式网 |
| www.goodgongshi.com |
+-----------------ooo----+
|__|__|
|| ||
ooo ooo
上一指标公式:庄家操盘手法公式 飞狐操盘手法指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文赌鬼决策系统公式 飞狐决策系统指标 源码仅供学习研究。