最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信小散之家实盘分时操盘系统-三只分时源码公式

    正文概述    2024-04-13 16:32:59  

    通达信小散之家实盘分时操盘系统-三只分时源码公式

    今我提供的分时选股源码就是上述第5步我自创自用的下单操作前的分时选股盯盘系统,是结合慢牛老师讲课内容经典部分编写的,其特点是分时线同时罗列四天日线K线,设有当天的3日,5日,7日,13日均线的支撑线,还设有昨日K线最高和最低价位的警戒线。还有其他功能请自己分析吧。注:3日,5日,7日,13日均线的支撑线是慢牛老师是选股经常使用支撑线是实战中对股研判的主要依据。此系统共三只公式,分别是 小散之家引用 小散之家分时主图 小散之家分时副图 ,其中 小散之家引用 必须安装。
    1.{小散之家引用副图}
    ZTJ:IF((C-REF(C,1))*100/REF(C,1) =(10-0.01*100/REF(C,1)) AND C=H,1,0);
    ZT1:IF((REF(C,1)-REF(C,2))*100/REF(C,2) =(10-0.01*100/REF(C,2)) AND REF(C,1)=REF(H,1),1,0);
    ZT2:IF((REF(C,2)-REF(C,3))*100/REF(C,3) =(10-0.01*100/REF(C,3)) AND REF(C,2)=REF(H,2),1,0);
    ZT3:IF((REF(C,3)-REF(C,4))*100/REF(C,4) =(10-0.01*100/REF(C,4)) AND REF(C,3)=REF(H,3),1,0);

    DTJ:IF((REF(C,1)-C)*100/REF(C,1) =(10-0.01*100/REF(C,1)) AND C=L,1,0);
    DT1:IF((REF(REF(C,1),2)-REF(C,1))*100/REF(REF(C,1),2) =(10-0.01*100/REF(REF(C,1),2)) AND REF(C,1)=REF(L,1),1,0);
    DT2:IF((REF(REF(C,1),2)-REF(C,1))*100/REF(REF(C,1),2) =(10-0.01*100/REF(REF(C,1),2)) AND REF(C,1)=REF(L,1),1,0);
    DT3:IF((REF(REF(C,1),2)-REF(C,1))*100/REF(REF(C,1),2) =(10-0.01*100/REF(REF(C,1),2)) AND REF(C,1)=REF(L,1),1,0);

    HJ:HIGH;
    LJ:LOW;
    OJ:OPEN;
    CJ:CLOSE;

    ZS:REF(CLOSE,1);
    H0:REF(HIGH,1);
    L0:REF(LOW,1);
    O0:REF(OPEN,1);
    C0:REF(CLOSE,1);

    O1:REF(OPEN,1);
    C1:REF(CLOSE,1);
    H1:REF(HIGH,1);
    L1:REF(LOW,1);
    O2:REF(OPEN,2);
    C2:REF(CLOSE,2);
    H2:REF(HIGH,2);
    L2:REF(LOW,2);
    O3:REF(OPEN,3);
    C3:REF(CLOSE,3);
    H3:REF(HIGH,3);
    L3:REF(LOW,3);

    宗MA3:MA(C,3),COLOR00005C;
    红MA5:MA(C,5),COLOR0000FF;
    橙MA7:MA(C,7),COLOR0060FF;
    黄MA13:MA(C,13),COLOR00FFFF;

    2.{小散之家分时主图}
    H0:=REF(HIGH,1);
    L0:=REF(LOW,1);
    O0:=REF(OPEN,1);
    C0:=REF(CLOSE,1);

    OJ:= SS.OJ#DAY
    CJ:= SS.CJ#DAY
    HJ:= SS.HJ#DAY
    LJ:= SS.LJ#DAY

    O1:= SS.O1#DAY
    C1:= SS.C1#DAY
    H1:= SS.H1#DAY
    L1:= SS.L1#DAY

    O2:= SS.O2#DAY
    C2:= SS.C2#DAY
    H2:= SS.H2#DAY
    L2:= SS.L2#DAY

    O3:= SS.O3#DAY
    C3:= SS.C3#DAY
    H3:= SS.H3#DAY
    L3:= SS.L3#DAY

    ZTJ:= SS.ZTJ#DAY
    ZT1:= SS.ZT1#DAY
    ZT2:= SS.ZT2#DAY
    ZT3:= SS.ZT3#DAY

    DTJ:= SS.DTJ#DAY
    DT1:= SS.DT1#DAY
    DT2:= SS.DT2#DAY
    DT3:= SS.DT3#DAY

    {均线间彩带}
    EEF3:=IF(BETWEEN(TIME,093100,150000), SS.宗MA3#DAY ,DRAWNULL);
    EEF5:=IF(BETWEEN(TIME,093100,150000), SS.红MA5#DAY ,DRAWNULL);
    EEF7:=IF(BETWEEN(TIME,093100,150000), SS.橙MA7#DAY ,DRAWNULL);
    EEF13:=IF(BETWEEN(TIME,093100,150000), SS.黄MA13#DAY ,DRAWNULL);
    ZGD:=(HJ+H1+H2+H3)/4;

    DRAWBAND(EEF3,RGB(40,40,250),EEF13,RGB(40,40,250));
    DRAWBAND(EEF5,RGB(40,40,250),EEF13,RGB(40,40,250));
    DRAWBAND(EEF7,RGB(40,40,250),EEF13,RGB(40,40,250));

    {彩色框}
    DRAWTEXT_FIX(1,0.05,0.26,0,'跌停K线白色'),COLORFFFFFF;
    DRAWTEXT_FIX(1,0.13,0.26,0,'涨停K线粉色'),COLORFF00FF;

    DRAWRECTREL(230,250,340,330,RGB(0,180,100));
    DRAWTEXT_FIX(1,0.235,0.26,0,STRCAT(STRCAT('宗色3日线',CON2STR(EEF3,2)),'元')),COLOR000000;
    DRAWRECTREL(355,250,465,330,RGB(0,180,100));
    DRAWTEXT_FIX(1,0.360,0.26,0,STRCAT(STRCAT('红色5日线',CON2STR(EEF5,2)),'元')),COLOR000000;
    DRAWRECTREL(480,250,590,330,RGB(0,180,100));
    DRAWTEXT_FIX(1,0.485,0.26,0,STRCAT(STRCAT('橙色7日线',CON2STR(EEF7,2)),'元')),COLOR000000;
    DRAWRECTREL(605,250,725,330,RGB(0,180,100));
    DRAWTEXT_FIX(1,0.610,0.26,0,STRCAT(STRCAT('黄色13日线',CON2STR(EEF13,2)),'元')),COLOR000000;
    DRAWRECTREL(740,250,860,330,RGB(150,10,200));
    DRAWTEXT_FIX(1,0.745,0.26,0,STRCAT(STRCAT('绿色昨最低',CON2STR( SS.L0#DAY ,2)),'元')),COLOR000000;
    DRAWRECTREL(865,250,985,330,RGB(150,10,200));
    DRAWTEXT_FIX(1,0.870,0.26,0,STRCAT(STRCAT('绿色昨最高',CON2STR( SS.H0#DAY ,2)),'元')),COLOR000000;

    回调昨日:=C = SS.L0#DAY
    超昨低点:=CROSS(回调昨日,0.01);
    昨低点: SS.L0#DAY ,COLOR00FF00;
    昨高点: SS.H0#DAY ,COLOR00FF00;

    E14:=IF(BETWEEN(TIME,094500,094500),OJ,DRAWNULL);
    E24:=IF(BETWEEN(TIME,094500,094500),CJ,DRAWNULL);
    E1:=IF(BETWEEN(TIME,094000,094000),O1,DRAWNULL);
    E2:=IF(BETWEEN(TIME,094000,094000),C1,DRAWNULL);
    E12:=IF(BETWEEN(TIME,093600,093600),O2,DRAWNULL);
    E22:=IF(BETWEEN(TIME,093600,093600),C2,DRAWNULL);
    E13:=IF(BETWEEN(TIME,093200,093200),O3,DRAWNULL);
    E23:=IF(BETWEEN(TIME,093200,0932000),C3,DRAWNULL);

    {均线支撑}
    EE3:IF(BETWEEN(TIME,93100,200000), SS.宗MA3#DAY ,DRAWNULL),COLOR0052A3,LINETHICK4;
    EE5:IF(BETWEEN(TIME,93100,200000), SS.红MA5#DAY ,DRAWNULL),COLOR0000FF,LINETHICK4;
    EE7:IF(BETWEEN(TIME,93100,200000), SS.橙MA7#DAY ,DRAWNULL),COLOR0060FF,LINETHICK4;
    EE13:IF(BETWEEN(TIME,93100,200000), SS.黄MA13#DAY ,DRAWNULL),COLOR00FFFF,LINETHICK4;

    {K线最高与最低}
    STICKLINE(TIME=093800 AND CJ OJ,HJ,LJ,0,0),COLOR0000CC;
    STICKLINE(TIME=093800 AND CJ OJ,OJ,CJ,8,0),COLOR0000CC;
    STICKLINE(TIME=093800 AND ZTJ,HJ,LJ,0,0),COLORFF00FF;
    STICKLINE(TIME=093800 AND ZTJ,OJ,CJ,8,0),COLORFF00FF;
    STICKLINE(TIME=093800 AND CJ OJ,HJ,LJ,0,0),COLORFFFF54;
    STICKLINE(TIME=093800 AND CJ OJ,OJ,CJ,8,0),COLORFFFF54;
    STICKLINE(TIME=093800 AND DTJ,OJ,CJ,8,0),COLORFFFFFF;
    STICKLINE(TIME=093800 AND DTJ,HJ,LJ,0,0),COLORFFFFFF;
    STICKLINE(TIME=093800 AND CJ=OJ,HJ,LJ,0,0),COLORWHITE;
    STICKLINE(TIME=093800 AND CJ=OJ,OJ+0.005,CJ,8,0),COLORWHITE;
    DRAWBAND(IF(CJ OJ,E24,DRAWNULL),RGB(204,0,0),E14,RGB(204,0,0));
    DRAWBAND(IF(CJ OJ,E24,DRAWNULL),RGB(84,255,255),E14,RGB(84,255,255));
    DRAWBAND(IF(CJ=OJ,E24,DRAWNULL),RGB(255,255,255),E14,RGB(255,255,255));
    {昨前天最高与最低}
    STICKLINE(TIME=093600 AND C1 O1,H1,L1,0,0),COLOR0000CC;
    STICKLINE(TIME=093600 AND C1 O1,C1,O1,8,0),COLOR0000CC;
    STICKLINE(TIME=093600 AND ZT1,H1,L1,0,0),COLORFF00FF;
    STICKLINE(TIME=093600 AND ZT1,O1,C1,8,0),COLORFF00FF;
    STICKLINE(TIME=093600 AND C1 O1,H1,L1,0,0),COLORFFFF54;
    STICKLINE(TIME=093600 AND C1 O1,C1,O1,8,0),COLORFFFF54;
    STICKLINE(TIME=093800 AND DT1,O1,C1,8,0),COLORFFFFFF;
    STICKLINE(TIME=093800 AND DT1,H1,L1,0,0),COLORFFFFFF;
    STICKLINE(TIME=093600 AND C1=O1,H1,L1,0,0),COLORWHITE;
    STICKLINE(TIME=093600 AND C1=O1,C1+0.005,O1,8,0),COLORWHITE;
    DRAWBAND(IF(C1 O1,E2,DRAWNULL),RGB(204,0,0),E1,RGB(204,0,0));
    DRAWBAND(IF(C1 O1,E2,DRAWNULL),RGB(84,255,255),E1,RGB(84,255,255));
    DRAWBAND(IF(C1=O1,E2,DRAWNULL),RGB(255,255,255),E1,RGB(255,255,255));
    {前天最高与最低}
    STICKLINE(TIME=093400 AND C2 O2,H2,L2,0,0),COLOR0000CC;
    STICKLINE(TIME=093400 AND C2 O2,C2,O2,8,0),COLOR0000CC;
    STICKLINE(TIME=093400 AND ZT2,H2,L2,0,0),COLORFF00FF;
    STICKLINE(TIME=093400 AND ZT2,O2,C2,8,0),COLORFF00FF;
    STICKLINE(TIME=093400 AND C2 O2,H2,L2,0,0),COLORFFFF54;
    STICKLINE(TIME=093400 AND C2 O2,C2,O2,8,0),COLORFFFF54;
    STICKLINE(TIME=093800 AND DT2,O2,C2,8,0),COLORFFFFFF;
    STICKLINE(TIME=093800 AND DT2,H2,L2,0,0),COLORFFFFFF;
    STICKLINE(TIME=093400 AND C2=O2,H2,L2,0,0),COLORWHITE;
    STICKLINE(TIME=093400 AND C2=O2,C2+0.005,O2,8,0),COLORWHITE;
    DRAWBAND(IF(C2 O2,E22,DRAWNULL),RGB(204,0,0),E12,RGB(204,0,0));
    DRAWBAND(IF(C2 O2,E22,DRAWNULL),RGB(84,255,255),E12,RGB(84,255,255));
    DRAWBAND(IF(C2=O2,E22,DRAWNULL),RGB(255,255,255),E12,RGB(255,255,255));
    {大前天最高与最低}
    STICKLINE(TIME=093200 AND C3 O3,H3,L3,0,0),COLOR0000CC;
    STICKLINE(TIME=093200 AND C3 O3,C3,O3,8,0),COLOR0000CC;
    STICKLINE(TIME=093200 AND ZT3,H3,L3,0,0),COLORFF00FF;
    STICKLINE(TIME=093200 AND ZT3,O3,C3,8,0),COLORFF00FF;
    STICKLINE(TIME=093200 AND C3 O3,H3,L3,0,0),COLORFFFF54;
    STICKLINE(TIME=093200 AND C3 O3,C3,O3,8,0),COLORFFFF54;
    STICKLINE(TIME=093800 AND DT3,O3,C3,8,0),COLORFFFFFF;
    STICKLINE(TIME=093800 AND DT3,H3,L3,0,0),COLORFFFFFF;
    STICKLINE(TIME=093200 AND C3=O3,H3,L3,0,0),COLORWHITE;
    STICKLINE(TIME=093200 AND C3=O3,C3+0.005,O3,8,0),COLORWHITE;
    DRAWBAND(IF(C3 O3,E23,DRAWNULL),RGB(204,0,0),E13,RGB(204,0,0));
    DRAWBAND(IF(C3 O3,E23,DRAWNULL),RGB(84,255,255),E13,RGB(84,255,255));
    DRAWBAND(IF(C3=O3,E23,DRAWNULL),RGB(255,255,255),E13,RGB(255,255,255));
    {时间窗}
    HA:=MAX(DYNAINFO(3),DYNAINFO(5));
    LA:=MIN(DYNAINFO(3),DYNAINFO(6));
    PA:=HA-LA;
    阻力:=LA+PA*7/8,COLOR00DD00;
    支撑:=LA+PA*0.5/8,COLOR00DD00;
    STICKLINE(超昨低点, SS.L0#DAY *0.995, SS.L0#DAY *1.005,0,0),COLOR00FF00;
    {DRAWICON(超昨低点,阻力*0.997,2);}
    DRAWTEXT(超昨低点, SS.L0#DAY *1.01,'昨'),COLOR00FF00;
    DRAWTEXT(超昨低点, SS.L0#DAY *1.006,'低'),COLOR00FF00;

    时间:=TIME=100100;
    N:=BARSLAST(时间);
    CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N)));
    CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N)));
    A10点线:STICKLINE(时间=1,CS1,CS2,-1,0),COLORGREEN;
    均价:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;
    DRAWTEXT(A10点线,阻力,'10:00'),COLORRED;

    时间R:=TIME=103100;
    NR:=BARSLAST(时间R);
    CS1R:=CONST(IF(NR,HHV(H,0),REF(HHV(H,0),NR)));
    CS2R:=CONST(IF(NR,LLV(L,0),REF(LLV(L,0),NR)));
    A10点30线:STICKLINE(时间R=1,CS1R,CS2R,-1,0),COLORGREEN;
    均价R:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;
    DRAWTEXT(A10点30线,阻力,'10:30'),COLORRED;

    时间T:=TIME=110100;
    NT:=BARSLAST(时间T);
    CS1T:=CONST(IF(NT,HHV(H,0),REF(HHV(H,0),NT)));
    CS2T:=CONST(IF(NT,LLV(L,0),REF(LLV(L,0),NT)));
    A11点线:STICKLINE(时间T=1,CS1T,CS2T,-1,0),COLORGREEN;
    均价T:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;
    DRAWTEXT(A11点线,阻力,'11:00'),COLORRED;

    时间T1:=TIME=130100;
    NT1:=BARSLAST(时间T1);
    CS1T1:=CONST(IF(NT1,HHV(H,0),REF(HHV(H,0),NT1)));
    CS2T1:=CONST(IF(NT1,LLV(L,0),REF(LLV(L,0),NT1)));
    A11点30线:STICKLINE(时间T1=1,CS1T1,CS2T1,-1,0),COLORGREEN;
    均价T1:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;
    DRAWTEXT(A11点30线,阻力,'13:00'),COLORRED;

    时间T2:=TIME=133100;
    NT2:=BARSLAST(时间T2);
    CS1T2:=CONST(IF(NT2,HHV(H,0),REF(HHV(H,0),NT2)));
    CS2T2:=CONST(IF(NT2,LLV(L,0),REF(LLV(L,0),NT2)));
    A1点30线:STICKLINE(时间T2=1,CS1T2,CS2T2,-1,0),COLORGREEN;
    均价T2:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;
    DRAWTEXT(A1点30线,阻力,'13:30'),COLORRED;

    时间T3:=TIME=140100;
    NT3:=BARSLAST(时间T3);
    CS1T3:=CONST(IF(NT3,HHV(H,0),REF(HHV(H,0),NT3)));
    CS2T3:=CONST(IF(NT3,LLV(L,0),REF(LLV(L,0),NT3)));
    A2点线:STICKLINE(时间T3=1,CS1T3,CS2T3,-1,0),COLORGREEN;
    均价T3:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;
    DRAWTEXT(A2点线,阻力,'14:00'),COLORRED;

    时间T4:=TIME=143100;
    NT4:=BARSLAST(时间T4);
    CS1T4:=CONST(IF(NT4,HHV(H,0),REF(HHV(H,0),NT4)));
    CS2T4:=CONST(IF(NT4,LLV(L,0),REF(LLV(L,0),NT4)));
    A2点30线:STICKLINE(时间T4=1,CS1T4,CS2T4,-1,0),COLORGREEN;
    均价T4:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;
    DRAWTEXT(A2点30线,阻力,'14:30'),COLORRED;
    {分时线}
    现价A:CLOSE,COLORFFFFFF,LINETHICK2;

    3.{小散之家分时副图}
    现价:CLOSE;
    MA30:=EMA(CLOSE,30),NODRAW;
    强弱:=EMA(CLOSE,900),NODRAW;
    STICKLINE((MA30 强弱),MA30,强弱,1,0),COLOR0000FF;
    STICKLINE((MA30 强弱),MA30,强弱,1,0),COLOR00FF00;
    H1:=MAX(DYNAINFO(3),DYNAINFO(5));
    L1:=MIN(DYNAINFO(3),DYNAINFO(6));
    P1:=H1-L1;
    阻力:L1+P1*7/8,COLOR00DD00;
    支撑:L1+P1*0.5/8,COLOR00DD00;

    低买:IF(CROSS(支撑,CLOSE),支撑*0.99,支撑)COLOR0000FF,LINETHICK1;
    高卖:IF(CROSS(现价,阻力),阻力*1.01,阻力),COLORFF00FF,LINETHICK1;
    DRAWICON(CROSS(现价,引用.ZH#DAY),现价,13);
    RQ:=DATETODAY(DATE)-DATETODAY(REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT))+1;
    JY:=BARSLAST((RQ-REF(RQ,1))!=WEEKDAY-REF(WEEKDAY,1) OR TOTALBARSCOUNT-CURRBARSCOUNT=0)+1;
    MA1:=REF(C,JY);
    MA2:=REF(MA1,JY);
    MA3:=REF(MA2,JY);
    MA4:=REF(MA3,JY);
    MA5:=REF(MA4,JY);
    MA6:=REF(MA5,JY);
    MA7:=REF(MA6,JY);
    MA8:=REF(MA7,JY);
    MA9:=REF(MA8,JY);
    CK:=REFDATE((C+MA1+MA2+MA3+MA4+MA5+MA6+MA7+MA8+MA9)/10,DATE),COLORAC59FF,CIRCLEDOT;
    {DRAWTEXT(ISLASTBAR,CK,' 参考线'),COLOR0000FF;}
    DRAWTEXT(ISLASTBAR,引用.ZH#DAY-0.001,' 昨高'),COLORGREEN;
    DRAWTEXT(ISLASTBAR,引用.ZL#DAY+0.001,' 昨低'),COLORGREEN;
    昨高:引用.ZH#DAY,COLORGREEN;
    昨低:引用.ZL#DAY,COLORGREEN;
    黑线:昨低*0.995,COLOR000000;
    现价A:CLOSE,COLORFFFFFF,LINETHICK2;


    时间:=TIME=100100;
    N:=BARSLAST(时间);
    常数:=CONST(IF(N=0,C,REF(C,N))),COLORGREEN,DOTLINE;
    CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N)));
    CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N)));
    A10点线:STICKLINE(时间=1,CS1,CS2,-1,0),COLORGREEN;
    均价:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;
    DRAWTEXT(A10点线,阻力*1.01,'10:00'),COLORRED;

    时间R:=TIME=103100;
    NR:=BARSLAST(时间R);
    常数R:=CONST(IF(NR=0,C,REF(C,NR))),COLORGREEN,DOTLINE;
    CS1R:=CONST(IF(NR,HHV(H,0),REF(HHV(H,0),NR)));
    CS2R:=CONST(IF(NR,LLV(L,0),REF(LLV(L,0),NR)));
    A10点30线:STICKLINE(时间R=1,CS1R,CS2R,-1,0),COLORGREEN;
    均价R:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;
    DRAWTEXT(A10点30线,阻力*1.01,'10:30'),COLORRED;

    时间T:=TIME=110100;
    NT:=BARSLAST(时间T);
    常数T:=CONST(IF(NT=0,C,REF(C,NT))),COLORGREEN,DOTLINE;
    CS1T:=CONST(IF(NT,HHV(H,0),REF(HHV(H,0),NT)));
    CS2T:=CONST(IF(NT,LLV(L,0),REF(LLV(L,0),NT)));
    A11点线:STICKLINE(时间T=1,CS1T,CS2T,-1,0),COLORGREEN;
    均价T:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;
    DRAWTEXT(A11点线,阻力*1.01,'11:00'),COLORRED;

    时间T1:=TIME=130100;
    NT1:=BARSLAST(时间T1);
    常数T1:=CONST(IF(NT1=0,C,REF(C,NT1))),COLORGREEN,DOTLINE;
    CS1T1:=CONST(IF(NT1,HHV(H,0),REF(HHV(H,0),NT1)));
    CS2T1:=CONST(IF(NT1,LLV(L,0),REF(LLV(L,0),NT1)));
    A11点30线:STICKLINE(时间T1=1,CS1T1,CS2T1,-1,0),COLORGREEN;
    均价T1:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;
    DRAWTEXT(A11点30线,阻力*1.01,'13:00'),COLORRED;

    时间T2:=TIME=133100;
    NT2:=BARSLAST(时间T2);
    常数T2:=CONST(IF(NT2=0,C,REF(C,NT2))),COLORGREEN,DOTLINE;
    CS1T2:=CONST(IF(NT2,HHV(H,0),REF(HHV(H,0),NT2)));
    CS2T2:=CONST(IF(NT2,LLV(L,0),REF(LLV(L,0),NT2)));
    A1点30线:STICKLINE(时间T2=1,CS1T2,CS2T2,-1,0),COLORGREEN;
    均价T2:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;
    DRAWTEXT(A1点30线,阻力*1.01,'13:30'),COLORRED;

    时间T3:=TIME=140100;
    NT3:=BARSLAST(时间T3);
    常数T3:=CONST(IF(NT3=0,C,REF(C,NT3))),COLORGREEN,DOTLINE;
    CS1T3:=CONST(IF(NT3,HHV(H,0),REF(HHV(H,0),NT3)));
    CS2T3:=CONST(IF(NT3,LLV(L,0),REF(LLV(L,0),NT3)));
    A2点线:STICKLINE(时间T3=1,CS1T3,CS2T3,-1,0),COLORGREEN;
    均价T3:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;
    DRAWTEXT(A2点线,阻力*1.01,'14:00'),COLORRED;

    时间T4:=TIME=143100;
    NT4:=BARSLAST(时间T4);
    常数T4:=CONST(IF(NT4=0,C,REF(C,NT4))),COLORGREEN,DOTLINE;
    CS1T4:=CONST(IF(NT4,HHV(H,0),REF(HHV(H,0),NT4)));
    CS2T4:=CONST(IF(NT4,LLV(L,0),REF(LLV(L,0),NT4)));
    A2点30线:STICKLINE(时间T4=1,CS1T4,CS2T4,-1,0),COLORGREEN;
    均价T4:=SUM(V*C,0)/SUM(V,0),COLORYELLOW;
    DRAWTEXT(A2点30线,阻力*1.01,'14:30'),COLORRED;

    今日开盘线:=DYNAINFO(4),COLORMAGENTA;
    今日最高价:=DYNAINFO(5),COLORBLUE;
    今日最低价:=DYNAINFO(6),COLORGREEN;
    今日均价线:=DYNAINFO(11),COLORYELLOW;
    DRAWTEXT(C=DYNAINFO(6) AND DYNAINFO(11) =DYNAINFO(4)*1.01,C*0.99,'买'),COLORRED;
    DRAWTEXT(C=DYNAINFO(5) AND DYNAINFO(11) =DYNAINFO(4)*1.01,C*1.01,'卖'),COLORGREEN;
    DRAWICON(C=DYNAINFO(6) AND DYNAINFO(11) =DYNAINFO(4)*1.01,L*0.995,1);
    DRAWICON(C=DYNAINFO(5) AND DYNAINFO(11) =DYNAINFO(4)*1.01,L*1.005,2);
    阻力*1.018,COLOR000000;
    支撑*0.984,COLOR000000;

    通达信小散之家实盘分时操盘系统-三只分时源码公式

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信小散之家实盘分时操盘系统-三只分时源码公式 加入收藏