【缠论三买优化版】套装经过优化掉了DLL函数
黄金柱:=V/REF(V,1)>=1.9;
DRAWLINE(黄金柱,L,REF(黄金柱,1),REF(L,1),1),COLORYELLOW;
DRAWLINE(黄金柱,H,REF(黄金柱,1),REF(H,1),1),COLORRED;
倍缩:=V/REF(V,1)<=0.6;
DRAWLINE(倍缩,H,REF(倍缩,1),REF(H,1),1),COLOR1D7300;
HH:=REF(H,5)=HHV(H,13);
LL:=REF(L,5)=LLV(L,13);
ABC01:=BACKSET(HH,6)>BACKSET(HH,5) ;
ACB01:=BACKSET(LL,6)>BACKSET(LL,5) ;
ABC0:= ABC01 AND H=HHV(H,BARSLAST(ACB01));
ACB0:=ACB01 AND L=LLV(L,BARSLAST( ABC01));
J0:=(H+L)/2;
ABCH:=REF(H,BARSLAST( ABC0));
ABCH1:=REF(H,BARSLAST( ABC0)+1);
ABCL1:=REF(L,BARSLAST( ABC0)+1);
ABCH2:=REF(H,BARSLAST( ABC0)+2);
ABCL2:=REF(L,BARSLAST( ABC0)+2);
ABCJ0:=REF(J0,BARSLAST( ABC0));
ABCL:=REF(L,BARSLAST( ABC0));
ACBH:=REF(H,BARSLAST(ACB0));
ACBL:=REF(L,BARSLAST(ACB0));
ACBH1:=REF(H,BARSLAST(ACB0)+1);
ACBL1:=REF(L,BARSLAST(ACB0)+1);
ACBH2:=REF(H,BARSLAST(ACB0)+2);
ACBL2:=REF(L,BARSLAST(ACB0)+2);
ACBJ0:=REF(J0,BARSLAST(ACB0));
ABCZH:=IF( ABCL< ABCL1, ABCH2, ABCH1);
ABCZL:=IF( ABCL< ABCL1, ABCL2, ABCL1);
ACBZH:=IF(ACBH>ACBH1,ACBH2,ACBH1);
ACBZL:=IF(ACBH>ACBH1,ACBL2,ACBL1);
ABC1:=IF((( ABCL>ACBH AND ABCH>ACBZH) OR ( ABCH>ACBH1 AND ACBH1>ACBH AND ACBH>ACBH2)), ABC0, ABC0 AND ABCJ0>ACBH AND ABCH>ACBZH);
ACB1:=IF(((ACBH< ABCL AND ACBL< ABCZL) OR (ACBL< ABCL1 AND ABCL1< ABCL AND ACBL< ABCL2)),ACB0,ACB0 AND ACBJ0< ABCL AND ACBL< ABCZL);
ABC2:= ABC1 AND H>=HHV(H,BARSLAST(ACB1));
ACB2:=ACB1 AND L<=LLV(L,BARSLAST( ABC1));
ABC:= ABC2 AND KDJ.K>40;
ACB:=ACB2 AND KDJ.K< 60;
BK:=IF(( ABCL1>= ABCL AND ABC0) OR (ACBH1<=ACBH AND ACB0),4,3);
G1:= ABC AND BARSLAST(ACB)>BK;
D1:=ACB AND BARSLAST( ABC)>BK;
G2:=G1 AND H>=HHV(H,BARSLAST(D1));
D2:=D1 AND L<=LLV(L,BARSLAST(G1));
G3:=G2 OR ( ABC0 AND KDJ.J>100);
D3:=D2 OR (ACB0 AND KDJ.J< 0);
G4:=G3 OR ( ABC0 AND REF(H,BARSLAST( ABC0))>REF(H,BARSLAST(G2)) AND BARSLAST(D2)>BARSLAST(G2));
D4:=D3 OR (ACB0 AND REF(L,BARSLAST(ACB0))< REF(L,BARSLAST(D2)) AND BARSLAST(G2)>BARSLAST(D2));
G5:=G4 AND H=HHV(H,BARSLAST(D4));
D5:=D4 AND L=LLV(L,BARSLAST(G4));
GPB:=IF(G4,H,DRAWNULL),CIRCLEDOT,COLORYELLOW;
DPB:=IF(D4,L,DRAWNULL),CIRCLEDOT,COLORYELLOW;
NN:=G5;
UU:=D5;
DRAWLINE(UU,L,NN, H,0),COLORYELLOW,LINETHICK1;
DRAWLINE(NN,H,UU, L,0),COLORYELLOW,LINETHICK1;
TB:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(TB>9.9,O,C,2.5,1)COLORMAGENTA;
STICKLINE(TB< -9.9,O,C,2.5,0)COLOR1D7300;
N11:=9;
N21:=30;
N31:=56;
LL1:=LLV(L,N11);
HH1:=HHV(H,2*N11);
H01:=REF(HHV(H,N31),N11+N21);
三买平台选:=HH1=HHV(H,N21+N11+N31) AND LL1>H01 AND LL1/HH1< 0.97;
多:=EMA(C,3);
空:=EMA(C,5);
均衡:=EMA(空,5);
AAC1C:=COUNT(CROSS(多,均衡),2)=1;
AAC2C:=COUNT(CROSS(空,均衡),2)=1;
买1:=FILTER(AAC1C AND AAC2C,2);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
低位金叉:=CROSS(DIFF,DEA) AND DIFF< -0.1 ;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA< 0 AND COUNT(JCCOUNT=2,21)=1;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));{股票指标网http://}
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
买2:=低位金叉 OR 二次金叉 OR 底背离 COLORYELLOW;
买3:=(买1 AND 三买平台选) OR 买2;
DRAWICON(买1,L,25);
DRAWTEXT(买1,L,' ①'),COLORWHITE;
DRAWICON(买2,L*0.97,26);
DRAWTEXT(买2,L*0.97,' ②'),COLORYELLOW ;
DRAWICON(买3,L*0.94,27);
DRAWTEXT(买3,L*0.94,' ③'),COLORMAGENTA;
未来函数检测结果如下:
该公式包含未来函数:BACKSET
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
黄金柱赋值:V/1日前的V>=1.9
DRAWLINE(黄金柱,L,1日前的黄金柱,1日前的L,1),COLORYELLOW
DRAWLINE(黄金柱,H,1日前的黄金柱,1日前的H,1),画红色
倍缩赋值:V/1日前的V<=0.6
DRAWLINE(倍缩,H,1日前的倍缩,1日前的H,1),COLOR1D7300
HH赋值:5日前的H=13日内H最高值
LL赋值:5日前的L=13日内L最低值
ABC01赋值:BACKSET(HH,6)>BACKSET(HH,5)
ACB01赋值:BACKSET(LL,6)>BACKSET(LL,5)
ABC0赋值: ABC01 AND H=HHV(H,上次ACB01距今天数)
ACB0赋值:ACB01 AND L=LLV(L,上次 ABC01距今天数)
J0赋值:(H+L)/2
ABCH赋值:REF(H,上次 ABC0距今天数)
ABCH1:=REF(H,上次 ABC0距今天数+1)
ABCL1赋值:REF(L,上次 ABC0距今天数+1)
ABCH2:=REF(H,上次 ABC0距今天数+2)
ABCL2赋值:REF(L,上次 ABC0距今天数+2)
ABCJ0赋值:REF(J0,上次 ABC0距今天数)
ABCL赋值:REF(L,上次 ABC0距今天数)
ACBH赋值:REF(H,上次ACB0距今天数)
ACBL赋值:REF(L,上次ACB0距今天数)
ACBH1:=REF(H,上次ACB0距今天数+1)
ACBL1:=REF(L,上次ACB0距今天数+1)
ACBH2:=REF(H,上次ACB0距今天数+2)
ACBL2:=REF(L,上次ACB0距今天数+2)
ACBJ0赋值:REF(J0,上次ACB0距今天数)
如果 ABCL< ABCL1返回 ABCH2否则返回 ABCH1
如果 ABCL< ABCL1返回 ABCL2否则返回 ABCL1
如果ACBH>ACBH1返回ACBH2否则返回ACBH1
如果ACBH>ACBH1返回ACBL2否则返回ACBL1
ABC1赋值:IF((( ABCL>ACBH AND ABCH>ACBZH) OR ( ABCH>ACBH1 AND ACBH1>ACBH AND ACBH>ACBH2)), ABC0, ABC0 AND ABCJ0>ACBH AND ABCH>ACBZH)
ACB1赋值:IF(((ACBH< ABCL AND ACBL< ABCZL) OR (ACBL< ABCL1 AND ABCL1< ABCL AND ACBL< ABCL2)),ACB0,ACB0 AND ACBJ0< ABCL AND ACBL< ABCZL)
ABC2赋值: ABC1 AND H>=HHV(H,上次ACB1距今天数)
ACB2赋值:ACB1 AND L<=LLV(L,上次 ABC1距今天数)
ABC赋值: ABC2 AND KDJ.K>40
ACB赋值:ACB2 AND KDJ.K< 60
BK赋值:IF(( ABCL1>= ABCL AND ABC0) OR (ACBH1<=ACBH AND ACB0),4,3)
G1赋值: ABC AND 上次ACB距今天数>BK
D1赋值:ACB AND 上次 ABC距今天数>BK
G2赋值:G1 AND H>=HHV(H,上次D1距今天数)
D2赋值:D1 AND L<=LLV(L,上次G1距今天数)
G3赋值:G2 OR ( ABC0 AND KDJ.J>100)
D3赋值:D2 OR (ACB0 AND KDJ.J< 0)
G4赋值:G3 OR ( ABC0 AND REF(H,上次 ABC0距今天数)>REF(H,BARSLAST(G2)) AND BARSLAST(D2)>BARSLAST(G2))
D4赋值:D3 OR (ACB0 AND REF(L,上次ACB0距今天数)< REF(L,BARSLAST(D2)) AND BARSLAST(G2)>BARSLAST(D2))
G5赋值:G4 AND H=HHV(H,上次D4距今天数)
D5赋值:D4 AND L=LLV(L,上次G4距今天数)
如果G4返回H否则返回DRAWNULL
如果D4返回L否则返回DRAWNULL
NN赋值:G5
UU赋值:D5
DRAWLINE(UU,L,NN, H,0),COLORYELLOW,LINETHICK1
DRAWLINE(NN,H,UU, L,0),COLORYELLOW,LINETHICK1
TB赋值:(C-1日前的C)/1日前的C*100
当满足条件TB>9.9时,在O和C之间画柱状线
当满足条件TB< -9.9时,在O和C之间画柱状线
N11赋值:9
N21赋值:30
N31赋值:56
LL1:=N11日内L最低值
HH1:=2*N11日内H最高值
H01赋值:REF(N31日内H最高值,N11+N21)
三买平台选赋值:HH1=N21+N11+N31日内H最高值 AND LL1>H01 AND LL1/HH1< 0.97
多赋值:C的3日指数移动平均
空赋值:C的5日指数移动平均
均衡赋值:空的5日指数移动平均
AAC1C赋值:统计2日满足多上穿均衡的天数=1
AAC2C赋值:统计2日满足空上穿均衡的天数=1
买1赋值:AAC1C AND AAC2C的2过滤
DIFF赋值:收盘价的12日指数移动平均-收盘价的27日指数移动平均
DEA赋值:DIFF的9日指数移动平均
低位金叉赋值:DIFF上穿DEA AND DIFF< -0.1
JCCOUNT赋值:COUNT(DIFF上穿DEA,上次DEA>=0距今天数)
二次金叉赋值:DIFF上穿DEA AND DEA< 0 AND 统计21日满足JC=2的天数=1
A1赋值:上次1日前的DIFF上穿DEA距今天数
{股票指标网HTTP://}底背离:=A1+1日前的收盘价>收盘价 AND DIFF>A1+1日前的DIFF AND DIFF上穿DEA
买2赋值:低位金叉 OR 二次金叉 OR 底背离 COLORYELLOW
买3赋值:(买1 AND 三买平台选) OR 买2
当满足条件买1时,在L和25之间画图标
当满足条件买1时,在L和' ①'位置书写文字
当满足条件买2时,在L*0.97和26之间画图标
当满足条件买2时,在L*0.97和' ②'位置书写文字
当满足条件买3时,在L*0.94和27之间画图标
当满足条件买3时,在L*0.94和' ③'位置书写文字