分享

通达信【t+0分时】专攻高抛低吸T+0战法 指标源码 https://t.1yb.co/KQ6Q 一.指标图解:

 lyfd2003 2024-07-20 发布于上海

通达信【t+0分时】专攻高抛低吸T+0战法 指标源码

一.指标图解:

二 .T+0高抛低吸主图指标源码

RCC:=DYNAINFO(3);

S2:=SMA(C,13,1);

S6:=SMA(C,13,1);

DK:=(S2-S6);

KK:=IF(REF(C,1),1,1);

STICKLINE(DK>0,RCC*KK,RCC*KK+DK,0,1),COLORRED;

STICKLINE(DK<0,RCC*KK,RCC*KK+DK,0,1),COLORCYAN;

最高价:=HHV(H,480),DOTLINE,COLORLIBLUE;

STICKLINE(FILTER(CROSS(C,REF(最高价,1)),10),C*0.99,C,8,0),COLORGREEN;

DRAWTEXT(FILTER(CROSS(C,REF(最高价,1)),10),C*0.99,'上突'),COLORYELLOW;

今日开盘线:=DYNAINFO(4),COLORMAGENTA;

DRAWTEXT(ISLASTBAR,今日开盘线,'今日开盘线'),COLORGREEN;

现价:=C,COLORWHITE,LINETHICK1;

H11:=MAX(DYNAINFO(3),DYNAINFO(5));

L1:=MIN(DYNAINFO(3),DYNAINFO(6));

P1:=H11-L1;

阻力:=L1+P1*7/8,DOTLINE;

支撑A:=L1+P1*0.5/8,DOTLINE;

中:=(支撑A+阻力)/2,DOTLINE;

VAR4:=EXPMA(现价,55);

卖点:EXPMA(VAR4*1.013,1),COLORGREEN;

抄底:EXPMA(VAR4*0.993,1),COLORRED;

DRAWTEXT(LONGCROSS(支撑A,现价,3),支撑A,'----★B吸'),COLORYELLOW;{吸}

DRAWTEXT(LONGCROSS(现价,阻力,3),现价,'----★S抛'),COLORGREEN;{抛};

DRAWTEXT(ISLASTBAR,卖点,'突破转强'),COLORGREEN;

DRAWTEXT(ISLASTBAR,抄底,'破了转弱'),COLORRED;

XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE));

主力:=EXPMA(CLOSE/XX,20);大户:=EXPMA(CLOSE/XX,60);散户:=EXPMA(CLOSE/XX,120);

DRAWICON(主力>大户 AND 大户>散户 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60) AND 主力=HHV(主力,30) AND CROSS(主力,1.003),C,38);

DRAWTEXT(主力>大户 AND 大户>散户 AND C>EXPMA(C,20) AND EXPMA(C,10)>EXPMA(C,20) AND EXPMA(C,20)>EXPMA(C,60) AND 主力=HHV(主力,30) AND CROSS(主力,1.003),C*0.999,'-主力'),COLORYELLOW;{ 婧琪创意信息}

攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN;

攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0;

攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0;

攻击流量:=攻击量A+攻击量B,COLORSTICK;

攻击比:=攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;

资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50)));

资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;

资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;

资金出入:=资金流入+资金流出,COLORSTICK;

资金比:=资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;

资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));

DRAWTEXT_FIX(1,0.250,0.88,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORCYAN;

DRAWTEXT_FIX(1,0.000,0.88,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORCYAN;

A1:=(VOL/CLOSE)/3;

A2:=SUM((IF(((A1>40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);

A3:=SUM((IF(((A1>40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);

A4:=SUM((IF(((A1<40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);

A5:=SUM((IF(((A1<40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);

A6:=((A2+A3)+A4)+A5;

A7:=IF((BARSTATUS=2),((100*A2)/A6),0);

A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));

A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));

A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));

机构买盘:=(A2),LINETHICK2;

机构卖盘:=(A3),LINETHICK2;

散户买盘:=(A4);

散户卖盘:=(A5);

DRAWTEXT_FIX(1,0.000,1-0.05,0,STRCAT(STRCAT('【机构买盘】',CON2STR(机构买盘,2)),'万')),COLORRED;

DRAWTEXT_FIX(1,0.250,1-0.05,0,STRCAT(STRCAT('【机构卖盘】',CON2STR(机构卖盘,2)),'万')),COLOR00FF00;

DRAWTEXT_FIX(1,0.500,1-0.05,0,STRCAT(STRCAT('【散户买盘】',CON2STR(散户买盘,2)),'万')),COLORRED;

DRAWTEXT_FIX(1,0.745,1-0.05,0,STRCAT(STRCAT('【散户卖盘】',CON2STR(散户卖盘,2)),'万')),COLOR00FF00;

DD1:=1;{ 婧琪创意信息}

AAA1:=STRCAT(STRCAT('机构买',CON2STR((100*A2)/A6,0)),'%');

AAA2:=STRCAT(STRCAT('机构卖',CON2STR((100*A3)/A6,0)),'%');

AAA22:=STRCAT(STRCAT('机构差',CON2STR((100*(A2-A3))/A6,0)),'%');

AAA3:=STRCAT(STRCAT('散户买',CON2STR((100*A4)/A6,0)),'%');

AAA4:=STRCAT(STRCAT('散户卖',CON2STR((100*A5)/A6,0)),'%');

AAA33:=STRCAT(STRCAT('散户差',CON2STR((100*(A4-A5))/A6,0)),'%');

DRAWTEXT_FIX(DD1=1,0.3,0.05,0,AAA1),COLORRED;

DRAWTEXT_FIX(DD1=1,0.3,0.09,0,AAA2),COLORFFFF55;

DRAWTEXT_FIX(DD1=1,0.3,0.14,0,AAA22),COLOR00FFFF;

DRAWTEXT_FIX(DD1=1,0.4,0.05,0,AAA3),COLOR5555FF;

DRAWTEXT_FIX(DD1=1,0.4,0.09,0,AAA4),COLOR55FF55;

DRAWTEXT_FIX(DD1=1,0.4,0.14,0,AAA33),COLOR00FFFF;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.05,0,GNBLOCK),COLORYELLOW;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.09,0,FGBLOCK),COLORYELLOW;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.01,0,HYBLOCK),COLORYELLOW;

DRAWTEXT_FIX(1,0.5,0.1,0,'10点之前不买票,买的股票必须得比大盘指数强,越强越好,不追高,找机会抄底 婧琪创意信息'),COLORLIMAGENTA;

指标源码

编辑于 2024-07-14 10:24・IP 属地陕西

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约