fz南方紫离宫
drawgbk(c=c,colorrgb(260,0,0),colorrgb(180,180,180),1);
drawtextex(c>0,1,0,0,'红线买卖线'),linethick1,colorred;
drawtextex(c>0,1,150,0,'灰线七天线'),linethick1,color888888;
drawtextex(c>0,1,0,40,'七天线跌破短线止赢'),linethick1,color888888;
drawtextex(c>0,1,20,80,'黄点工作线'),linethick1,coloryellow;
drawtextex(c>0,1,0,120,'最低点靠近工作线低吸'),linethick1,colorred;
drawtextex(c>0,1,0,160,'最高点靠近工作线低抛'),linethick1,colorgreen;
drawtextex(c>0,1,0,200,'线上阴线买'),linethick2,colorred;
drawtextex(c>0,1,150,200,'线下阳线卖'),linethick2,colorgreen;
drawtextex(c>0,1,0,240,'线上工作'),linethick1,colorred;
drawtextex(c>0,1,150,240,'线下休息'),linethick1,colorgreen;
drawtextex(c>0,1,0,280,'粉红色k线-多空停损'),linethick1,colormagenta;
drawtextex(c>0,1,0,320,'黄心k线-立庄量'),linethick1,coloryellow;
drawtextex(c>0,1,0,360,'棕心k线-立庄量成立'),linethick1,color3399ff;
drawtextex(c>0,1,300,0,'k线中部紫红色条纹启动'),color663377;
drawtextex(c>0,1,300,40,'k线中部深棕色条纹持股'),color122650;
drawtextex(c>0,1,300,80,'k线中部浅青色条纹逃顶'),colorcyan;
drawtextex(c>0,1,300,120,'k线中部浅白色条纹警惕'),colorwhite;
drawtextex(c>0,1,300,160,'k线中部浅灰色条纹空仓'),color888888;
七天线:ma(c,7),colorgray;
工作线:(ema(c,17)) ,pointdot,linethick4,coloryellow;
买卖线:ema(slope(c,21)*21+c,42),colorred,linethick2;
a3:=ema((((slope(c,21)) * 20) + c),68);
a4:=ema(c,10);
a5:=ref(c,2);
a6:=((sma((max((c - a5),0)),6,1)) / (sma(abs((c - a5)),6,1))) * 100;
a7:=if(((a6 < (ref(a6,1))) and (a6 > 79)),a6,0);
drawtext((cross(a4,a3)),l,'△'),linethick2,coloryellow;
drawtext(a7,h,'○'),linethick3,color00ff00;
a8:=llv(l,21);
a9:=hhv(h,21);
a10:=ema((((close - a8) / (a9 - a8)) * 100),5);
a11:=ema((((close - a8) / (a9 - a8)) * 50),13);
a12:=ema(((0.667 * (ref(a10,1))) + (0.333 * a10)),2);
a13:=llv(l,55);
a14:=hhv(h,34);
a15:=ema((((c - a13) / (a14 - a13)) * 100),3);
a16:=(a11 + a15) / 2;
a17:=ema(((0.667 * (ref(a15,1))) + (0.333 * a10)),2);
a18:=ema(a16,5);
a19:=ema(((0.667 * (ref(a18,1))) + (0.333 * a18)),2);
a20:=cross(a10,a11);
a21:=(cross(a10,a19)) and (a19 < 30);
a22:=a21 * 0.6;
drawtext((a22 = 0.6),l,'◇'),linethick4,coloryellow;
drawtext((a20 = 1),l,'◇'),linethick4,colorwhite;
a23:=((c + l) + h) / 3;
a24:=ema(a23,6);
a25:=ema(a24,5);
a26:=cross(a24,a25);
drawicon(a26,(low / 1.005),6),linethick2,colorff00ff;
stickline(((c >= 工作线) and (c >= o)),h,l,0.5,1),colorred;
stickline(((c >= 工作线) and (c >= o)),o,c,8,1),colorred;
stickline(((c >= 工作线) and (c <= o)),h,l,0.5,0),colorred;
stickline(((c >= 工作线) and (c <= o)),o,c,8,0),colorred;
stickline(((c < 工作线) and (c >= o)),h,l,0.5,1),color00ff00;
stickline(((c < 工作线) and (c >= o)),o,c,8,1),color00ff00;
stickline(((c < 工作线) and (c <= o)),h,l,0.5,1),color00ff00;
stickline(((c < 工作线) and (c <= o)),o,c,8,0),color00ff00;
x0:=if(c>=ref(c,1),amount/10000,0);
x1:=if(c<ref(c,1),amount/10000,0);
dd:=(x0-x1);
ee:=vol/sum(vol,55);
lc:=ref(close,1);
jh:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
cp:=filter(cross(75,jh),11);
zp:=filter(cross(jh,25),22);
dp:=if(c>1000,(dd/10000000000)/ee,dd/(finance(7)*c))*100;
a0:=zp;
a1:=cp;
a2:=dp;
a0:=zp;
a1:=cp;
a2:=dp;
drawtext(a0,l,' ̄ ̄'),linethick2,align1,colorffffff;
drawtext(a0,l*0.98,' b-b'),linethick5,align1,colorffffff;
drawtext(a1,h,' ̄ ̄'),linethick2,align1,colorcyan;
drawtext(a1,h*1.03,' s-s'),linethick5,colorcyan;
stickline((a2>=10 and a2<30),c,o,0,0),colorffbbff;
stickline((a2>=10 and a2<30),c,o,8,0),colormagenta;
stickline((a2>=10 and a2<30),c,o,7,0),colorff22ff;
stickline((a2>=10 and a2<30),c,o,6,0),colorff44ff;
stickline((a2>=10 and a2<30),c,o,5,0),colorff66ff;
stickline((a2>=10 and a2<30),c,o,4,0),colorff88ff;
stickline((a2>=10 and a2<30),c,o,3,0),colorff99ff;
stickline((a2>=10 and a2<30),c,o,2,0),colorffaaff;
stickline((a2>=10 and a2<30),c,o,1,0),colorffbbff;
aa05:=ma(c,5),linethick0;
mm5:=(c-aa05)/aa05*100;
bb05:=atan((aa05/ref(aa05,1)-1)*100)*180/3.1416;
nn5:=sma(ema((aa05-ref(aa05,1))/ref(aa05,1),3)*100,3,1);
nnnn5:=ema((nn5-ref(nn5,1)),3),linethick0;
aa10:=ma(c,10),linethick0;
aa20:=ma(c,20);
bb10:=atan((aa10/ref(aa10,1)-1)*100)*180/3.1416;
aa30:=ma(c,30),linethick0;
mm30:=(c-aa30)/aa30*100,linethick0;
var1:=(aa20-aa30)>ref((aa20-aa30),1) and aa20>ref(aa20,1) and aa30>ref(aa30,1);
var2:=(aa30-aa20)<ref((aa30-aa20),1) and aa20<ref(aa20,1) and aa30<ref(aa30,1);
bb30:=atan((aa30/ref(aa30,1)-1)*100)*180/3.1416;
强势:=filter(bb30>30 and bb10>45 and cross(bb05,60),10);
加仓:=filter(count(cross(bb05,30),5)>=1 and aa05>ref(aa05,1) and mm30>ref(mm30,1) and aa10>ref(aa10,1)
and nnnn5>ref(nn5,1) and nn5>ref(nn5,1) ,10) ;
清仓:=filter(count(cross(30,bb05),5)>=1 and (c>aa30 or o>aa30) and aa05<ref(aa05,1) and mm30<ref(mm30,1) and aa10<ref(aa10,1),10);
jc:=cross(0,mm5) and mm30<ref(mm30,1) and aa10>ref(aa10,1) ;
减仓:=filter(jc,10);
mr:=count(cross(mm30,0),3)>=1 and mm30>ref(mm30,1) and aa05>ref(aa05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1)<aa30;
买入:=filter(mr,10);
drawtext((买入),low*0.945,'⊙买入'),linethick2,align1,coloryellow;
drawtext(减仓,high*1.06,'◇减仓'),align2,linethick3,colorcyan;
drawtext((加仓),low*0.985,'⊙加仓'),linethick2,align1,colorwhite;
drawtext((强势),low*0.985,'⊙强势'),linethick2,align1,colorred;
bbi:=(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4;
v2:=if(barstatus=1,vol*240/minute/ref(vol,1)-1,vol/ref(vol,1)-1);
stickline(v2>=1,o,c,3,0),coloryellow;
t12:=v2>=1;
t0:=barslast(t12);
l1:=ref(l,t0);
h1:=ref(h,t0);
l11:=min(ref(l,1),l);
l10:=min(l11,ref(l,2));
l21:=max(ref(l,1),l);
l20:=max(l21,ref(l,2));
t111:=(ref(v2>=1,3) or ref(v2>=1,2) or ref(v2>=1,1)) and ((l10>l1 and l20>h1) or (l11>l1 and l21>h1) or (l>h1));
t11:=t111 and ref(t111,1)=0;
stickline(t11,o,c,3,0),color3399ff;
ma20:=ma(close,20);
ma120:=ma(close,120);
ma30:=ma(close,37);
aa10:=ma(close,8),color0000ff;
aa12:=ma(close,12),color0000ff;
bb10:=((atan((aa10 - ref(aa10,1))) * 3.1416) * 10);
bb12:=((atan((aa12 - ref(aa12,1))) * 3.1416) * 10);
中期大底:=llv(low,30),colorcdffbb;
短底:=ema(((((open + low) + high) + close) / 4),5);
支撑:=hhv(短底,60);
压力一:=hhv(low,20),colorfaabec;
压力:=sma(low,5,1);
中线:=ma(close,3);
中轨道:=(ma(high,15) * 1.05);
天:=(ma(low,15) * 0.985);
人:=(ma(low,15) * 0.96);
地:=(((high + low) + close) / 3);
b1:=hhv(地,(4 * 15));
b6:=llv(地,(4 * 15));
b7:=(b1 - b6);
b8:=(ma(((地 - b6) / b7),2) * 80);
var1:=(((close - llv(low,100)) / (hhv(high,100) - llv(low,100))) * 200);
var2:=sma(sma(var1,3,1),3,1);
var3:=((3 * sma(var1,3,1)) - (2 * var2));
var4:=llv(low,5);
var5:=hhv(high,5);
var6:=(ema((((close - var4) / (var5 - var4)) * 100),4) * 2);
var7:=ema(((0.667 * ref(var6,1)) + (0.333 * var6)),2);
var8:=((3 * var6) - (2 * var7));
var9:=(pow(ma(close,5),2) + ma(close,5));
vara:=(pow(ma(low,5),2) + ma(low,5));
varb:=(pow(ma(high,5),2) + ma(high,5));
varc:=(((((var9 - llv(vara,64)) / (hhv(varb,64) - llv(vara,64))) * 150) + 65) - 10);
vard:=((sma(varc,3,1) * 1.5) - 100);
vare:=sma(vard,3,1);
varf:=((3 * vard) - (2 * vare));
var10:=(((high + low) + (close * 2)) / 4);
var11:=ema(var10,13);
var12:=std(var10,13);
var13:=(((var10 - var11) * 100) / var12);
var14:=ema(var13,5);
var15:=ema(var14,13);
var16:=((ema(var14,13) + 200) - 100);
var17:=ema(var16,10);
var18:=((3 * var16) - (2 * var17));
var19:=(((sma(var1,3,1) + var6) + vard) + var16);
var1a:=(((var2 + var7) + vare) + var17);
var1b:=(((var3 + var8) + varf) + var18);
var1c:=(((high + low) + close) / 3);
var1d:=((amount / vol) / 100);
var1e:=((sum(amount,5) / sum(vol,5)) / 100);
var1f:=((var1c - ma(var1c,34)) / (0.015 * avedev(var1c,34)));
var20:=dma(((amount / vol) / 100),(vol / capital));
var21:=((((high + low) + close) + var1c) / 4);
var22:=ema(var21,24);
var23:=std(var21,24);
var24:=(((var21 - var22) / var23) * 100);
var25:=((var1c - ma(var1c,24)) / (0.015 * avedev(var1c,24)));
var26:=ema(var24,5);
var27:=((var1d - ma(var1d,21)) / (0.015 * avedev(var1d,21)));
var28:=((var1e - ma(var1e,90)) / (0.015 * avedev(var1e,90)));
var29:=(((((((var28 + var27) + var26) + var25) + var1f) / 5) + 165) / 4);
var2a:=(((((var19 + var1a) + (var1b * 30)) / 32) / 5) - 15);
var2b:=(((var29 + var2a) / 2) / 1.1);
var2c:=var2b;
短线:=ma(var2c,26);
mid:=(短线 + (2 * std(var2c,26)));
upper:=(短线 - (2 * std(var2c,26)));
lower:=if((var2c > 短线),短线,var2c);
xy:=ma(close,5);
ma5:=ma(close,80);
短期底部:=(llv(high,30) * 0.93),color0000ff;
ma80:=llv(high,30);
短期底部二:=sma(close,2,1);
趋势:=(ma(low,10) * 0.96);
趋:=(ema(open,107) * 0.897);
超跌位二:=ma(close,15);
gf:=ma(close,10);
man:=(sma(high,21,2) * 1.05);
上一:=(hhv(短底,60) * 0.92);
压力二:=(sma(high,21,2) * 1.035);
阻挡线:=(sma(low,21,2) * 0.96);
下档线:=(((close - llv(low,13)) / (hhv(high,13) - llv(low,13))) * 100);
rsv:=sma(下档线,3,1);
k:=sma(rsv,3,1);
d:=((3 * rsv) - (2 * k));
j:=(((close - ma(close,6)) / ma(close,6)) * 100);
var2p:=(((close - ma(close,12)) / ma(close,12)) * 100);
var3p:=(((close - ma(close,24)) / ma(close,24)) * 100);
var4p:=(((j + (2 * var2p)) + (3 * var3p)) / 6);
var5p:=ma(var4p,3);
var6p:=(((close - llv(low,34)) / (hhv(high,34) - llv(low,34))) * 100);
rsv12:=sma(var6p,3,1);
k12:=sma(rsv12,3,1);
d12:=((3 * rsv12) - (2 * k12));
j12:=(((close - llv(low,55)) / (hhv(high,55) - llv(low,55))) * 100);
rsv24:=sma(j12,3,1);
k24:=sma(rsv24,3,1);
d24:=((3 * rsv24) - (2 * k24));
{j24:=if(cross(d,d24),low,ref(low,barslast(cross(d,d24))));}
压力位:=if(cross(d24,d),high,l),pointdot,colorffffff;
支撑位:=if((close >= ma(close,20)),80,50);
u2l:=if((close >= ma(close,20)),50,20);
{l2l:=if(((d < 支撑位) and (ref(d,1) >= 支撑位)),hhv(ref(high,1),(barslast(((d >= 支撑位) and (ref(d,1) < 支撑位))) - 1)),ref(hhv(ref(high,1),(barslast(((d >= 支撑位) and (ref(d,1) < 支撑位))) - 1)),barslast(((d < 支撑位) and ref(d,1)))));
rh1:=if((high > l2l),low,ref(low,barslast((high > l2l))));
rh4:=if((high > l2l),d,ref(d,barslast((high > l2l))));
rh42:=if((((high > rh1) and (d < rh4)) and (d < d24)),high,ref(high,barslast((((high > rh1) and (d < rh4)) and (d < d24)))));
rh5:=if(((d > u2l) and (ref(d,1) <= u2l)),llv(ref(low,1),(barslast(((d <= u2l) and (ref(d,1) > u2l))) - 1)),ref(llv(ref(low,1),(barslast(((d <= u2l) and (ref(d,1) > u2l))) - 1)),barslast(((d > u2l) and ref(d,1)))));
rl1:=if((low < rh5),high,ref(high,barslast((low < rh5))));
rl4:=if((low < rh5),d,ref(d,barslast((low < rh5))));
rl42:=if((((low < rl1) and (d > rl4)) and (d > d24)),low,ref(low,barslast((((low < rl1) and (d > rl4)) and (d > d24)))));}
长期底部:=llv(high,30),color00ff00;
rl5:=(sma(high,5,2) * 1.05);
上:=(sma(low,5,2) * 0.96);
下:=sma(low,2,1);
中:=(((((3 * close) + high) + low) + open) / 6);
x1:=ema(中,10);
x2:=ref(x1,1);
x3:=((ref(high,1) + ref(low,1)) / 2);
x4:=(ma(close,21) + (2 * std(close,21)));
x5:=ref(close,1);
x6:=((sma(max((close - x5),0),7,1) / sma(abs((close - x5)),7,1)) * 100);
x7:=cross(79,x6);
x8:=filter(x7,4);
x9:=ma(close,115);
var1m:=ema(close,8);
var2m:=cross(var1m,ema(var1m,20));
var3m:=(var1m < ma(close,20));
var4m:=(((hhv(high,36) - close) / (hhv(high,36) - llv(low,36))) * 100);
var5m:=sma(var4m,5,1);
var6m:=sma(var5m,8,1);
var7m:=(cross(var5m,var6m) and (var6m < 5));
var8m:=((close > (llv(close,60) + (0.3 * llv(close,60)))) and var7m);
var9m:=if((close > 1000),var7m,var8m);
varfm:=cross(x1,x2);
ma115:=varfm;
低买:=(var2m and var3m);
黑马起步:=var9m;
drawtext(x8,(high * 1.03),'出货'),color9000f5;
drawtext((黑马起步 > 0),(high * 1.04),'逃命'),color0000ff;
drawtext(filter(((((llv(low,0) and ((ma30 - ref(ma30,1)) > 0)) and (low <= 短期底部)) and (winner(close) < 0.05)) and ((close / open) > 0.13)),7),(low - 0.09),'见底'),color00b2ff;
阻挡:=(sma(low,21,2) * 0.94);
drawtext((((((低买 > 0) and ((x1 - ref(x1,1)) > 0)) and (high < 压力位)) and (high < x9)) and ((x2 - ref(x2,1)) > 0)),low,'黑马'),color00ff00;
drawtext((((((cross(var2c, 短线) and ((close - ref(high,1)) > 0)) and ((中线 - ref(中线,1)) > 0)) and (high <= 压力一)) and (close < ma20)) and (low <= 中线)),(low - 0.06),'关注'),color00ff00;
drawtext((((cross(var2c,upper) and (high < 压力一)) and ((xy - ref(xy,1)) > 0)) and (high < 支撑)),low,'买'),colorffffff;
drawtext(filter(((((((low <= 天) and (close >= ma20)) and (high < 压力一)) and ((天 - ref(天,1)) > 0)) and (close < 压力一)) and ((ma20 - ref(ma20,1)) > 0)),6),(low - 0.12),'全仓'),colorffffff;
drawtext(filter((((((ma115 and (close < 压力位)) and ((人 - ref(人,1)) > 0)) and ((x1 - ref(x1,1)) > 0)) and (high < 上一)) and ((close / open) > 1.03)),5),low,'买'),color93ee7d;
drawtext(((((low <= 上) and (high >= 短期底部)) and (close >= 长期底部)) and ((close / open) > 1.03)),(low - 0.08),'抄底'),color0000ff;
drawtext(((cross(压力,阻挡) and (winner(close) <= 0.17)) and ((x1 - ref(x1,1)) > 0)),(low - 0.08),'大胆买'),color00ffff;
drawtext((((cross(d,0) and (high < 压力位)) and (var5p <= (0 - 7))) and (close < xy)),(low - 0.11),'半仓'),color00ffff;
drawtext(filter((((cross(趋势,趋) and (high < ma5)) and (high < 压力一)) and llv(low,0)),10),low,'果断买'),color00ffff;
drawtext(filter(((cross(中线,人) and (low <= 人)) and (close >= 人)),4),(low - 0.06),'买'),color00ff00;
drawtext(filter(((((low <= ma80) and (close > ma80)) and (close > open)) and (短期底部二 <= ma80)),8),low,'底'),color00ffff;
{洗盘回调买入}
bbb:=ma(low,5)*(1-5/100);
xipan:=(hhv(bbb,5)+llv(bbb,5))/2;
drawtext(cross(xipan,l) and xipan>ref(xipan,1),l*0.965,'洗盘'),coloryellow;
空:=ema(c,5);
均衡:=ema(空,5),colorwhite;
中轨:=hhv(ma(h,13),13),coloryellow,linethick1;
趋势:=llv(ma(h,13),1),colorred,linethick1;
vara:=(close-ref(open,29))/ref(open,29)*100;
varb:=ema(0.667*ref(vara,1)+0.333*vara,5);
drawtext(if(vol>=1.3*ma(vol,5) and count(vara>=varb and vara<-17,3) and ref(low,1)=llv(low,120),1,0),low,'买入');
varc:=sma(max(close-ref(c,1),0),6,1)/sma(abs(close-ref(c,1)),6,1)*100;
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;
var4:=filter(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),5);
drawicon(var4,low,12);
var5:=filter(均衡>ref(均衡,1)and 中轨<ref(中轨,1)and c>ref(c,1),11);
drawtext(var5,low*0.985,'加仓'),coloryellow;
drawtext(var5,low*0.995,'^' ),coloryellow;
var6:=ref(close,1);
var7:=sma(max(close-var6,0),6,1)/sma(abs(close-var6),6,1)*100;
drawtext(cross(84,var7),h*1.035,'减仓'),color00ff00 ;
drawtext(cross(84,var7),h*1.015,'◇' ),color00ff00;
g:=barslast(cross((ema((l+h+c*4)/6,12)-ref(ema((l+h+c*4)/6,12),1))/ref(ema((l+h+c*4)/6,12),1)*100,0));
ref((l+h+c*4)/6,g),color4b0082,linethick1;
partline((ema((l+h+c*4)/6,12)-ref(ema((l+h+c*4)/6,12),1))/ref(ema((l+h+c*4)/6,12),1)*100>=0,ref((l+h+c*4)/6,g)),linethick1,color4b0082;
stickline(h>=ref((l+h+c*4)/6,g),ref((l+h+c*4)/6,g),ref((l+h+c*4)/6,g),0,0),color4b0082,pointdot,linethick1;
stickline(h>=ref((l+h+c*4)/6,g),ref((l+h+c*4)/6,g),ref((l+h+c*4)/6,g),0,0),color4b0082,pointdot,linethick2;
stickline(h>=ref((l+h+c*4)/6,g),ref((l+h+c*4)/6,g),ref((l+h+c*4)/6,g),0,1),color4b0082,circledot,linethick3;
stickline(h>=ref((l+h+c*4)/6,g),ref((l+h+c*4)/6,g),ref((l+h+c*4)/6,g),0,0),color4b0082,pointdot,linethick4;
stickline(h>=ref((l+h+c*4)/6,g),ref((l+h+c*4)/6,g),ref((l+h+c*4)/6,g),0,0),color4b0082,pointdot,linethick5;
stickline(h>=ref((l+h+c*4)/6,g),ref((l+h+c*4)/6,g),ref((l+h+c*4)/6,g),0,0),color4b0082,pointdot,linethick6;
stickline(h>=ref((l+h+c*4)/6,g),ref((l+h+c*4)/6,g),ref((l+h+c*4)/6,g),0,0),color4b0082,pointdot,linethick7;
gdfz0:=c;
gdfz1:=h;
gdfz2:=l;
tya:=((((((((((gdfz2 + gdfz1) + gdfz0) + ref(gdfz0,1)) + ref(gdfz2,1)) + ref(gdfz1,1)) + ref(gdfz0,2)) + ref(gdfz2,2)) + ref(gdfz1,2)) / 9));
hda:=(((((hhv(tya,(17 * 2)) + ref(hhv(tya,(17 * 2)),1)) + ref(hhv(tya,(17 * 2)),2)) + ref(hhv(tya,(17 * 2)),3)) + ref(hhv(tya,(17 * 2)),4)) / 5);
lda:=(((((llv(tya,(17 * 2)) + ref(llv(tya,(17 * 2)),1)) + ref(llv(tya,(17 * 2)),2)) + ref(llv(tya,(17 * 2)),3)) + ref(llv(tya,(17 * 2)),4)) / 5);
a1:=(ref(hda,1) = (hhv(tya,((2 * 21) + 0))));
b1:=(filter(a1,21));
hd:=(filter(b1,21));
a2:=(ref(lda,1) = (llv(tya,((2 * 21) + 0))));
b2:=(filter(a2,21) );
ld:=(filter(b2,21));
a:=(ref(hda,barslast(hd)));
b:=(ref(lda,barslast(ld)));
t1:=((barslast(hd) < barslast(ld)) and (not(hd)));
t2:=((barslast(hd) > barslast(ld)) and (not(ld)));
bf:=if(t1,a,a);
hh:=ma(bf,1);
bg:=if(t2,b,b);
ll:=ma(bg,1);hh1:=(barslast((gdfz0 > (ref(hh,1) * 1.003))));
ll1:=(barslast((gdfz0 < (ref(ll,1) * 0.997))));
partline((hh1 < ll1),ll),linethick3,colorred;
partline((hh1 > ll1),hh),linethick3,colorgreen;
drawicon(cross(hh1,ll1),hh*0.998,5);
drawicon(cross(ll1,hh1),ll*1.03,4);
osc:=25*c-25*ref(ma(c,13),5);
分界:=ma(osc,8);
diff := ema(osc,12) - ema(osc,26);
dea := ema(diff,9);
macd := 2*(diff-dea);
z_f:=if(c>ref(h,1),ema(l,5),if(c<ref(ema(l,5),1),h,ema(l,5)));
k_d:=barslast(c<=z_f);
x_h:=k_d=1 and barslast(macd<ref(macd,1));
{k柱}
stickline(osc<ref(osc,1) or (amount/ref(amount,1)<0.97),abs(open-close)/5*2+min(open,close),abs(open-close)/5*3+min(open,close),7,0),linethick2,colorwhite;//离场
stickline(cross(ref(macd,1),macd) and macd<ref(macd,1),abs(open-close)/5*2+min(open,close),abs(open-close)/5*3+min(open,close),7,0),linethick2,colorcyan;//逃顶
stickline(osc>=ref(osc,1),abs(open-close)/5*2+min(open,close),abs(open-close)/5*3+min(open,close),7,0),linethick2,color122650;//持股
stickline(barslast(x_h)<2,abs(open-close)/5*2+min(open,close),abs(open-close)/5*3+min(open,close),7,0),linethick2,color122650;//延时
stickline(x_h,abs(open-close)/5*2+min(open,close),abs(open-close)/5*3+min(open,close),7,0),linethick2,color663377;//启动
stickline(osc<分界,abs(open-close)/5*2+min(open,close),abs(open-close)/5*3+min(open,close),7,0),linethick2,color888888;//空仓
上一指标公式:预测明天K线走势N2解盘公式下载 飞狐N2指标 源码
下一指标公式:MA之X主图公式下载 飞狐MA指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文FZ南方紫离宫(主图指标)公式下载 飞狐离宫指标 源码仅供学习研究。