涵概均线多头、成交量放大、涨幅逐渐增加三大条件和顾比均线的主副图指标
{自动预测副图源码如下}
周期微调:=5;
顶底开关:=1;
结构带开关:=1;
KDJA :=3*SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1)-2*SMA(SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1),3,1),NODRAW;
STICKLINE(顶底开关>0 AND (KDJA >=90),CLOSE,OPEN,3,0),COLOR009CFF;
STICKLINE(顶底开关>0 AND (KDJA >=90),CLOSE,OPEN,2.8,0),COLOR009CFF;
STICKLINE(顶底开关>0 AND (KDJA >=90),CLOSE,OPEN,2.5,0),COLOR00C0FF;
STICKLINE(顶底开关>0 AND (KDJA >=90),CLOSE,OPEN,1.5,0),COLOR00D1FF;
STICKLINE(顶底开关>0 AND (KDJA >=90),CLOSE,OPEN,1,0),COLOR00EAFF;
STICKLINE(顶底开关>0 AND (KDJA >=90),CLOSE,OPEN,0.7,0),COLORYELLOW;
STICKLINE(顶底开关>0 AND (KDJA <=10),OPEN,CLOSE,3,0),COLORFF0000;
STICKLINE(顶底开关>0 AND (KDJA <=10),OPEN,CLOSE,2.5,0),COLORFF1100;
STICKLINE(顶底开关>0 AND (KDJA <=10),OPEN,CLOSE,2,0),COLORFF2200;
STICKLINE(顶底开关>0 AND (KDJA <=10),OPEN,CLOSE,1.5,0),COLORFF3300;
STICKLINE(顶底开关>0 AND (KDJA <=10),OPEN,CLOSE,1,0),COLORFF4400;
STICKLINE(顶底开关>0 AND (KDJA <=10),OPEN,CLOSE,0.5,0),COLORFF5500;
STICKLINE(顶底开关>0 AND (KDJA <=10),H,L,0,0),COLORFF6600;
A1:=REF(HIGH,周期微调)=HHV(HIGH,12+1);
B1:=FILTER(A1,周期微调);
C1:=BACKSET(B1,周期微调+1);
D1:=FILTER(C1,周期微调);{高点}
A2:=REF(LOW,周期微调)=LLV(LOW,10+1);
B2:=FILTER(A2,周期微调);
C2:=BACKSET(B2,周期微调+1);
D2:=FILTER(C2,周期微调);{低点}
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR 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 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);{过滤后高点}
A3:=H;
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); D4:=A4 AND B4 AND LD; E4:=BACKSET(D4,REF(BARSLAST(LD),1)+2); LL:=E4>REF(E4,1);{找出全部长期低点}
H3:=HH OR ISLASTBAR OR BARSCOUNT(C)=1; {后面进行过滤,方法同前。只是不用考虑高低点出现在同一K线}
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);{长期高点,也可供引用}
K1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HZ),BARSLAST(LZ))+1);
K2:=K1>REF(K1,1);
UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
高点:=BARSLAST(HD);
低点:=BARSLAST(LD);
J1:=BACKSET(ISLASTBAR,MIN(高点,低点)+1);
J2:=J1>REF(J1,1);
NOTEXT1:DRAWLINE(LD,L,HD,H,0),LINETHICK1,DOTLINE,COLOR0000FF;
NOTEXT2:DRAWLINE(HD,H,LD,L,0),LINETHICK1,DOTLINE,COLOR00FF00;
NOTEXT3:DRAWLINE(J2,IF(HD,H,L),ISLASTBAR,IF(高点>低点,H,L),0),DOTLINE,COLORFFFFFF;
高位价:REF(REF(H,高点),1),COLORRED,NODRAW;
低位价:REF(REF(L,低点),1),COLORGREEN,NODRAW;
H11:=高位价,NODRAW;
H12:=低位价,NODRAW;
L22:=0,NODRAW;
VVA:=IF(高点<低点,H11,DRAWNULL)NODRAW;
买入成立:=VVA,COLOR00FFFF,NODRAW;
VVB:=IF(高点>低点,L22,DRAWNULL)NODRAW;
买入不成立:=VVB,COLORGREEN,NODRAW;
高位价1:=IFC(高点<低点,高位价,L22);
低位价1:=IFC(高点<低点,低位价,L22);
VAR1:=高位价1/低位价1;
VAR2:=SQRT(SQRT(VAR1));
VAR3:=SQRT(VAR1);
VAR4:=VAR3+VAR2-1;
VAR5:=高位价1/VAR2;
VAR6:=高位价1/VAR3;
VAR7:=高位价1/VAR4;
VAR8:=REFDATE(HHV(H,高点+1),DATE);
VAR9:=REFDATE(LLV(L,低点+1),DATE);
买C1:=CONST(VAR5),NODRAW,COLORYELLOW;
买C2:=CONST(VAR6),NODRAW,COLORYELLOW;
买C3:=CONST(VAR7),NODRAW,COLORYELLOW;
买入C1:DRAWLINE(VV2,CONST(买C1),CURRBARSCOUNT=1,买C1,1),COLORFF8800,DOTLINE;
买入C2:DRAWLINE(VV2,CONST(买C2),CURRBARSCOUNT=1,买C2,1),COLORFF8800,DOTLINE;
买入C3:DRAWLINE(VV2,CONST(买C3),CURRBARSCOUNT=1,买C3,1),COLORFF8800,DOTLINE;
DRAWTEXT(VV2,买C1,VARCAT('买入C1:',VAR2STR(买C1,2))),COLORWHITE;
DRAWTEXT(VV2,买C2,VARCAT('买入C2:',VAR2STR(买C2,2))),COLORWHITE;
DRAWTEXT(VV2,买C3,VARCAT('买入C3:',VAR2STR(买C3,2))),COLORWHITE;
DRAWTEXT(VV,L,VARCAT('低位【A】',VAR2STR(L,2))),COLORGREEN;
DRAWTEXT(VV2,H,VARCAT('高位【B】',VAR2STR(H,2))),COLORRED;
STICKLINE(VV2,H,CONST(VAR7),0,0),COLORFF8800;
DRAWLINE(VV,L,VV2,H,0),COLORFF8800,LINETHICK2;
DRAWLINE(VV2,H,CURRBARSCOUNT=1,CONST(VAR7),0),COLORGREEN,DOTLINE;
DRAWNUMBER(HD,H,H),DRAWABOVE,COLORFFFF00;
DRAWNUMBER(LD,L,L),COLOR00FFFF;
DRAWICON(CURRBARSCOUNT=XX,L,38);
DRAWICON(CURRBARSCOUNT=VV2,H,39);
高位价2:=REF(REF(H,高点),1),NODRAW;
低位价2:=REF(REF(L,低点),1),NODRAW;
H111:=高位价2,NODRAW;
H121:=低位价2,NODRAW;
L221:=0,NODRAW;
H221:=高位价2,NODRAW;
H231:=低位价2,NODRAW;
VVA1:=IF(高点>低点,H121,DRAWNULL)NODRAW;
卖出成立:=VVA1,COLOR00FFFF,NODRAW;
VVB1:=IF(高点<低点,L221,DRAWNULL)NODRAW;
卖出不成立:=VVB1,COLORGREEN,NODRAW;
高位价3:=IFC(高点>低点,高位价2,L221);
低位价3:=IFC(高点>低点,低位价2,L221);
VAR11:=高位价3/低位价3;
VAR21:=SQRT(SQRT(VAR11));
VAR31:=SQRT(VAR11);
VAR41:=VAR31+VAR21-1;
VAR51:=低位价3*VAR21;
VAR61:=低位价3*VAR31;
VAR71:=低位价3*VAR41;
卖C1:=CONST(VAR51),NODRAW,COLORMAGENTA,DOTLINE;
卖C2:=CONST(VAR61),NODRAW,COLORMAGENTA,DOTLINE;
卖C3:=CONST(VAR71),NODRAW,COLORMAGENTA,DOTLINE;
卖出C1:DRAWLINE(VV,CONST(卖C1),CURRBARSCOUNT=1,卖C1,1),COLORMAGENTA,DOTLINE;
卖出C2:DRAWLINE(VV,CONST(卖C2),CURRBARSCOUNT=1,卖C2,1),COLORMAGENTA,DOTLINE;
卖出C3:DRAWLINE(VV,CONST(卖C3),CURRBARSCOUNT=1,卖C3,1),COLORMAGENTA,DOTLINE;
DRAWTEXT(VV,卖C1,VARCAT('卖出C1:',VAR2STR(卖C1,2))),COLORYELLOW;
DRAWTEXT(VV,卖C2,VARCAT('卖出C2:',VAR2STR(卖C2,2))),COLORYELLOW;
DRAWTEXT(VV,卖C3,VARCAT('卖出C3:',VAR2STR(卖C3,2))),COLORYELLOW;
DRAWLINE(VV,L,CURRBARSCOUNT=1,CONST(VAR71),0),COLORMAGENTA,DOTLINE;
STICKLINE(VV,L,CONST(VAR71),0,0),COLORMAGENTA;
DRAWLINE(VV2,H,VV,L,0),COLORMAGENTA,LINETHICK2;
DRAWICON(VV,L,38);
DRAWICON(VV2,H,39);
{鱼上钩源码如下}
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA240:=MA(CLOSE,240);
VAR1:=MA20>MA30 AND MA30>MA60 AND MA60>MA120 AND MA120>MA240;
VAR2:=SUM(VOL,40)>SUM(VOL,180)-SUM(VOL,40);
ZDF:=(CLOSE-REF(CLOSE,40))/REF(CLOSE,40)*100;
VAR3:=5<ZDF AND ZDF<50;
VAR4:=VAR1 AND VAR2 AND VAR3;
XG:VAR4;
{顾比鱼上钩源码如下}
EMA(CLOSE,18),COLORFFFF00,LINETHICK4;
安全生命线:EMA(CLOSE,18),COLORFFFFFF,LINETHICK2;
MA1:EMA(CLOSE,3),COLORRED;
MA2:EMA(CLOSE,5),COLOR230046;
MA3:EMA(CLOSE,8),COLOR3E007B;
MA4:EMA(CLOSE,10),COLOR5500AA;
MA5:EMA(CLOSE,12),COLOR7400E8;
MA6:EMA(CLOSE,15),COLORFF59FF;
MA7:EMA(CLOSE,30),COLOR004200;
MA8:EMA(CLOSE,35),COLOR006000;
MA9:EMA(CLOSE,40),COLOR008800;
MA10:EMA(CLOSE,45),COLOR00BB00;
MA11:EMA(CLOSE,50),COLOR00F900;
MA12:EMA(CLOSE,60),COLOR6AFF6A;
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA240:=MA(CLOSE,240);
VAR1:=MA20>MA30 AND MA30>MA60 AND MA60>MA120 AND MA120>MA240;
VAR2:=SUM(VOL,40)>SUM(VOL,180)-SUM(VOL,40);
ZDF:=(CLOSE-REF(CLOSE,40))/REF(CLOSE,40)*100,COLORRED,NODRAW;
VAR3:=5<ZDF AND ZDF<50;
VAR4:=VAR1 AND VAR2 AND VAR3;
STICKLINE(VAR4,O,C,3,0),COLORBLUE,LINETHICK2;
STICKLINE(VAR4,OPEN,CLOSE,3,0),COLORFF0000;
STICKLINE(VAR4,OPEN,CLOSE,2.5,0),COLORFF1100;
STICKLINE(VAR4,OPEN,CLOSE,2,0),COLORFF2200;
STICKLINE(VAR4,OPEN,CLOSE,1.5,0),COLORFF3300;
STICKLINE(VAR4,OPEN,CLOSE,1,0),COLORFF4400;
STICKLINE(VAR4,OPEN,CLOSE,0.5,0),COLORFF5500;
未来函数检测结果如下:
该公式包含未来函数:BACKSET
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{自动预测副图源码如下}周期微调赋值:5
顶底开关赋值:1
结构带开关赋值:1
KDJA :=3*SMA((收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100,3,1)-2*SMA(SMA((收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100,3,1),3,1),NODRAW
STICKLINE(顶底开关>0 AND (KDJA >=90),收盘价,开盘价,3,0),COLOR009CFF
STICKLINE(顶底开关>0 AND (KDJA >=90),收盘价,开盘价,2.8,0),COLOR009CFF
STICKLINE(顶底开关>0 AND (KDJA >=90),收盘价,开盘价,2.5,0),COLOR00C0FF
STICKLINE(顶底开关>0 AND (KDJA >=90),收盘价,开盘价,1.5,0),COLOR00D1FF
STICKLINE(顶底开关>0 AND (KDJA >=90),收盘价,开盘价,1,0),COLOR00EAFF
STICKLINE(顶底开关>0 AND (KDJA >=90),收盘价,开盘价,0.7,0),COLORYELLOW
STICKLINE(顶底开关>0 AND (KDJA <=10),开盘价,收盘价,3,0),COLORFF0000
STICKLINE(顶底开关>0 AND (KDJA <=10),开盘价,收盘价,2.5,0),COLOR534129086928832737F1100
STICKLINE(顶底开关>0 AND (KDJA <=10),开盘价,收盘价,2,0),COLORFF2200
STICKLINE(顶底开关>0 AND (KDJA <=10),开盘价,收盘价,1.5,0),COLORFF3300
STICKLINE(顶底开关>0 AND (KDJA <=10),开盘价,收盘价,1,0),COLORFF4400
STICKLINE(顶底开关>0 AND (KDJA <=10),开盘价,收盘价,0.5,0),COLORFF5500
STICKLINE(顶底开关>0 AND (KDJA <=10),H,L,0,0),COLORFF6600
A1赋值:周期微调日前的最高价=12+1日内最高价最高值
B1赋值:A1的周期微调过滤
C1赋值:BACKSET(B1,周期微调+1)
D1赋值:C1的周期微调过滤
{高点}A2赋值:周期微调日前的最低价=10+1日内最低价最低值
B2赋值:A2的周期微调过滤
C2赋值:BACKSET(B2,周期微调+1)
D2赋值:C2的周期微调过滤
{低点}E1赋值:(REF(2*3日内最低价最低值,1)+REF(2*3日内最高价最高值,1))/2
E2赋值:(最高价+最低价)/2
{高低点出现在同一K线上时可作取舍}H1赋值:(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR 收盘价的有效数据周期数=1
H2赋值:D1 AND NOT(D2 AND E1>=E2)
L1赋值:D2 AND NOT(D1 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
{过滤后高点}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
{找出全部长期低点}H3赋值:HH OR ISLASTBAR OR C的有效数据周期数=1
{后面进行过滤,方法同前。只是不用考虑高低点出现在同一K线}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
{长期高点,也可供引用}K1赋值:BACKSET(ISLASTBAR,MIN(上次HZ距今天数,BARSLAST(LZ))+1)
K2赋值:K1>1日前的K1
UU赋值:BACKSET(ISLASTBAR,上次LD距今天数+1)
VV赋值:UU>1日前的UU
WW赋值:BACKSET(VV,REF(上次LD距今天数,1)+2)
XX赋值:WW>1日前的WW
UU2:=BACKSET(ISLASTBAR,上次HD距今天数+1)
VV2:=UU2>1日前的UU2
WW2:=BACKSET(VV2,REF(上次HD距今天数,1)+2)
XX2赋值:WW2>1日前的WW2
高点赋值:上次HD距今天数
低点赋值:上次LD距今天数
J1赋值:BACKSET(ISLASTBAR,高点和低点的较小值+1)
J2赋值:J1>1日前的J1
输出NOTEXT1:DRAWLINE(LD,L,HD,H,0),LINETHICK1,DOTLINE,COLOR0000FF
输出NOTEXT2:DRAWLINE(HD,H,LD,L,0),LINETHICK1,DOTLINE,COLOR00FF00
如果HD返回H否则返回L
输出高位价:高点日前的H,1),画红色,NODRAW
输出低位价:低点日前的L,1),画绿色,NODRAW
H11赋值:高位价,NODRAW
H12赋值:低位价,NODRAW
L22赋值:0,NODRAW
如果高点<低点返回H11否则返回DRAWNULL
买入成立赋值:VVA,COLOR00FFFF,NODRAW
如果高点>低点返回L22否则返回DRAWNULL
买入不成立赋值:VVB,画绿色,NODRAW
高位价1:=IFC(高点<低点,高位价,L22)
低位价1:=IFC(高点<低点,低位价,L22)
VAR1赋值:高位价1/低位价1
VAR2赋值:SQRT(SQRT(VAR1))
VAR3赋值:SQRT(VAR1)
VAR4赋值:VAR3+VAR2-1
VAR5赋值:高位价1/VAR2
VAR6赋值:高位价1/VAR3
VAR7赋值:高位价1/VAR4
VAR8赋值:REFDATE(高点+1日内H最高值,DATE)
VAR9赋值:REFDATE(低点+1日内L最低值,DATE)
买C1赋值:CONST(VAR5),NODRAW,COLORYELLOW
买C2赋值:CONST(VAR6),NODRAW,COLORYELLOW
买C3赋值:CONST(VAR7),NODRAW,COLORYELLOW
买入输出C1:DRAWLINE(VV2,CONST(买C1), 到最后交易的周期=1,买C1,1),COLORFF8800,DOTLINE
买入输出C2:DRAWLINE(VV2,CONST(买C2), 到最后交易的周期=1,买C2,1),COLORFF8800,DOTLINE
输出买入C3:DRAWLINE(VV2,CONST(买C3), 到最后交易的周期=1,买C3,1),COLORFF8800,DOTLINE
DRAWTEXT(VV2,买C1,VARCAT('买入输出C1:',VAR2STR(买C1,2))),画白色
DRAWTEXT(VV2,买C2,VARCAT('买入输出C2:',VAR2STR(买C2,2))),画白色
DRAWTEXT(VV2,买C3,VARCAT('输出买入C3:',VAR2STR(买C3,2))),画白色
DRAWTEXT(VV,L,VARCAT('低位【A】',VAR2STR(L,2))),画绿色
DRAWTEXT(VV2,H,VARCAT('高位【B】',VAR2STR(H,2))),画红色
STICKLINE(VV2,H,CONST(VAR7),0,0),COLORFF8800
DRAWLINE(VV,L,VV2,H,0),COLORFF8800,LINETHICK2
DRAWLINE(VV2,H, 到最后交易的周期=1,CONST(VAR7),0),画绿色,DOTLINE
DRAWNUMBER(HD,H,H),DRAWABOVE,COLORFFFF00
DRAWNUMBER(LD,L,L),COLOR00FFFF
当满足条件 到最后交易的周期=XX时,在L和38之间画图标
当满足条件 到最后交易的周期=VV2时,在H和39之间画图标
高位价2:=高点日前的H,1),NODRAW
低位价2:=低点日前的L,1),NODRAW
H111:=高位价2,NODRAW
H121:=低位价2,NODRAW
L221:=0,NODRAW
H221:=高位价2,NODRAW
H231:=低位价2,NODRAW
如果高点>低点返回H121否则返回DRAWNULL
卖出成立赋值:VVA1,COLOR00FFFF,NODRAW
如果高点<低点返回L221否则返回DRAWNULL
卖出不成立赋值:VVB1,画绿色,NODRAW
高位价3:=IFC(高点>低点,高位价2,L221)
低位价3:=IFC(高点>低点,低位价2,L221)
VAR11:=高位价3/低位价3
VAR21:=SQRT(SQRT(VAR11))
VAR31:=SQRT(VAR11)
VAR41:=VAR31+VAR21-1
VAR51:=低位价3*VAR21
VAR61:=低位价3*VAR31
VAR71:=低位价3*VAR41
卖C1赋值:CONST(VAR51),NODRAW,画洋红色,DOTLINE
卖C2赋值:CONST(VAR61),NODRAW,画洋红色,DOTLINE
卖C3赋值:CONST(VAR71),NODRAW,画洋红色,DOTLINE
卖出输出C1:DRAWLINE(VV,CONST(卖C1), 到最后交易的周期=1,卖C1,1),画洋红色,DOTLINE
卖出输出C2:DRAWLINE(VV,CONST(卖C2), 到最后交易的周期=1,卖C2,1),画洋红色,DOTLINE
输出卖出C3:DRAWLINE(VV,CONST(卖C3), 到最后交易的周期=1,卖C3,1),画洋红色,DOTLINE
DRAWTEXT(VV,卖C1,VARCAT('卖出输出C1:',VAR2STR(卖C1,2))),COLORYELLOW
DRAWTEXT(VV,卖C2,VARCAT('卖出输出C2:',VAR2STR(卖C2,2))),COLORYELLOW
DRAWTEXT(VV,卖C3,VARCAT('输出卖出C3:',VAR2STR(卖C3,2))),COLORYELLOW
DRAWLINE(VV,L, 到最后交易的周期=1,CONST(VAR71),0),画洋红色,DOTLINE
STICKLINE(VV,L,CONST(VAR71),0,0),画洋红色
DRAWLINE(VV2,H,VV,L,0),画洋红色,LINETHICK2
当满足条件VV时,在L和38之间画图标
当满足条件VV2时,在H和39之间画图标
{鱼上钩源码如下}MA20赋值:收盘价的20日简单移动平均
MA30赋值:收盘价的30日简单移动平均
MA60赋值:收盘价的60日简单移动平均
MA120:=收盘价的120日简单移动平均
MA240赋值:收盘价的240日简单移动平均
VAR1赋值:MA20>MA30 AND MA30>MA60 AND MA60>MA120 AND MA120>MA240
VAR2赋值:40的成交量日累和>180的成交量日累和-40的成交量日累和
ZDF赋值:(收盘价-40日前的收盘价)/40日前的收盘价*100
VAR3赋值:5VAR4赋值:VAR1 AND VAR2 AND VAR3
输出XG:VAR4
{顾比鱼上钩源码如下}收盘价的18日指数移动平均,COLORFFFF00,LINETHICK4
输出安全生命线:收盘价的18日指数移动平均,COLORFFFFFF,LINETHICK2
M输出A1:收盘价的3日指数移动平均,画红色
输出MA2:收盘价的5日指数移动平均,COLOR230046
输出MA3:收盘价的8日指数移动平均,COLOR3E007B
输出MA4:收盘价的10日指数移动平均,COLOR5500AA
输出MA5:收盘价的12日指数移动平均,COLOR7400E8
输出MA6:收盘价的15日指数移动平均,COLORFF59FF
输出MA7:收盘价的30日指数移动平均,COLOR004200
输出MA8:收盘价的35日指数移动平均,COLOR006000
输出MA9:收盘价的40日指数移动平均,COLOR008800
MA10:收盘价的45日指数移动平均,COLOR00BB00
MA11:收盘价的50日指数移动平均,COLOR00F900
MA12:收盘价的60日指数移动平均,COLOR6AFF6A
MA20:=收盘价的20日简单移动平均
MA30赋值:收盘价的30日简单移动平均
MA60赋值:收盘价的60日简单移动平均
MA120:=收盘价的120日简单移动平均
MA240赋值:收盘价的240日简单移动平均
VAR1赋值:MA20>MA30 AND MA30>MA60 AND MA60>MA120 AND MA120>MA240
VAR2赋值:40的成交量日累和>180的成交量日累和-40的成交量日累和
ZDF赋值:(收盘价-40日前的收盘价)/40日前的收盘价*100,画红色,NODRAW
VAR3赋值:5VAR4赋值:VAR1 AND VAR2 AND VAR3
当满足条件VAR4时,在O和C之间画柱状线
当满足条件VAR4时,在开盘价和收盘价之间画柱状线
当满足条件VAR4时,在开盘价和收盘价之间画柱状线
当满足条件VAR4时,在开盘价和收盘价之间画柱状线
当满足条件VAR4时,在开盘价和收盘价之间画柱状线
当满足条件VAR4时,在开盘价和收盘价之间画柱状线
当满足条件VAR4时,在开盘价和收盘价之间画柱状线