通达信【擒庄五日起飞】主升行情翻倍杀主图+选股公式用法详解




VAR1:=(3*C+L+O+H)/6;

VAR2:=20*VAR1+19*REF(VAR1,1)+18*REF(VAR1,2)+17*REF(VAR1,3)+16*REF(VAR1,4);

VAR3:=VAR2+15*REF(VAR1,5)+14*REF(VAR1,6)+13*REF(VAR1,7)+12*REF(VAR1,8);

VAR4:=VAR3+11*REF(VAR1,9)+10*REF(VAR1,10)+9*REF(VAR1,11)+8*REF(VAR1,12);

VAR5:=VAR4+7*REF(VAR1,13)+6*REF(VAR1,14)+5*REF(VAR1,15)+4*REF(VAR1,16);

VAR6:=(VAR5+3*REF(VAR1,17)+2*REF(VAR1,18)+ REF(VAR1,20))/210;

VAR7:=EMA(CLOSE,5);

VAR8:=EMA(VAR7,8);

VAR9:=EMA(VAR8,13);

VAR10:=CLOSE/REF(CLOSE,1)>=1.09;

VAR11:=EMA(((3*C+L+O+H)/6),6);

VAR12:=EMA(((3*C+L+O+H)/6),5);

VAR13:=CROSS(VAR11,VAR12);

VAR14:=IF(EXIST(REF(VAR13,1) AND C>REF(L,1),5),1,0);

VAR15:=REF(VAR13,2) AND C>REF(L,1);

VAR16:=REF(REF(VAR13,1) AND C>REF(L,1),1);

VAR17:=REF(VAR13,3) AND C>REF(L,2);

VAR18:=REF(REF(VAR13,2) AND C>REF(L,1),1);

VAR19:=REF(VAR13,4) AND C>REF(L,3);

VAR20:=REF(REF(VAR13,3) AND C>REF(L,2) AND REF(REF(VAR13,2) AND C>REF(L,1),1),1);

VAR21:=REF(VAR13,5) AND C>REF(L,4);

VAR22:=EMA(CLOSE,12)-EMA(CLOSE,26);

VAR23:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

VAR24:=SMA((SMA(VAR23,3,1)),3,1);

VAR25:=3*(SMA(VAR23,3,1))-2*VAR24;

VAR26:=EMA(CLOSE,17);

VAR27:=EMA((EMA((EMA(CLOSE,5)),8)),13);

VAR28:=EMA(VAR27,50);

VAR29:=(3*CLOSE+LOW+OPEN+HIGH)/6;

VAR30:=20*VAR29+19*REF(VAR29,1)+18*REF(VAR29,2)+17*REF(VAR29,3);

VAR31:=VAR30+16*REF(VAR29,4)+15*REF(VAR29,5)+14*REF(VAR29,6)+13*REF(VAR29,7);

VAR32:=VAR31+12*REF(VAR29,8)+11*REF(VAR29,9)+10*REF(VAR29,10);

VAR33:=VAR32+9*REF(VAR29,11)+8*REF(VAR29,12)+7*REF(VAR29,13);

VAR34:=VAR33+6*REF(VAR29,14)+5*REF(VAR29,15)+4*REF(VAR29,16);

VAR35:=(VAR34+3*REF(VAR29,17)+2*REF(VAR29,18)+REF(VAR29,20))/210;

VAR36:=(3*CLOSE+LOW+OPEN+HIGH)/6;

VAR37:=VAR22<(EMA(VAR22,9)) AND VAR25>VAR24;

VAR38:=CROSS((EMA(VAR36,6)),(EMA(VAR36,5)));

VAR39:=EXIST(CLOSE/REF(CLOSE,1)>1+0.01*9,100);

VAR40:=REF(CLOSE,1)/CLOSE<1+0.01*5;

VAR41:=BARSLAST((EMA(VAR35,13))>VAR26)<100;

VAR42:=(EMA(VAR35,13))/VAR28<1+0.01*50;

VAR46:=IF(EXIST(VAR37,5),0,1);

VAR48:=IF(VAR38 AND VAR39 AND VAR40 AND VAR41 AND VAR42 AND VAR46,100,0);

短线成本:EMA(CLOSE,17),LINETHICK2,COLORWHITE;

中线成本:EMA(VAR6,13),LINETHICK2,COLORFF00FF;

长线成本:EMA(VAR9,50),LINETHICK2,COLORGREEN;

STICKLINE((EMA(VAR1,1))<中线成本,H,L,0,1),COLORGREEN;

STICKLINE((EMA(VAR1,1))<中线成本,C,O,2,1),COLORGREEN;

STICKLINE((EMA(VAR1,1))>=中线成本,H,L,0,1),COLORRED;

STICKLINE((EMA(VAR1,1))>=中线成本,C,O,2,1),COLORRED;

STICKLINE(VAR10,OPEN,CLOSE,2,0),COLORYELLOW;

DRAWTEXT(VAR13,L,'----------70822----------'),COLORWHITE;

DRAWTEXT_FIX(C>O,0,0.07,0,'VAR46:VAR48'),COLORMAGENTA;

DRAWTEXT(REF(VAR13,1) AND C>REF(L,1),H*1.01,'①'),COLORYELLOW;

DRAWTEXT(VAR15 AND VAR16,H*1.01,'②'),COLORYELLOW;

DRAWTEXT(VAR17 AND VAR18 AND VAR14,H*1.01,'③'),COLORYELLOW;

DRAWTEXT(VAR19 AND VAR20 AND VAR14,H*1.01,'④'),COLORYELLOW;

DRAWTEXT(VAR21 AND REF(VAR19 AND REF(VAR17 AND VAR18,1),1) AND VAR14,H*1.01,'⑤'),COLORYELLOW;

上涨天数:BARSLAST((EMA(VAR35,13))>VAR26),COLORRED,NODRAW;

下跌天数:BARSLAST((EMA(VAR35,13))<VAR26),COLORGREEN,NODRAW;

DRAWICON(VAR48=100,L,9);




来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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