通达信C浪突破擒妖主副图公式 C浪突破信号准 指标源码
{C浪突破擒妖FT源码如下}
MA60:=MA(C,60);
C浪擒妖5:=IF(PERIOD>=7,ZIG(3,1),IF(PERIOD=3,ZIG(1,2),ZIG(1,2)));
C浪擒妖10:=IF(PERIOD>=7,ZIG(3,30),IF(PERIOD=3,ZIG(1,10),ZIG(1,10)));
R1:=C浪擒妖5>REF(C浪擒妖5,1) AND REF(C浪擒妖5,1)<=REF(C浪擒妖5,2) AND REF(C浪擒妖5,2)<=REF(C浪擒妖5,3);
R2:=C浪擒妖10>REF(C浪擒妖10,1) AND REF(C浪擒妖10,1)<=REF(C浪擒妖10,2) AND REF(C浪擒妖10,2)<=REF(C浪擒妖10,3);
ZC浪擒妖2:=BARSLAST(C浪擒妖10<REF(C浪擒妖10,1));
Y5:=IF(C浪擒妖10>REF(C浪擒妖10,1),COUNT(R1,ZC浪擒妖2),0);
XG:R2 AND Y5=1;
{MA60:=MA(C,60);
C浪擒妖5:=IF(PERIOD>=7,ZIG(3,1),IF(PERIOD=3,ZIG(1,2),ZIG(1,2)));
C浪擒妖10:=IF(PERIOD>=7,ZIG(3,30),IF(PERIOD=3,ZIG(1,10),ZIG(1,10)));
R1:=C浪擒妖5>REF(C浪擒妖5,1) AND REF(C浪擒妖5,1)<=REF(C浪擒妖5,2) AND REF(C浪擒妖5,2)<=REF(C浪擒妖5,3);
R2:=C浪擒妖10>REF(C浪擒妖10,1) AND REF(C浪擒妖10,1)<=REF(C浪擒妖10,2) AND REF(C浪擒妖10,2)<=REF(C浪擒妖10,3);
ZC浪擒妖2:=BARSLAST(C浪擒妖10<REF(C浪擒妖10,1));
Y5:=IF(C浪擒妖10>REF(C浪擒妖10,1),COUNT(R1,ZC浪擒妖2),0);
XG:R2 AND Y5=1;};
{C浪突破擒妖ZT源码如下}
MA60:MA(C,60);
DRAWBAND(MA(C,60),RGB(100,10,10),MA(C,65),RGB(200,200,200));
C浪擒妖5:=IF(PERIOD>=7,ZIG(3,1),IF(PERIOD=3,ZIG(1,2),ZIG(1,2)));
C浪擒妖10:=IF(PERIOD>=7,ZIG(3,30),IF(PERIOD=3,ZIG(1,10),ZIG(1,10)));
C浪擒妖20:=IF(PERIOD>=7,ZIG(1,10),IF(PERIOD=3,ZIG(1,30),ZIG(1,20)));
R1:=C浪擒妖5>REF(C浪擒妖5,1) AND REF(C浪擒妖5,1)<=REF(C浪擒妖5,2) AND REF(C浪擒妖5,2)<=REF(C浪擒妖5,3);
F1:=C浪擒妖5<REF(C浪擒妖5,1) AND REF(C浪擒妖5,1)>=REF(C浪擒妖5,2) AND REF(C浪擒妖5,2)>=REF(C浪擒妖5,3);
R2:=C浪擒妖10>REF(C浪擒妖10,1) AND REF(C浪擒妖10,1)<=REF(C浪擒妖10,2) AND REF(C浪擒妖10,2)<=REF(C浪擒妖10,3);
F2:=C浪擒妖10<REF(C浪擒妖10,1) AND REF(C浪擒妖10,1)>=REF(C浪擒妖10,2) AND REF(C浪擒妖10,2)>=REF(C浪擒妖10,3);
R3:=C浪擒妖20>REF(C浪擒妖20,1) AND REF(C浪擒妖20,1)<=REF(C浪擒妖20,2) AND REF(C浪擒妖20,2)<=REF(C浪擒妖20,3);
F3:=C浪擒妖20<REF(C浪擒妖20,1) AND REF(C浪擒妖20,1)>=REF(C浪擒妖20,2) AND REF(C浪擒妖20,2)>=REF(C浪擒妖20,3);
ZC浪擒妖1:=BARSLAST(C浪擒妖5<REF(C浪擒妖5,1));
ZR1:=BARSLAST(C浪擒妖5>REF(C浪擒妖5,1));
ZC浪擒妖2:=BARSLAST(C浪擒妖10<REF(C浪擒妖10,1));
ZR2:=BARSLAST(C浪擒妖10>REF(C浪擒妖10,1));
ZC浪擒妖3:=BARSLAST(C浪擒妖20<REF(C浪擒妖20,1));
ZR3:=BARSLAST(C浪擒妖20>REF(C浪擒妖20,1));
Y5:=IF(C浪擒妖10>REF(C浪擒妖10,1),COUNT(R1,ZC浪擒妖2),0);
J5:=IF(C浪擒妖10>REF(C浪擒妖10,1),COUNT(F1,ZC浪擒妖2),0);
Z5:=IF(C浪擒妖10<REF(C浪擒妖10,1),COUNT(R1,ZR2),0);
D5:=IF(C浪擒妖10<REF(C浪擒妖10,1),COUNT(F1,ZR2),0);
Y10:=IF(C浪擒妖20>REF(C浪擒妖20,1),COUNT(R2,ZC浪擒妖3),0);
J10:=IF(C浪擒妖20>REF(C浪擒妖20,1),COUNT(F2,ZC浪擒妖3),0);
Z10:=IF(C浪擒妖20<REF(C浪擒妖20,1),COUNT(R2,ZR3),0);
D10:=IF(C浪擒妖20<REF(C浪擒妖20,1),COUNT(F2,ZR3),0);
DRAWTEXT(R1 AND Z5=1,L*0.98,'(A)'),COLORFFFF00;
DRAWTEXT(F1 AND D5=2,H*1.02,'(B)'),COLORFFFF00;
DRAWTEXT(R2 AND Y5=1,L*0.98,'(C)'),COLORFFFF00;
DRAWTEXT(F1 AND C浪擒妖10>REF(C浪擒妖10,1) AND J5=1,H*1.02,'⑴'),COLOR0000FF;
DRAWTEXT(R1 AND C浪擒妖10>REF(C浪擒妖10,1) AND Y5=2,L*0.98,'⑵'),COLOR0000FF;
DRAWTEXT(F1 AND C浪擒妖10>REF(C浪擒妖10,1) AND Y5=2,H*1.02,'⑶'),COLOR0000FF;
DRAWTEXT(R1 AND C浪擒妖10>REF(C浪擒妖10,1) AND Y5=3,L*0.98,'⑷'),COLOR0000FF;
DRAWTEXT(F2 AND (C浪擒妖10>REF(C浪擒妖10,1) OR REF(C浪擒妖10>REF(C浪擒妖10,1),1) OR J10=1),H*1.08,'⑸'),,COLOR0000FF;
DRAWTEXT(F2 AND C浪擒妖20>REF(C浪擒妖20,1) AND J10=1,H*1.06,'①'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(R2 AND C浪擒妖20>REF(C浪擒妖20,1) AND Y10=2,L*0.94,'②'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(F2 AND C浪擒妖20>REF(C浪擒妖20,1) AND J10=2,H*1.06,'③'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(R2 AND C浪擒妖20>REF(C浪擒妖20,1) AND Y10=3,L*0.94,'④'),LINETHICK3,COLOR00FFFF;
XG1:=F2;DRAWTEXT_FIX(1,0.60,0.75,0,' '),COLORYELLOW;
XG2:=C浪擒妖20>REF(C浪擒妖20,3);
XG3:=Y10=3;
DRAWTEXT(REF(XG2*XG3,1) AND XG1,H*1.06,'⑤'),LINETHICK3,COLORWHITE;
DRAWTEXT(REF(XG2*XG3,1) AND XG1,H*1.04,'●'),LINETHICK3,COLORFFFF00;
DRAWTEXT(REF(XG2*XG3,1) AND XG1,H*1.02,'●'),LINETHICK3,COLOR00FFFF;
MX1:=EMA(C,2),COLORRED;
MX2:=EMA(SLOPE(C,21)*20+C,42),COLORYELLOW;
BU:=CROSS(MX1,MX2);
SEL:=CROSS(MX2,MX1);
STICKLINE(MX1>=MX2,CLOSE,OPEN,2,0),COLORRED;
STICKLINE(MX1>=MX2,LOW,HIGH,0,0),COLORRED;
STICKLINE(MX1<MX2,CLOSE,OPEN,2,0),COLOR00FFFF;
STICKLINE(MX1<MX2,LOW,HIGH,0,0),COLOR00FFFF;
未来函数检测结果如下:
该公式包含未来函数:ZIG
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{C浪突破擒妖FT源码如下}MA60赋值:C的60日简单移动平均
C浪擒妖5赋值:IF(PERIOD>=7,ZIG(3,1),IF(PERIOD=3,ZIG(1,2),ZIG(1,2)))
C浪擒妖10赋值:IF(PERIOD>=7,ZIG(3,30),IF(PERIOD=3,ZIG(1,10),ZIG(1,10)))
R1赋值:C浪擒妖5>1日前的C浪擒妖5 AND 1日前的C浪擒妖5<=2日前的C浪擒妖5 AND 2日前的C浪擒妖5<=3日前的C浪擒妖5
R2赋值:C浪擒妖10>1日前的C浪擒妖10 AND 1日前的C浪擒妖10<=2日前的C浪擒妖10 AND 2日前的C浪擒妖10<=3日前的C浪擒妖10
ZC浪擒妖2赋值:上次C浪擒妖10<1日前的C浪擒妖10距今天数
Y5赋值:IF(C浪擒妖10>1日前的C浪擒妖10,统计ZC浪擒妖2日满足R1的天数,0)
输出XG:R2 AND Y5=1
{MA60赋值:C的60日简单移动平均
C浪擒妖5赋值:IF(PERIOD>=7,ZIG(3,1),IF(PERIOD=3,ZIG(1,2),ZIG(1,2)))
C浪擒妖10赋值:IF(PERIOD>=7,ZIG(3,30),IF(PERIOD=3,ZIG(1,10),ZIG(1,10)))
R1赋值:C浪擒妖5>1日前的C浪擒妖5 AND 1日前的C浪擒妖5<=2日前的C浪擒妖5 AND 2日前的C浪擒妖5<=3日前的C浪擒妖5
R2赋值:C浪擒妖10>1日前的C浪擒妖10 AND 1日前的C浪擒妖10<=2日前的C浪擒妖10 AND 2日前的C浪擒妖10<=3日前的C浪擒妖10
ZC浪擒妖2赋值:上次C浪擒妖10<1日前的C浪擒妖10距今天数
Y5赋值:IF(C浪擒妖10>1日前的C浪擒妖10,统计ZC浪擒妖2日满足R1的天数,0)
输出XG:R2 AND Y5=1
}
输出{C浪突破擒妖ZT源码如下}MA60:C的60日简单移动平均
DRAWBAND(C的60日简单移动平均,RGB(100,10,10),C的65日简单移动平均,RGB(200,200,200))
C浪擒妖5赋值:IF(PERIOD>=7,ZIG(3,1),IF(PERIOD=3,ZIG(1,2),ZIG(1,2)))
C浪擒妖10赋值:IF(PERIOD>=7,ZIG(3,30),IF(PERIOD=3,ZIG(1,10),ZIG(1,10)))
C浪擒妖20赋值:IF(PERIOD>=7,ZIG(1,10),IF(PERIOD=3,ZIG(1,30),ZIG(1,20)))
R1赋值:C浪擒妖5>1日前的C浪擒妖5 AND 1日前的C浪擒妖5<=2日前的C浪擒妖5 AND 2日前的C浪擒妖5<=3日前的C浪擒妖5
F1赋值:C浪擒妖5<1日前的C浪擒妖5 AND 1日前的C浪擒妖5>=2日前的C浪擒妖5 AND 2日前的C浪擒妖5>=3日前的C浪擒妖5
R2赋值:C浪擒妖10>1日前的C浪擒妖10 AND 1日前的C浪擒妖10<=2日前的C浪擒妖10 AND 2日前的C浪擒妖10<=3日前的C浪擒妖10
F2赋值:C浪擒妖10<1日前的C浪擒妖10 AND 1日前的C浪擒妖10>=2日前的C浪擒妖10 AND 2日前的C浪擒妖10>=3日前的C浪擒妖10
R3赋值:C浪擒妖20>1日前的C浪擒妖20 AND 1日前的C浪擒妖20<=2日前的C浪擒妖20 AND 2日前的C浪擒妖20<=3日前的C浪擒妖20
F3赋值:C浪擒妖20<1日前的C浪擒妖20 AND 1日前的C浪擒妖20>=2日前的C浪擒妖20 AND 2日前的C浪擒妖20>=3日前的C浪擒妖20
ZC浪擒妖1赋值:上次C浪擒妖5<1日前的C浪擒妖5距今天数
ZR1赋值:上次C浪擒妖5>1日前的C浪擒妖5距今天数
ZC浪擒妖2赋值:上次C浪擒妖10<1日前的C浪擒妖10距今天数
ZR2赋值:上次C浪擒妖10>1日前的C浪擒妖10距今天数
ZC浪擒妖3赋值:上次C浪擒妖20<1日前的C浪擒妖20距今天数
ZR3赋值:上次C浪擒妖20>1日前的C浪擒妖20距今天数
Y5赋值:IF(C浪擒妖10>1日前的C浪擒妖10,统计ZC浪擒妖2日满足R1的天数,0)
J5赋值:IF(C浪擒妖10>1日前的C浪擒妖10,统计ZC浪擒妖2日满足F1的天数,0)
Z5赋值:IF(C浪擒妖10<1日前的C浪擒妖10,统计ZR2日满足R1的天数,0)
D5赋值:IF(C浪擒妖10<1日前的C浪擒妖10,统计ZR2日满足F1的天数,0)
Y10赋值:IF(C浪擒妖20>1日前的C浪擒妖20,统计ZC浪擒妖3日满足R2的天数,0)
J10赋值:IF(C浪擒妖20>1日前的C浪擒妖20,统计ZC浪擒妖3日满足F2的天数,0)
Z10赋值:IF(C浪擒妖20<1日前的C浪擒妖20,统计ZR3日满足R2的天数,0)
D10赋值:IF(C浪擒妖20<1日前的C浪擒妖20,统计ZR3日满足F2的天数,0)
DRAWTEXT(R1 AND Z5=1,L*0.98,'(A)'),COLORFFFF00
DRAWTEXT(F1 AND D5=2,H*1.02,'(B)'),COLORFFFF00
DRAWTEXT(R2 AND Y5=1,L*0.98,'(C)'),COLORFFFF00
DRAWTEXT(F1 AND C浪擒妖10>1日前的C浪擒妖10 AND J5=1,H*1.02,'⑴'),COLOR0000FF
DRAWTEXT(R1 AND C浪擒妖10>1日前的C浪擒妖10 AND Y5=2,L*0.98,'⑵'),COLOR0000FF
DRAWTEXT(F1 AND C浪擒妖10>1日前的C浪擒妖10 AND Y5=2,H*1.02,'⑶'),COLOR0000FF
DRAWTEXT(R1 AND C浪擒妖10>1日前的C浪擒妖10 AND Y5=3,L*0.98,'⑷'),COLOR0000FF
DRAWTEXT(F2 AND (C浪擒妖10>1日前的C浪擒妖10 OR 1日前的C浪擒妖10>1日前的C浪擒妖10 OR J10=1),H*1.08,'⑸'),,COLOR0000FF
DRAWTEXT(F2 AND C浪擒妖20>1日前的C浪擒妖20 AND J10=1,H*1.06,'①'), 线宽为3,COLOR00FFFF
DRAWTEXT(R2 AND C浪擒妖20>1日前的C浪擒妖20 AND Y10=2,L*0.94,'②'), 线宽为3,COLOR00FFFF
DRAWTEXT(F2 AND C浪擒妖20>1日前的C浪擒妖20 AND J10=2,H*1.06,'③'), 线宽为3,COLOR00FFFF
DRAWTEXT(R2 AND C浪擒妖20>1日前的C浪擒妖20 AND Y10=3,L*0.94,'④'), 线宽为3,COLOR00FFFF
XG1:=F2
当满足条件1时,在横轴0.60纵轴0.75位置书写文字
XG2:=C浪擒妖20>3日前的C浪擒妖20
XG3:=Y10=3
DRAWTEXT(1日前的XG2*XG3 AND XG1,H*1.06,'⑤'), 线宽为3,画白色
DRAWTEXT(1日前的XG2*XG3 AND XG1,H*1.04,'●'), 线宽为3,COLORFFFF00
DRAWTEXT(1日前的XG2*XG3 AND XG1,H*1.02,'●'), 线宽为3,COLOR00FFFF
MX1赋值:C的2日指数移动平均,画红色
MX2赋值:EMA(SLOPE(C,21)*20+C,42),画黄色
BU赋值:MX1上穿MX2
SEL赋值:MX2上穿MX1
当满足条件MX1>=MX2时,在收盘价和开盘价之间画柱状线
当满足条件MX1>=MX2时,在最低价和最高价之间画柱状线
当满足条件MX1当满足条件MX1