最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信轨内操盘主图源码 说明

    正文概述    2024-04-14 15:02:10  

    轨内操盘主图(声明:轨道为未来函数,一般不影响操作,便于观察趋势。如果不想用,删除源码前三行即可。)
    说明见主图1.绿块 黄块可介入 尽量做上升轨道。

    VAR119:=(C+H+O+L)/4;
    卖出:XMA(VAR119,N)*(1+P1/1000),COLORRED,LINETHICK2;
    买入:XMA(VAR119,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;


    N:=10;
    V2:=REF(CLOSE,1);
    V3:=((SMA(MAX(CLOSE-V2,0),7,1))/(SMA(ABS(CLOSE-V2),7,1)))*(100);
    VAR11:=MA(((100)*(CLOSE-LLV(CLOSE,34)))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
    VAR22:=(2)*(ABS(VAR11));
    VAR33:=100-(3)*(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1))+(2)*(SMA(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),15,1));
    VAR44:=100-(3)*(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1))+(2)*(SMA(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),15,1));
    VAR27:=(VAR33REF(VOL,1)) AND (CLOSE>REF(CLOSE,1));
    黑马:=VAR27 AND (COUNT(VAR27,30)=1),COLORFFFFFF;
    DRAWTEXT(黑马,(LOW)*(0.999),'黑马'),COLORYELLOW;

    DRAWKLINE(H,O,L,C);
    MA5:=MA(C,5);MA18:=MA(CLOSE,18);MA13:=MA(C,13);
    A:=(3*C+L+O+H)/6;
    VAR1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
    14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
    +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
    MTM:=C-REF(C,1);CB:=EMA(VAR1,13);
    DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
    卖:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);
    DRAWTEXT(FILTER(卖=1,1),HIGH*1.03,'卖出'),COLORGREEN;
    买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));
    加仓:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
    DRAWTEXT(FILTER((CROSS(加仓,0) OR CROSS(CLOSE,CB)) AND 买=1,3),LOW-0.05,'↖'),COLORWHITE;
    跟:=MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18);
    DRAWTEXT(跟,LOW*0.999,'↖ 跟'),COLORWHITE;

    A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
    A4:=SMA(A3,3,1);
    A5:=SMA(A4,3,1);
    A6:=3*A4-2*A5;
    A7:=C-REF(C,1);

    A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
    买1:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));

    STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
    DRAWTEXT(CROSS(85,V3),HIGH*1.06,'风险'),COLORYELLOW;

    VAR10:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
    3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
    VAR20:=LLV(LOW,27);
    VAR30:=HHV(HIGH,34);
    VAR40:=EMA((CLOSE-VAR20)/(VAR30-VAR20)*4,4)*25;
    VAR50:=REF(C,2)*0.865;
    VAR60:=REF(C,13)*0.772;
    DSY:=100*VOL/CAPITAL;
    注意买:=IF((VAR40<10),80,100) ,COLOR00CCFF,LINETHICK1;
    RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    J:=3*K-2*D;
    超跌:=IF(J<0,10,0),COLORFFFF00;
    BDDD:=LLV(J,2)=LLV(J,8);
    买入2:=IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND J<20,30,0);
    买2:=IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND BETWEEN(J,20,60),1,0);
    BDGD:=HHV(J,2)=HHV(J,8) AND J>80;
    DRAWTEXT(买2 AND 注意买=100,LOW,'◆'),COLORGREEN;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信轨内操盘主图源码 说明 加入收藏