波浪起伏 荆州量学金融终端主图十三
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 ISLASTBAR OR BARSCOUNT(CLOSE)=1;
L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 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 ISLASTBAR 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);
DRAWLINE(LD,L,HD,H,0),COLORWHITE,LINETHICK1,DOTLINE;
DRAWLINE(HD,H,LD,L,0),COLORWHITE,LINETHICK1,DOTLINE;
J1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HD),BARSLAST(LD))+1); J2:=J1>REF(J1,1);
DRAWLINE(J2,IF(HD,H,L),ISLASTBAR,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),COLORWHITE,LINETHICK1,DOTLINE;
{WWW.}
A3:=H<REF(H,REF(BARSLAST(HD),1)+1);
B3:=REF(H,REF(BARSLAST(HD),1)+1)>REF(H,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:=L>REF(L,REF(BARSLAST(LD),1)+1);
B4:=REF(L,REF(BARSLAST(LD),1)+1)<REF(L,REF(BARSLAST(LD),1)+2+REF(BARSLAST(LD),REF(BARSLAST(LD),1)+2));
D4:=A4 AND B4 AND LD; E4:=BACKSET(D4,REF(BARSLAST(LD),1)+2); LL:=E4>REF(E4,1);
DRAWICON(HH,H,10); DRAWICON(LL,L,12);
H3:=HH OR ISLASTBAR OR BARSCOUNT(C)=1;
X3:=REF(BARSLAST(H3),1)+1; F3:=BACKSET(H3 AND COUNT(LL,X3)>0,LLVBARS(IF(LL,L,POW(10,20)),X3));
G3:=F3>REF(F3,1); I3:=BACKSET(G3,2); LZ:=I3>REF(I3,1);
L4:=LZ OR ISLASTBAR OR BARSCOUNT(C)=1;
X4:=REF(BARSLAST(L4),1)+1; F4:=BACKSET(L4 AND COUNT(HH,X4)>0,HHVBARS(IF(HH,H,-POW(10,20)),X4));
G4:=F4>REF(F4,1); I4:=BACKSET(G4,2); HZ:=I4>REF(I4,1);
DRAWLINE(HZ,H,LZ,L,0),COLORYELLOW,LINETHICK1;
DRAWLINE(LZ,L,HZ,H,0),COLORYELLOW,LINETHICK1;
K1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HZ),BARSLAST(LZ))+1);
K2:=K1>REF(K1,1);
DRAWLINE(K2,IF(HZ,H,L),ISLASTBAR,C,0),COLORYELLOW,LINETHICK1;
UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
DRAWLINE(XX,L,VV,L,1),COLORMAGENTA,LINETHICK1;
UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
DRAWLINE(XX2,H,VV2,H,1),COLORMAGENTA,LINETHICK1;
DRAWNUMBER(LD,L*0.999,L),COLORWHITE;
DRAWNUMBER(HD,H*1.002,H),COLORWHITE;
AA:=BARSLAST(HD);
BB:=BARSLAST(LD);
DRAWNUMBER(LD,L*0.98,AA),COLORGREEN;
DRAWNUMBER(HD,H*1.02,BB),COLORRED;
DRAWNUMBER(ISLASTBAR,L*0.987,MIN(AA,BB)),COLORCYAN;
STICKLINE(BARSCOUNT(LD)<=2 AND LD,1.1*H,0.9*L,0,-1),COLORYELLOW;
{WWW.}
{必杀线}
T1B:=CONST(LLVBARS(LOW,10));
T1HIGH:=CONST(REF(HIGH,T1B));
CC:=CONST(CURRBARSCOUNT);
T2B:=CONST(BARSLAST(CURRBARSCOUNT>CC+T1B AND H>T1HIGH));
T2HIGH:=CONST(REF(HIGH,T2B));
T3:=CONST(BARSLAST(CURRBARSCOUNT>CC+T2B AND HIGH>T2HIGH));
T3HIGH:=CONST(REF(HIGH,T3));
必杀线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),COLORRED,LINETHICK2;{,LINETHICK2,COLOR0000FF;}
DRAWTEXT(ISLASTBAR, T3HIGH, '必杀线')LINETHICK1,COLOR0000FF;
MA5K:必杀线,COLORYELLOW,LINETHICK1;
上榜:=SIGNALS_USER(300, 0), NODRAW; {上榜金額>1,则表示上榜了,这个是上榜总金額}
净买入:=SIGNALS_USER(299, 0), NODRAW;
DRAWICON(上榜>=1 AND 净买入>=0 ,L*0.995,38);
DRAWICON(上榜>=1 AND 净买入<0 ,L*0.995,39);
倍量柱:=VOL>=REF(V,1)*1.9 AND C>O ;
DRAWTEXT(倍量柱 ,L*0.97,'倍'),COLORYELLOW;
{涨跌停K线标识};
ST:=NAMELIKE('ST')=1 OR NAMELIKE('*ST')=1 OR NAMELIKE('SST')=1
OR NAMELIKE('S*ST')=1 OR NAMELIKE('S ST')=1;
涨停:=C=ZTPRICE(REF(CLOSE,1),0.1) OR (C/REF(C,1)>1.0495 AND ST);
跌停:=REF(C,1)/C>1.0995 OR (REF(C,1)/C>1.0495 AND ST);
STICKLINE(涨停,C,O,3,0),COLORMAGENTA;
STICKLINE(跌停,C,O,3,0),COLORGREEN;
DRAWICON(H=ZTPRICE(REF(CLOSE,1),0.1) AND C!=H,L*0.965,15);
{假阳真阴}{WWW.}
均价:=AMOUNT/VOL/100;
假阳:=C>O AND REF(C,1)>均价 AND C>均价 AND C<300 ;
STICKLINE(假阳,O,C,1,0)COLORLICYAN;
标志阴:=REF(C,1)/C>1.04;
STICKLINE(标志阴,O,C,1,0)COLORWHITE;
{假阴真阳}
假阴:=O>C AND 均价>REF(C,1) AND C>MA(C,5);
STICKLINE(假阴,O,C,1,0),COLORRED;
STICKLINE(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96,(C+O)/2,(C+O)/2,2,1),COLORLIBLUE;{中分线};
STICKLINE(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96,(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),2,1),COLORLIBLUE;{上三一线};
STICKLINE(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96,(MAX(O,C)-MIN(O,C))/3+MIN(O,C),(MAX(O,C)-MIN(O,C))/3+MIN(O,C),2,1),COLORLIBLUE;{下三一线};
未来函数检测结果如下:
该公式包含未来函数:BACKSET
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
A1赋值:3日前的最高价=2*3+1日内最高价最高值
B1赋值:A1的3过滤
C1赋值:BACKSET(B1,3+1)
D1赋值:C1的3过滤
A2赋值:3日前的最低价=2*3+1日内最低价最低值
B2赋值:A2的3过滤
C2赋值:BACKSET(B2,3+1)
D2赋值:C2的3过滤
E1赋值:(REF(2*3日内最低价最低值,1)+REF(2*3日内最高价最高值,1))/2
E2赋值:(最高价+最低价)/2
H1赋值:(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR 收盘价的有效数据周期数=1
L1赋值:(D2 AND NOT(D1 AND E1 H2赋值:D1 AND NOT(D2 AND E1>=E2)
X1赋值:REF(上次H1距今天数,1)+1
如果L1返回最低价否则返回10000
G1赋值:F1>1日前的F1
I1赋值:BACKSET(G1,2)
LD赋值:I1>1日前的I1
L2赋值:LD OR ISLASTBAR OR 收盘价的有效数据周期数=1
X2赋值:REF(上次L2距今天数,1)+1
如果H2返回最高价否则返回0
G2赋值:F2>1日前的F2
I2赋值:BACKSET(G2,2)
HD赋值:I2>1日前的I2
DRAWLINE(LD,L,HD,H,0),画白色,LINETHICK1,DOTLINE
DRAWLINE(HD,H,LD,L,0),画白色,LINETHICK1,DOTLINE
J1赋值:BACKSET(ISLASTBAR,MIN(上次HD距今天数,BARSLAST(LD))+1)
J2赋值:J1>1日前的J1
如果HD返回H否则返回L
{WWW.}
A3赋值:H[
B3赋值:REF(H,REF(上次HD距今天数,1)+1)>REF(H,REF(上次HD距今天数,1)+2+REF(上次HD距今天数,REF(上次HD距今天数,1)+2))]
D3赋值:A3 AND B3 AND HD
E3赋值:BACKSET(D3,REF(上次HD距今天数,1)+2)
HH赋值:E3>1日前的E3
A4赋值:L>REF(L,REF(上次LD距今天数,1)+1)
B4赋值:REF(L,REF(上次LD距今天数,1)+1)[
D4赋值:A4 AND B4 AND LD]
E4赋值:BACKSET(D4,REF(上次LD距今天数,1)+2)
LL赋值:E4>1日前的E4
当满足条件HH时,在H和10之间画图标
当满足条件LL时,在L和12之间画图标
H3赋值:HH OR ISLASTBAR OR C的有效数据周期数=1
X3赋值:REF(上次H3距今天数,1)+1
F3赋值:BACKSET(H3 AND 统计X3日满足LL的天数>0,LLVBARS(IF(LL,L,POW(10,20)),X3))
G3赋值:F3>1日前的F3
I3赋值:BACKSET(G3,2)
LZ赋值:I3>1日前的I3
L4赋值:LZ OR ISLASTBAR OR C的有效数据周期数=1
X4赋值:REF(上次L4距今天数,1)+1
F4赋值:BACKSET(L4 AND 统计X4日满足HH的天数>0,HHVBARS(IF(HH,H,-POW(10,20)),X4))
G4赋值:F4>1日前的F4
I4赋值:BACKSET(G4,2)
HZ赋值:I4>1日前的I4
DRAWLINE(HZ,H,LZ,L,0),COLORYELLOW,LINETHICK1
DRAWLINE(LZ,L,HZ,H,0),COLORYELLOW,LINETHICK1
K1赋值:BACKSET(ISLASTBAR,MIN(上次HZ距今天数,BARSLAST(LZ))+1)
K2赋值:K1>1日前的K1
如果HZ返回H否则返回L
UU赋值:BACKSET(ISLASTBAR,上次LD距今天数+1)
VV赋值:UU>1日前的UU
WW赋值:BACKSET(VV,REF(上次LD距今天数,1)+2)
XX赋值:WW>1日前的WW
DRAWLINE(XX,L,VV,L,1),画洋红色,LINETHICK1
UU2:=BACKSET(ISLASTBAR,上次HD距今天数+1)
VV2:=UU2>1日前的UU2
WW2:=BACKSET(VV2,REF(上次HD距今天数,1)+2)
XX2赋值:WW2>1日前的WW2
DRAWLINE(XX2,H,VV2,H,1),画洋红色,LINETHICK1
DRAWNUMBER(LD,L*0.999,L),画白色
DRAWNUMBER(HD,H*1.002,H),画白色
AA赋值:上次HD距今天数
BB赋值:上次LD距今天数
DRAWNUMBER(LD,L*0.98,AA),画绿色
DRAWNUMBER(HD,H*1.02,BB),画红色
DRAWNUMBER(ISLASTBAR,L*0.987,AA和BB的较小值),画青色
STICKLINE(LD的有效数据周期数<=2 AND LD,1.1*H,0.9*L,0,-1),COLORYELLOW
{WWW.}
{必杀线}
T1B:=CONST(LLVBARS(最低价,10))
T1HIGH赋值:CONST(T1B日前的最高价)
CC赋值:CONST( 到最后交易的周期)
T2B赋值:CONST(上次 到最后交易的周期>CC+T1B AND H>T1HIGH距今天数)
T2HIGH赋值:CONST(T2B日前的最高价)
T3赋值:CONST(上次 到最后交易的周期>CC+T2B AND 最高价>T2HIGH距今天数)
T3最高价:=CONST(T3日前的最高价)
输出必杀线:DRAWLINE( 到最后交易的周期=T3+1, T3最高价, ISLASTBAR, T3最高价, 1),画红色,LINETHICK2
{,LINETHICK2,COLOR0000FF
当满足条件ISLASTBAR时,在 T3最高价和 '必杀线'位置书写文字
输出MA5K:必杀线,COLORYELLOW,LINETHICK1
上榜赋值:SIGNALS_USER(300, 0), NODRAW
{上榜金額>1,则表示上榜了,这个是上榜总金額}
净买入:=SIGNALS_USER(299, 0), NODRAW
当满足条件上榜>=1 AND 净买入>=0 时,在L*0.995和38之间画图标
当满足条件上榜>=1 AND 净买入<0 时,在L*0.995和39之间画图标
倍量柱赋值:成交量>=1日前的V*1.9 AND C>O
当满足条件倍量柱 时,在L*0.97和'倍'位置书写文字
{涨跌停K线标识}
ST赋值:NAMELIKE('ST')=1 OR NAMELIKE('*ST')=1 OR NAMELIKE('SST')=1
OR NAMELIKE('S*ST')=1 OR NAMELIKE('S ST')=1
涨停赋值:C=ZTPRICE(1日前的收盘价,0.1) OR (C/1日前的C>1.0495 AND ST)
跌停赋值:1日前的C/C>1.0995 OR (1日前的C/C>1.0495 AND ST)
当满足条件涨停时,在C和O之间画柱状线
当满足条件跌停时,在C和O之间画柱状线
DRAWICON(H=ZTPRICE(1日前的收盘价,0.1) AND C!=H,L*0.965,15)
{假阳真阴}{WWW.}
均价:=成交额/成交量/100
假阳赋值:C>O AND 1日前的C>均价 AND C>均价 AND C<300
当满足条件假阳时,在O和C之间画柱状线
标志阴赋值:1日前的C/C>1.04
当满足条件标志阴时,在O和C之间画柱状线
{假阴真阳}
假阴赋值:O>C AND 均价>1日前的C AND C>C的5日简单移动平均
当满足条件假阴时,在O和C之间画柱状线
STICKLINE(C/1日前的C>=1.04 OR C/1日前的C<=0.96,(C+O)/2,(C+O)/2,2,1),COLORLIBLUE
{中分线}
STICKLINE(C/1日前的C>=1.04 OR C/1日前的C<=0.96,(O和C较大值-O和C的较小值)*2/3+O和C的较小值,(O和C较大值-O和C的较小值)*2/3+O和C的较小值,2,1),COLORLIBLUE
{上三一线}
STICKLINE(C/1日前的C>=1.04 OR C/1日前的C<=0.96,(O和C较大值-O和C的较小值)/3+O和C的较小值,(O和C较大值-O和C的较小值)/3+O和C的较小值,2,1),COLORLIBLUE
{下三一线}