通达信波浪趋势主图王者归来指标源码


JX0:=IF(C>=MA(C,5),1,-1);

JX1:=IF(C>=MA(C,10),1,-1);

JX2:=IF(C>=MA(C,20),1,-1);

JX3:=IF(C>=MA(C,30),1,-1);

JX4:=IF(C>=MA(C,60),1,-1);

JX5:=IF(MA(C,5)>=REF(MA(C,5),1),1,-1);

JX6:=IF(MA(C,10)>=REF(MA(C,10),1),1,-1);

JX7:=IF(MA(C,20)>=REF(MA(C,20),1),1,-1);

JX8:=IF(MA(C,30)>=REF(MA(C,30),1),1,-1);

JX9:=IF(MA(C,60)>=REF(MA(C,60),1),1,-1);

JX10:=(JX0+JX1+JX2+JX5+JX6+JX7)/6*100;

JX11:=(JX0+JX1+JX2+JX3+JX4+JX5+JX6+JX7+JX8+JX9)/10*100;

STICKLINE(JX10=100,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0)COLOR404050;

STICKLINE(JX11=100,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),0,0)COLOR001050;

{倍量阴}

BLY:=V/REF(V,1)>1.8 AND O>C;

BLYH:=REF(H,BARSLAST(BLY));

BLYL:=REF(L,BARSLAST(BLY));

STICKLINE(L,BLYH,BLYL,5,0)COLORLICYAN;

{涨停画线}

ZTB:=C/REF(C,1)>1.093 AND C=H;

ZTH:=REF(H,BARSLAST(ZTB));

ZTL:=REF(L,BARSLAST(ZTB));

NOTEXTA:ZTH,COLORMAGENTA,DOTLINE;

NOTEXTB:ZTL,COLORBLUE,DOTLINE;

{涨停均价}

DRAWTEXT(CURRBARSCOUNT<=10 AND C/REF(C,1)>1.093 AND C=H,AMOUNT/V/100

,'---------------------------------------------------------------------------------------------')COLORYELLOW;

DRAWKLINE(H,O,L,C);

DRAWTEXT_FIX(ISLASTBAR,0.35,0.15,0,CODE)COLORYELLOW;

DRAWTEXT_FIX(ISLASTBAR,0.42,0.15,0,STKNAME)COLORRED;

DRAWTEXT_FIX(ISLASTBAR,0.53,0.15,0,HYBLOCK)COLORCYAN;

DRAWTEXT_FIX(ISLASTBAR,0.62,0.15,0,DYBLOCK)COLORB4EEB4;

DRAWTEXT_FIX(ISLASTBAR,0.35,0.25,0,GNBLOCK)COLORWHITE;

DRAWTEXT_FIX(ISLASTBAR,0.35,0.15,0,CODE)COLORYELLOW;

DRAWTEXT_FIX(ISLASTBAR,0.42,0.15,0,STKNAME)COLORRED;

DRAWTEXT_FIX(ISLASTBAR,0.53,0.15,0,HYBLOCK)COLORCYAN;

DRAWTEXT_FIX(ISLASTBAR,0.62,0.15,0,DYBLOCK)COLORB4EEB4;

DRAWTEXT_FIX(ISLASTBAR,0.35,0.25,0,GNBLOCK)COLORWHITE;

{缠论波浪}

PL5:=ZIG(3,5);

EN1:=PL5>REF(PL5,1) AND REF(PL5,1)<=REF(PL5,2) AND REF(PL5,2)<=REF(PL5,3);

EX1:=PL5<REF(PL5,1) AND REF(PL5,1)>=REF(PL5,2) AND REF(PL5,2)>=REF(PL5,3);

PL10:=ZIG(3,20);

EN2:=PL10>REF(PL10,1) AND REF(PL10,1)<=REF(PL10,2) AND REF(PL10,2)<=REF(PL10,3);

