通达信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
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图