灏然天空
ma5:=ma(close,5);
b1:=close/indexc;
b2:=ma(b1,5);
b3:=ma(b1,10);
b4:=ma(close,20);
b5:=close>ma(close,5);
b6:=ma(close,5)>ma(close,10);
b7:=close>ma(close,10);
b8:=ma(close,5)>ma(close,20);
b9:=close>ma(close,20);
b10:=ref(b4,1);
b11:=b4>b10;
b12:=if(b5,10,-10)+if(b6,10,-10)+if(b7,10,-10)+if(b8,10,-10)+if(b9,10,-10)+if(b11,10,-10);
drawbkbmp(b12>0 or b2>b3,'sun');
drawbkbmp(b12<=0,'moon');
fa:=ma(close,10);
fb:=ma(close,30);
fc:=barslast(cross(fa,ma5)) and cross(ma5,fa);
fd:=fc and ma5>fb and fa>fb and fa>ref(fa,1);
drawbkbmp(fd>0,'xxht');
ma3:=ma(close,3);
ma14:=ma(close,14);
ma25:=ma(close,25);
yx1:=sysparam(1);
yx2:=sysparam(3);
yx3:=yx2-yx1;
ma10:=fa;
ma30:=ma(close,30);
ma55:=ma(close,55);
ma60:=ma(close,60);
typ:=(high+low+close)/3;
cci:=(typ-ma(typ,14))/(0.015*avedev(typ,14));
ccidy:=cci>ref(cci,1);
冲涨回调:=fd and not(cross(ma3,ma10) and low<ma3) and not(cross(ma3,ma60) and low<ma3);
drawtext(冲涨回调,high*1.02,'小心回头'),colorcc00;
mmv:=ema(slope(close,22)*20+close,55);
hjx:=if(datatype>5 and datatype<9,ma(mmv,1),if(datatype=5,ma(mmv,4),if(datatype=4,ma(mmv,8),if(datatype=3,ma(mmv,16),if(datatype=2,ma(mmv,32),mmv)))));
hjxcs:=(ema(close,3)+ma(close,3))/2>hjx;
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:=3*k-2*d;
rsv13:=(close-llv(low,13))/(hhv(high,13)-llv(low,13))*100;
k13:=sma(rsv13,3,1);
d13:=sma(k13,3,1);
j13:=3*k13-2*d13;
rsv55:=(close-llv(low,55))/(hhv(high,55)-llv(low,55))*100;
k55:=sma(rsv55,3,1);
d55:=sma(k55,3,1);
j55:=3*k55-2*d55;
zd:=if(cross(j55,j13),high,ref(high,barslast(cross(j55,j13))));
xc:=llv(high,30);
va:=close/ref(close,1)>=1.045 or open=low and high=close or close/open>=1.07;
sj1:=barslast(va=1);
jc:=if(va=1,low*1,ref(low,sj1));
va1:=close/ref(close,1)>=1.095 or close/open>=1.1;
sj2:=barslast(va1=1);
zcyl:=if(va1=1,low,ref(low,sj2));
var1:=(low+high+close)/3;
var2:=ma(var1,5);
var3:=hhv(var2,13);
var4:=hhv(high,27)*0.995;
var5:=llv(low,27)*1.006;
var6:=llv(var2,13);
var7:=(close-llv(low,5))/(hhv(high,5)-llv(low,5))*100;
var8:=sma(var7,3,1);
var9:=sma(var8,2,1);
var10:=3*var8-2*var9;
var11:=ma(var10,2);
var12:=100-3*sma((close-llv(low,75))/(hhv(high,75)-llv(low,75))*100,20,1)+2*sma(sma((close-llv(low,75))/(hhv(high,75)-llv(low,75))*100,20,1),15,1);
var13:=barslast(ref(cross(var10,var11),1) and var11<20);
var14:=ref(var11,var13+1)<var11 and cross(var10,var11) and var11<50 and ref(var10,1)>ref(ref(var10,var13+1),1) and ref(var11,1)>ref(ref(var11,var13+1),1) and var13<20 and barslast(ref(cross(50,var10),1))<3;
var15:=count(cross(var10,var11),barslast(var11>=20));
var16:=cross(var10,var11) and var11<20 and (count(var15=2,21))=1;
var17:=3*sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1)-2*sma(sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1),3,1);
var18:=cross(var17,3);
var19:=ma("kdj.j#week"(9,3,3),5);
var20:=cross(j,ref(j,1)) and var19-ref(var19,1)>0.2 and j<60 and var19<50;
var21:=cross(j13,1) and cross(j55,1) and (cross(k55,1) or k55>ref(k55,1) and d55<5) or var17<5 and cross(j13,3) and cross(j55,3) and cross(k55,3);
var22:=var17<3 and j13<1 and j55<1 and k55<2 or var18 and var17<6 and ref(d55<20,3) or var20 or var21;
tp1:=llv(low,60)*1.01;
tp2:=llv(high,30)*1.01;
tp3:=var5;
tp4:=barslast(cross(tp1,tp3));
tp5:=ref(low,tp4);
tp6:=barslast(cross(tp3,tp1));
tp7:=ref(low,tp6);
tp8:=barslast(cross(tp3,tp2));
tp9:=ref(low,tp8);
tp10:=if(tp4>tp6,tp7,tp5);
tp:=if(tp8<tp6 and tp8<tp4,tp9,tp10);
if yx3<1 or yx3>2 then begin
五天:ma5,colorffffff;
十天:fa,colorffee;
操作:ma14,colorff00ff;
牛熊:ma25,colorcc00;
六零:ma60,linethick2,colorfaabec;
黄金线:hjx,linethick2,color9999;
partline(hjxcs,hjx),linethick2,color88;
短顶:var4,colorff6699;
短底:var5,color999999;
end;
if yx3=1 then begin
突破:tp,linedot,coloraa66aa;
进出:jc,color99ff;
支撑压力:zcyl,colorff66ff;
上轨:ma(high,6),shift2,coloraa00;
下轨:ma(low,6),shift2,coloraa;
阻挡:zd,linethick2,coloraaaaaa;
底部:xc,linethick1,colord0d000;
end;
ma5dy:=ma5>ref(ma5,1);
ma10dy:=ma10>ref(ma10,1);
ma14dy:=ma14>ref(ma14,1);
ma25dy:=ma25>ref(ma25,1);
ma20dy:=b4>ref(b4,1);
ma60dy:=ma60>ref(ma60,1);
hjxdy:=hjx>ref(hjx,1);
mady:=ma5dy and ma14dy and ma25dy and hjxdy;
mxa:=low<ref(max(close,open),1);
xgdy1:=k13>ref(k13,1);
xgdy2:=d13>ref(d13,1);
xgdy3:=j13>ref(j13,1);
xgdy4:=k55>ref(k55,1);
xgdy5:=d55>ref(d55,1);
xgdy6:=j55>ref(j55,1);
xgdy7:=var10>ref(var10,1);
xgdy8:=var11>ref(var11,1);
xgdy9:=xgdy1 and xgdy2 and xgdy3 and xgdy4 and xgdy5 and xgdy6;
xgdy10:=xgdy1 and xgdy3 and xgdy4 and xgdy6;
xgdy:=var5=ref(var5,1) and xc=ref(xc,1);
xgsc1:=cross(k13,d13);
xgsc2:=cross(k55,d55);
xgsc3:=cross(var10,var11) and xgdy7;
xgsc4:=(barslast(cross(j13,0) or cross(j13,k55) and cross(j13,d55) or xgsc1))<2 and (cross(j55,0) or j55<0 and xgdy6);
lk:=cross(close,tp) and va=1;
ys1:=dma(close,vol/ma(vol,4)/4);
ys2:=dma(close,vol/ma(vol,32)/32);
ys3:=(close-ys1)/ys1*100<-8;
ys4:=(ys1-ys2)/ys2*100<-21;
逆势出招:=ys3 and ys4 and var22 and (open-ref(close,1))/ref(close,1)>-0.05 or cross(var17,1) and xgsc1 and d55<5 and (xgsc3 or xgdy7 and xgdy8) and (cross(var11,50) or var10<50);
cd1:=ref(close,2)*0.865;
cd2:=ref(close,13)*0.772;
cd3:=100*vol/capital;
cd4:=ref((close-min(cd1,cd2))/close<0.1 and sum(cd3,5)/5<1.8,1);
cd5:=var20 and (cross(j55,0) and d55<20 or cross(var17,10) or cross(var17,1) and d55<3 or var21) and xgdy8;
cd6:=var18 and ref(d55<20,3) and (cross(j,0) and cross(j13,0) and cross(j55,0) or cross(var17,10) or var20) and var12>99.5;
cd7:=j<-24 and j13<-24 and var17<18 or cross(var17,10) and cross(k13,d13) and cross(k55,d55) and d55<var17;
cd8:=ref(d55<20,3) and cross(j,0) and cross(j13,0) and cross(j55,0) and var17<5 and d55<3 and k13<10;
cd9:=cross(j,-4) and cross(j13,-4) and cross(j55,-4) and (cross(var17,0) or var18);
cd10:=var18 and ref(cross(20,var11),1) and cross(var11,20);
cd11:=cross(var10,20) and cross(var11,20) and var10<36 and ref(cross(20,var10) and cross(20,var11),1);
cd12:=low<=var5 and close>ref(open,1) and cross(var11,20) and ref(cross(var10,20),1) and ref(cross(20,var10) and cross(20,var11),2);
抄底:=逆势出招=0 and var11<20 and (cd4 and (var22 and var12>99.5 or cd11) or cd5 or cd6 or cd7 or cd8 or cd9 or cd10 or cd12) and (xgsc3 or xgdy7 and xgdy8) and (cross(var11,50) or var10<50) or xgsc3 and cross(var11,20) and ref(xgdy8,1) and ref(xgdy8,2) and var5=ref(var5,9);
drawtext(filter(抄底,3) and ref(逆势出招=0,1),low-0.05,'抄底'),colorff00;
drawtext(filter(逆势出招,3),low*0.96,'逆势出招'),colorf0f000;
zz1:=ma5dy and ma10dy and var17>ref(var17,1) and (cross(close,ma14) and hjxcs or ma5>ma14 and xgdy7) and var10>ref(var10,3);
zz2:=cross(ma5,hjx) and (cross(close,ma25) and ref(close>=open,1) or ma10dy) and hjxcs and (cross(ma5,ma60) or cross(ma5,ma14) and (ma14dy or hjxdy) or xgdy9 and d55<20);
zz3:=xgsc1 and cross(ma10,ma25) and cross(k55,20) and xgdy9 and var10<80 and var10<85;
zz4:=(xgsc3 or var10/var11>ref(var10/var11,1)) and cross(ma5,ma25) and cross(ma10,ma14-0.01) and xgdy9 and d55<20 and ma14dy and hjxdy and hjxcs;
zz5:=xgsc3 and cross(var10,85) and xgdy9 and ma5dy and ma10dy and ma14dy and hjxdy and close>open and d55<20;
zz6:=cross(var17,ref(var17,1)) and j-ref(j,1)>10 and barslast(cross(j13,0))<5 and cross(k13,20) and cross(var17,20) or var20 and cross(var17,50) and d55>ref(d55,1) or cross(d,var17) and cross(k13,20);
追涨:=d55>ref(d55,2) and d55>ref(d55,6) and j13<110 and j13>ref(j13,3) and (zz6 or var5<=ref(var5,3) and 冲涨回调=0 and var10>ref(var10,4) and (zz1 or zz2 or zz3 or zz4 or zz5)) and open<ref(high,1);
drawtext(filter(追涨,3),low*0.96,'追涨'),color99ff;
dx1:=ref(b4,1);
dx2:=(b4-dx1)/dx1*100;
dx3:=ma(dx2,3);
dx4:=(b4-ma30)/ma30*100;
dx5:=if(between(dx4,-2,5),2,0);
dx6:=max(b4,ma30);
dx7:=max(dx6,ma55);
dx8:=min(b4,ma30);
dx9:=min(dx8,ma55);
dx10:=(dx7/dx9-1)*100;
dx11:=if(dx10<=8,1,0);
dx12:=filter((dx5 or dx11) and ma10>ref(ma10,1) and (count(ma30>ref(ma30,1),3))=3 and ma30>ma55 and count(cross(ma5,ma30),3) and dx2>dx3 and ma(vol,5)>ma(vol,60) and low<=ref(high,1) and ma(vol,60)>ref(ma(vol,60),1),5) and (xgdy9 or xgsc3 and xgdy8) and var5=ref(var5,3) and j55<100;
drawtext(dx12,ma5*0.98,'还会涨'),colorddbb;
zm1:=cross(ma3,ma55) and cross(close,hjx) and cross(close,ma60) and cross(close,ma10) and cross(close,b4) and cross(close,ma30) and cross(close,zd);
zm2:=barslast(cross(close,llv(high,30)))<5 and barslast(cross(hjx,ma60))<5 and (ema(close,3)+ma(close,3))/2>hjx;
zm3:=ma(vol,34)>ref(ma(vol,34),1) and ma(vol,5)>ref(ma(vol,5),1) and vol>ref(vol,1) and ma(vol,20)>ref(ma(vol,20),1) and ma(vol,20)>ma(vol,34);
zm4:=zm1 and zm2 and zm3 and (xgdy9 or xgsc3 and xgdy8);
drawtext(zm4,low*0.98,'坚决买'),colordd00dd;
钱袋:=b4>ma30 and b4>ref(b4,1) and ma30>ref(ma30,1) and b4-ma30>ref(b4-ma30,1);
进钱:=filter(钱袋 and "macd.diff"<0.15 and "macd.diff">ref("macd.diff",1) and ma(vol,60)>ref(ma(vol,60),1) and ma(vol,5)>ma(vol,10) and dx2>ref(dx2,1) and (low<=b4 and close>b4 or cross(ma5,b4)),5) and xgdy7 and xgdy8 and xgdy9;
drawtext(进钱,ma5*0.96,'备钱袋'),color99dd;
lc:=ref(close,1);
rsi12:=(sma(max(close-lc,0),12,1))/(sma(abs(close-lc),12,1))*100;
rs1:=ref(rsi12,3)=hhv(rsi12,2*3+1);
rs2:=backset(rs1,3+1);
rs3:=filter(rs2,3) and rsi12=hhv(rsi12,3+1);
rs4:=barstatus=2 and ref(rs3,barslast(rs3));
rs5:=backset(rs4,barslast(rs3)+1);
rs6:=rs5>ref(rs5,1);
rs7:=ref(barslast(rs3),1);
rs8:=backset(rs6,rs7+2);
rs9:=rs8>ref(rs8,1);
rs10:=(ref(rsi12,barslast(rs6))-ref(rsi12,barslast(rs9)))/(barslast(rs9)-barslast(rs6));
阻力值:=ref(rsi12,barslast(rs6))+barslast(rs6)*rs10;
drawtext(cross(rsi12,阻力值),low*0.96,if(阻力值<ref(阻力值,1),'阻力↓','阻力↑')),colordd00;
rs11:=barslast(ref(cross("rsi.rsi1","rsi.rsi2"),1));
rsibl:=ref(close,rs11+1)>close and ref("rsi.rsi1",rs11+1)<"rsi.rsi1" and cross("rsi.rsi1","rsi.rsi2");
drawtext(filter(rsibl>0,5),low,'rsi底背'),colorff00;
持股:=cross(close,tp) and mxa and tp=ref(tp,1) and xgdy9 and var10<20 and var6=ref(var6,4) and xc=ref(xc,4) and var5=ref(var5,4) and ma5dy and ma14dy and ma25dy and hjxdy and j13<105 and j55<100;
drawtext(filter(持股,4),low*0.99,'持股'),colorffff;
选牛:if(zd<zcyl and xgdy10 and xgdy and close>ref(close,1) and (cross(xc,ma5) or cross(zd,ma14)) or cross(tp,ma5) and zcyl<var5 and var5=ref(var5,1) and xgsc4,1,0),linethick0;
选股:if(追涨 or 选牛 or rsibl or 进钱 or 逆势出招 or 抄底 or 持股 or zm4 or dx12 or cross(rsi12,阻力值) and 阻力值<ref(阻力值,1) and (var11<50 or var19<50) and (xgdy7 or xgdy8),19,0),linethick0;
特选:if((zd=xc or zd/xc<1.01) and (close<ma30 or low<ma3 and (cross(ma3,hjx) or cross(ma5,hjx) or cross(ma10,hjx) or cross(ma10,ma30) or cross(hjx,ma30) or cross(ma10,ma60))) or cross(close,xc) and cross(close,zd) or cross(low,xc) and cross(low,zd),20,0),linethick0;
koh:=low>ref(high,1);
kol:=high<ref(low,1);
hif:=low>ref(high,barslast(koh)+1);
nhif:=low<=ref(high,barslast(koh)+1);
lif:=high<ref(low,barslast(kol)+1);
nlif:=high>=ref(low,barslast(kol)+1);
上缺口:=hif and barslast(koh)<barslast(nhif) and barslast(hif)<barslast(nhif);
下缺口:=lif and barslast(kol)<barslast(nlif) and barslast(lif)<barslast(nlif);
mrzy:=round(((ref(high,1)-ref(low,1))*8/10+close)*100)/100;
mrzs:=round((close-(ref(high,1)-ref(low,1))*8/20)*100)/100;
stickline(close>open and islastbar,mrzy,mrzs,8,1),shift1,colorff00ff;
stickline(close<=open and islastbar,mrzy,mrzs,8,1),shift1,colorffff00;
kx1:=close>open or close=open and close>ref(close,1);
stickline(kx1,close,open,8,0),color11aa;
stickline(kx1,close,open,6,0),color22aa;
stickline(kx1,close,open,4,0),color33aa;
stickline(kx1,close,open,2,0),color44aa;
stickline(kx1,high,low,0,0),colordd;
kx2:=close<open or close=open and close<=ref(close,1);
stickline(kx2,close,open,8,0),colorff5511;
stickline(kx2,close,open,6,0),colorff6611;
stickline(kx2,close,open,4,0),colorff7711;
stickline(kx2,close,open,2,0),colorff8811;
stickline(kx2,high,low,0,0),colorff9911;
stickline(va=1,open,(open+close)/2,8,0),color99ff;
stickline(va=1,open,(open+close)/2,6,0),coloraaff;
stickline(va=1,open,(open+close)/2,4,0),colorbbff;
stickline(va=1,open,(open+close)/2,2,0),colorccff;
stickline(va=1,open,(open+close)/2,0,0),colorddff;
stickline(ma(close,13)>open and close>ma(close,13),close,open,0.8,1),colorffff;
drawicon(cross(jc,zcyl),zcyl*0.99,6);
drawtext(close/ref(close,1)>=1.095,close*0.998,'涨\n停'),align0,colorffffff;
drawtext(filter(cross(var3,ma5-0.012),3),high*1.06,'跑'),align0,colorf0f000;
avx:=b12;
dslx:=close/indexc;
dslx1:=ma(dslx,5);
dslx2:=ma(dslx,10);
v1:=ma(vol,5);
v2:=ma(vol,10);
阻力:=if(close>200,close*1.01,close*1.07);
阻力位:=if(close<10,close*1.05,阻力);
止损:=if(close>200,close*0.99,close*0.93);
止损位:=if(close<10,close*0.95,止损);
ts1:=barstatus=2 and close<200;
ts2:=barscount(close)=sysparam(1) and close>200;
drawtextex(ts1 and cross(avx,1) and v1>=v2 and dslx>=dslx1,1,380,2,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。'),colordd;
drawtextex(ts1 and cross(avx,1) and v1<v2 and dslx>=dslx1,1,400,2,'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右。'),colordd;
drawtextex(ts1 and cross(avx,1) and v1>v2 and dslx<dslx1,1,310,2,'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右。'),colordd;
drawtextex(ts1 and cross(avx,1) and v1<=v2 and dslx<dslx1,1,380,2,'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右。'),colordd;
drawtextex(ts1 and cross(1,avx) and v1>=v2 and dslx>=dslx1,1,370,2,'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望。'),coloree00;
drawtextex(ts1 and cross(1,avx) and v1<v2 and dslx>=dslx1,1,420,2,'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓。'),coloree00;
drawtextex(ts1 and cross(1,avx) and v1>=v2 and dslx<dslx1,1,640,2,'该股放量下跌,走势明显偏弱,离场观望。'),coloree00;
drawtextex(ts1 and cross(1,avx) and v1<v2 and dslx<dslx1,1,666,2,'该股缩量下跌,走势偏弱,离场观望。'),coloree00;
drawtextex(ts1 and avx>=1 and ref(avx,1)>0 and v1>=v2 and dslx>=dslx1,1,560,2,'该股形态良好,强势明显,量能充足,可以继续持有。'),colorffff;
drawtextex(ts1 and avx>=1 and ref(avx,1)>0 and v1<v2 and dslx>=dslx1,1,500,2,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险。'),coloreeee;
drawtextex(ts1 and avx>=1 and ref(avx,1)>0 and v1>=v2 and dslx<dslx1,1,580,2,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。'),colordddd;
drawtextex(ts1 and avx>=1 and ref(avx,1)>0 and v1<v2 and dslx<dslx1,1,620,2,'该股走势趋弱,量能不足,减持大部分筹码。'),colorcccc;
drawtextex(ts1 and avx<1 and ref(avx,1)<0 and v1>=v2 and dslx>=dslx1,1,546,2,'该股形态不佳,注意成交量的变化,但目前不适合参与。'),colorddaa;
drawtextex(ts1 and avx<1 and ref(avx,1)<0 and v1<v2 and dslx>=dslx1,1,526,2,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。'),colorddaa;
drawtextex(ts1 and avx<1 and ref(avx,1)<0 and v1>=v2 and dslx<dslx1,1,540,2,'该股有走强迹象,但量能不足,趋势不明,不适合操作。'),colorddaa;
drawtextex(ts1 and avx<1 and ref(avx,1)<0 and v1<v2 and dslx<dslx1,1,726,2,'该股走势太弱,没有参与价值。'),coloraaaa;
drawtextex(ts2 and cross(avx,1) and v1>=v2,1,400,1,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右 '),align4,colorff;
drawtextex(ts2 and cross(avx,1) and v1>=v2,1,368,60,'如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎。'),colorff;
drawtextex(ts2 and cross(avx,1) and v1<v2,1,488,1,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌 '),colorff;
drawtextex(ts2 and cross(avx,1) and v1<v2,1,456,60,'可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入。'),colorff;
drawtextex(ts2 and cross(1,avx) and v1>=v2,1,628,2,'大盘形态走坏,重仓者可以减去大部分仓位。'),colorff00;
drawtextex(ts2 and cross(1,avx) and v1<v2,1,648,2,'大盘缩量调整,注意风险,短线清仓观望。'),colorff00;
drawtextex(ts2 and avx>=1 and ref(avx,1)>0 and v1>=v2,1,580,2,'大盘走势良好,量能理想,可以继续持有强势股。'),colorffff;
drawtextex(ts2 and avx>=1 and ref(avx,1)>0 and v1<v2,1,580,2,'大盘形态良好,但量能稍显不足,随时准备减仓。'),colorffff;
drawtextex(ts2 and avx<1 and ref(avx,1)<0 and v1>=v2,1,560,2,'大盘趋势不明,注意成交量变化,目前不适宜进场。'),colordd00;
drawtextex(ts2 and avx<1 and ref(avx,1)<0 and v1<v2,1,660,2,'大盘趋势向下,量能萎缩,不适合进场。'),colorcc00;
ts1:=barstatus=2 and close<200;
ts2:=barscount(close)=sysparam(1) and close>200;
drawtextex(ts1 and cross(avx,1) and v1>=v2 and dslx>=dslx1,1,380,2,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。'),colordd;
drawtextex(ts1 and cross(avx,1) and v1<v2 and dslx>=dslx1,1,400,2,'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右。'),colordd;
drawtextex(ts1 and cross(avx,1) and v1>v2 and dslx<dslx1,1,310,2,'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右。'),colordd;
drawtextex(ts1 and cross(avx,1) and v1<=v2 and dslx<dslx1,1,380,2,'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右。'),colordd;
drawtextex(ts1 and cross(1,avx) and v1>=v2 and dslx>=dslx1,1,370,2,'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望。'),coloree00;
drawtextex(ts1 and cross(1,avx) and v1<v2 and dslx>=dslx1,1,420,2,'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓。'),coloree00;
drawtextex(ts1 and cross(1,avx) and v1>=v2 and dslx<dslx1,1,640,2,'该股放量下跌,走势明显偏弱,离场观望。'),coloree00;
drawtextex(ts1 and cross(1,avx) and v1<v2 and dslx<dslx1,1,666,2,'该股缩量下跌,走势偏弱,离场观望。'),coloree00;
drawtextex(ts1 and avx>=1 and ref(avx,1)>0 and v1>=v2 and dslx>=dslx1,1,560,2,'该股形态良好,强势明显,量能充足,可以继续持有。'),colorffff;
drawtextex(ts1 and avx>=1 and ref(avx,1)>0 and v1<v2 and dslx>=dslx1,1,500,2,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险。'),coloreeee;
drawtextex(ts1 and avx>=1 and ref(avx,1)>0 and v1>=v2 and dslx<dslx1,1,580,2,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。'),colordddd;
drawtextex(ts1 and avx>=1 and ref(avx,1)>0 and v1<v2 and dslx<dslx1,1,620,2,'该股走势趋弱,量能不足,减持大部分筹码。'),colorcccc;
drawtextex(ts1 and avx<1 and ref(avx,1)<0 and v1>=v2 and dslx>=dslx1,1,546,2,'该股形态不佳,注意成交量的变化,但目前不适合参与。'),colorddaa;
drawtextex(ts1 and avx<1 and ref(avx,1)<0 and v1<v2 and dslx>=dslx1,1,526,2,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。'),colorddaa;
drawtextex(ts1 and avx<1 and ref(avx,1)<0 and v1>=v2 and dslx<dslx1,1,540,2,'该股有走强迹象,但量能不足,趋势不明,不适合操作。'),colorddaa;
drawtextex(ts1 and avx<1 and ref(avx,1)<0 and v1<v2 and dslx<dslx1,1,726,2,'该股走势太弱,没有参与价值。'),coloraaaa;
drawtextex(ts2 and cross(avx,1) and v1>=v2,1,400,1,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右 '),align4,colorff;
drawtextex(ts2 and cross(avx,1) and v1>=v2,1,368,60,'如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎。'),colorff;
drawtextex(ts2 and cross(avx,1) and v1<v2,1,488,1,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌 '),colorff;
drawtextex(ts2 and cross(avx,1) and v1<v2,1,456,60,'可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入。'),colorff;
drawtextex(ts2 and cross(1,avx) and v1>=v2,1,628,2,'大盘形态走坏,重仓者可以减去大部分仓位。'),colorff00;
drawtextex(ts2 and cross(1,avx) and v1<v2,1,648,2,'大盘缩量调整,注意风险,短线清仓观望。'),colorff00;
drawtextex(ts2 and avx>=1 and ref(avx,1)>0 and v1>=v2,1,580,2,'大盘走势良好,量能理想,可以继续持有强势股。'),colorffff;
drawtextex(ts2 and avx>=1 and ref(avx,1)>0 and v1<v2,1,580,2,'大盘形态良好,但量能稍显不足,随时准备减仓。'),colorffff;
drawtextex(ts2 and avx<1 and ref(avx,1)<0 and v1>=v2,1,560,2,'大盘趋势不明,注意成交量变化,目前不适宜进场。'),colordd00;
drawtextex(ts2 and avx<1 and ref(avx,1)<0 and v1<v2,1,660,2,'大盘趋势向下,量能萎缩,不适合进场。'),colorcc00;
a1:=ref(high,3)=hhv(high,2*3+1);
b1:=filter(a1,3);
c1:=backset(b1,3+1);
d1:=filter(c1,3);
a2:=ref(low,3)=llv(low,2*3+1);
b2:=filter(a2,3);
c2:=backset(b2,3+1);
d2:=filter(c2,3);
e1:=(ref(llv(low,2*3),1)+ref(hhv(high,2*3),1))/2;
e2:=(high+low)/2;
h1:=d1 and not(d2 and e1>=e2) or barstatus=2 or barscount(close)=1;
h2:=d1 and not(d2 and e1>=e2);
l1:=d2 and not(d1 and e1=e2);
x1:=ref(barslast(h1),1)+1;
f1:=backset(h1 and count(l1,x1)>0,llvbars(if(l1,low,10000),x1));
g1:=f1>ref(f1,1);
i1:=backset(g1,2);
ld:=i1>ref(i1,1);
l2:=ld or barstatus=2 or barscount(close)=1;
x2:=ref(barslast(l2),1)+1;
f2:=backset(l2 and count(h2,x2)>0,hhvbars(if(h2,high,0),x2));
g2:=f2>ref(f2,1);
i2:=backset(g2,2);
hd:=i2>ref(i2,1);
j1:=backset(barstatus=2,min(barslast(hd),barslast(ld))+1);
j2:=j1>ref(j1,1);
a3:=high;
b3:=ref(high,ref(barslast(hd),1)+1)>ref(high,ref(barslast(hd),1)+2+ref(barslast(hd),ref(barslast(hd),1)+2));
d3:=a3 and b3 and hd;
e3:=backset(d3,ref(barslast(hd),1)+2);
hh:=e3>ref(e3,1);
a4:=low>ref(low,ref(barslast(ld),1)+1);
b4:=ref(low,ref(barslast(ld),1)+1);
d4:=a4 and b4 and ld;
e4:=backset(d4,ref(barslast(ld),1)+2);
ll:=e4>ref(e4,1);
h3:=hh or barstatus=2 or barscount(close)=1;
x3:=ref(barslast(h3),1)+1;
f3:=backset(h3 and count(ll,x3)>0,llvbars(if(ll,low,pow(10,20)),x3));
g3:=f3>ref(f3,1);
i3:=backset(g3,2);
lz:=i3>ref(i3,1);
l4:=lz or barstatus=2 or barscount(close)=1;
x4:=ref(barslast(l4),1)+1;
f4:=backset(l4 and count(hh,x4)>0,hhvbars(if(hh,high,-pow(10,20)),x4));
g4:=f4>ref(f4,1);
i4:=backset(g4,2);
hz:=i4>ref(i4,1);
k1:=backset(barstatus=2,min(barslast(hz),barslast(lz))+1);
k2:=k1>ref(k1,1);
uu:=backset(barstatus=2,barslast(ld)+1);
vv:=uu>ref(uu,1);
ww:=backset(vv,ref(barslast(ld),1)+2);
xx:=ww>ref(ww,1);
uu2:=backset(barstatus=2,barslast(hd)+1);
vv2:=uu2>ref(uu2,1);
ww2:=backset(vv2,ref(barslast(hd),1)+2);
xx2:=ww2>ref(ww2,1);
if yx3=2 then begin
drawline(xx,low,vv,low,1),pointdot,colorcc00;
ylzc1:=backset(ref(high,2)=hhv(high,5),3);
ylzc2:=cross(ylzc1,0.9);
ylzc3:=backset(ref(low,2)=llv(low,5),3);
ylzc4:=cross(ylzc3,0.9);
压力:ref(high,barslast(ylzc2)),linethick1,colorea91b5;
支撑:ref(low,barslast(ylzc4)),linethick1,colorb4ff;
drawline(xx2,high,vv2,high,1),pointdot,colorffff;
前一低:ref(low,barslast(vv)),linedashdot,color99ff66;
前二低:ref(low,barslast(xx)),linedashdot,colorff66ff;
前一高:ref(high,barslast(vv2)),linedashdot,color99ff66;
前二高:ref(high,barslast(xx2)),linedashdot,colorff66ff;
短高:=ref(high,barslast(vv2));
短低:=ref(low,barslast(vv));
短比:=(close-短低)/(短高-短低);
底:=ref(low,barslast(vv));
頂:=ref(high,barslast(vv2));
stickline(vv,頂,底,0,0),linethick2,coloraa00;
drawline(vv2,high,vv,low,0),linethick2,coloraa00;
drawline(vv2,high,vv,頂,0),linethick2,coloraa00;
stickline(vv2,頂,底,0,0),linethick2,color99;
drawline(vv,low,vv2,high,0),linethick2,color99;
drawline(vv,low,vv2,底,0),linethick2,color99;
end;
zczl:=if(close=indexc,(indexc+indexh+indexl+indexo)/4,amount/(vol+0.01)/100);
zl:=if(close=indexc,zczl+indexc-indexl,zczl+close-low);
zc:=if(close=indexc,indexl+indexc-zczl,low+close-zczl);
今压:=ref(zl,1);
今撑:=ref(zc,1);
明压:=zl;
明撑:=zc;
drawtextex(barstatus=2,1,562,999,'今压:'),colorcc00cc;
drawtextex(barstatus=2,1,606,999,numtostr(今压,2)),colorffffff;
drawtextex(barstatus=2,1,662,999,'今撑:'),colorcc9900;
drawtextex(barstatus=2,1,706,999,numtostr(今撑,2)),colorffffff;
drawtextex(barstatus=2,1,762,999,'明压:'),color99dd;
drawtextex(barstatus=2,1,806,999,numtostr(明压,2)),colorffffff;
drawtextex(barstatus=2,1,862,999,'明撑:'),color9900;
drawtextex(barstatus=2,1,906,999,numtostr(明撑,2)),colorffffff;
stickline(ref(low,barslast(xx)) and barstatus=2,ref(low,barslast(xx)),ref(low,barslast(xx)),20,0),color99aa;
drawtext(islastbar,ref(low,barslast(xx)),numtostr(ref(low,barslast(xx)),2)),shift1,pxup6,colorffffff;
drawtext(islastbar,ref(high,barslast(vv2)),numtostr(ref(high,barslast(vv2)),2)),shift1,pxup6,colorffff;
上一指标公式:黄K线买入公式 飞狐买入指标 源码
下一指标公式:雄师百万低位狙击公式 飞狐低位狙击指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文灏然天空主图调用背景图片公式 飞狐源码背景图片指标 源码仅供学习研究。