EX2:=PL10<REF(PL10,1) AND REF(PL10,1)>=REF(PL10,2) AND REF(PL10,2)>=REF(PL10,3);

PL20:=ZIG(3,30);

EN3:=PL20>REF(PL20,1) AND REF(PL20,1)<=REF(PL20,2) AND REF(PL20,2)<=REF(PL20,3);

EX3:=PL20<REF(PL20,1) AND REF(PL20,1)>=REF(PL20,2) AND REF(PL20,2)>=REF(PL20,3);

走强1:=BARSLAST(PL5<REF(PL5,1));

走弱1:=BARSLAST(PL5>REF(PL5,1));

走强2:=BARSLAST(PL10<REF(PL10,1));

走弱2:=BARSLAST(PL10>REF(PL10,1));

走强3:=BARSLAST(PL20<REF(PL20,1));

走弱3:=BARSLAST(PL20>REF(PL20,1));

ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);

ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);

DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);

DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);

ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);

ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);

DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);

DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);

DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)')COLORFFFF00;

DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)')COLORFFFF00;

DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)')COLORFFFF00;

DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.03,'1')COLORWHITE;

DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'↖2')COLORWHITE;

DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.03,'3')COLORWHITE;

DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'↖4')COLORWHITE;

DRAWTEXT(EX2 AND (PL20>REF(PL20,1) OR REF(PL20>REF(PL20,1),1) OR ZTJD10=1),H*1.020,'5')COLORWHITE;

DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.05,'一')COLOR00FFFF,LINETHICK3;

DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.94,'二')COLOR00FFFF,LINETHICK3;

DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2,H*1.05,'三')COLOR00FFFF,LINETHICK3;

DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.94,'四')COLOR00FFFF,LINETHICK3;

XG1:=EX2;

XG2:=PL20>REF(PL20,1);

XG3:=ZTJZ10=3;

DRAWTEXT(REF(XG2*XG3,1) AND XG1,H*1.06,'五')COLORWHITE,LINETHICK3;

DRAWTEXT(REF(XG2*XG3,1) AND XG1,H*0.99,'●')COLOR0000FF,LINETHICK3;

DRAWTEXT(REF(XG2*XG3,1) AND XG1,H*0.97,'●')COLOR00FFFF,LINETHICK3;

{假阴真阳 股票指标网HTTP://}

STICKLINE(C<O AND C>REF(C,1),H,L,0,0)COLORLIRED;

STICKLINE(C<O AND C>REF(C,1),C,O,3,1)COLORLIRED;

{真阴假阳}

STICKLINE(C>O AND C<REF(C,1),H,L,0,0)COLORAA00AA;

STICKLINE(C>O AND C<REF(C,1),C,O,3,1)COLORAA00AA;

{涨幅为零}

STICKLINE(C=REF(C,1),H,L,0.1,0)COLORWHITE;

STICKLINE(C=REF(C,1),C,O,3,0)COLORWHITE;

{蹲跳K}

DRAWICON(L>=REF(L,1) AND H<=REF(H,1) AND JX11=100,L*0.998,1);

DRAWICON(L>=REF(L,1) AND H<=REF(H,1) AND JX11=100,H*1.035,2);

{红三兵}

STICKLINE(EVERY(C>O,3) AND EVERY(C>REF(C,1),3) AND O<>H,O,C,1.5,0)COLORRED;

{黑三兵}

DRAWICON(EVERY(C<O,3) AND EVERY(C<REF(C,1),3) AND O<>L,L,28);

{涨停K}

STICKLINE(ZTB,O,C,0,0)COLORYELLOW;

STICKLINE(ZTB,O,(C+O)/2,0.1,0)COLORYELLOW;

{回踩关注}

DRAWICON(BARSLAST(ZTB)<=5 AND BARSLAST(ZTB)>1 AND L<=ZTL AND C>ZTL AND EVERY(C<ZTH,2) AND ZTB=0 AND O<>L,L,29);



未来函数检测结果如下:
该公式包含未来函数:ZIG
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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