联系方式 Contact

云指标公式网

淘宝:zb-mart.taobao.com

电话:18020657357

微信:18020657357

Q Q:396950280

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search
你的位置:首页 > 公式动态 > 飞狐公式

FZ南方紫离宫

2016-1-31 10:11:13点击:

 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;//空仓