最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信炒股养家指标公式

    正文概述    2024-04-13 17:39:47  

    TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
    MTIME:=MOD(FROMOPEN,TOTAL);
    CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
    Vvol:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
    STICKLINE(CURRBARSCOUNT=1,VVOL,0,-1,-1),COLOR00C0C0;
    JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
    主买:=QJ0*IF(C主卖:=QJ0*IF(CV0:=VOL;
    大单差:(主买-主卖),LINETHICK;
    STICKLINE(大单差>=0,0,V0,3,0),COLOR2222CC;
    STICKLINE(大单差>=0,0,V0,2.5,0),COLOR3333DD;
    STICKLINE(大单差>=0,0,V0,2,0),COLOR4444DD;
    STICKLINE(大单差>=0,0,V0,1.5,0),COLOR5555EE;
    STICKLINE(大单差>=0,0,V0,1,0),COLOR6666EE;
    STICKLINE(大单差>=0,0,V0,0.5,0),COLOR9977EE;
    STICKLINE(大单差<0,0,V0,3,0),COLORFF7700;
    STICKLINE(大单差<0,0,V0,2.5,0),COLORFF8811;
    STICKLINE(大单差<0,0,V0,2,0),COLORFFAA22;
    STICKLINE(大单差<0,0,V0,1.5,0),COLORFFBB33;
    STICKLINE(大单差<0,0,V0,1,0),COLORFFDD44;
    STICKLINE(大单差<0,0,V0,0.5,0),COLORFFFF55;
    MA5:MA(VOL,5)*2;
    MA60:MA(VOL,60)*2;
    AA:=SUMBARS(VOL,CAPITAL);
    地量:IF(CAPITAL=0,AMOUNT=LLV(AMOUNT,34),VOLSTICKLINE(地量,VOL,0,1,0),COLORYELLOW;
    天量:IF(CAPITAL=0,AMOUNT=HHV(AMOUNT,34),VOL>MA(VOL,AA)*3) ,LINETHICK0,COLORFF0000;
    STICKLINE(天量,VOL,0,1,0),COLORFF0000;
    STICKLINE(大单差>0,0,大单差,2,0),COLOR102088;
    STICKLINE(大单差>0,0,大单差,1.5,0),COLOR1020BB;
    STICKLINE(大单差>0,0,大单差,1,0),COLOR1020DD;
    STICKLINE(大单差>0,0,大单差,0.5,0),COLOR1020EE;
    STICKLINE(大单差<0,0,大单差,2,0),COLOR007700;
    STICKLINE(大单差<0,0,大单差,1.5,0),COLOR008800;
    STICKLINE(大单差<0,0,大单差,1,0),COLOR00AA00;
    STICKLINE(大单差<0,0,大单差,0.5,0),COLOR00CC00;
    BB:IF(crOSS(0.9,1/VOL*10000>0.01 AND "kdj.J"<0),VOL*5,0) AND 大单差>0,LINETHICK0;
    STICKLINE(BB<0,0,100,1,0),COLORYELLOW,POINTDOT;
    RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
    K:=SMA(RSV,5,1);
    D:=SMA(K,3,1);
    J:=(3*K-2*D);
    M:=EMA(J,3);
    E:=EMA(M,3);
    A1:=BARSLAST(REF(CROSS(M,E),1));
    底背离:=REF(L,A1+1)>L AND M>REF(M,A1+1) AND CROSS(M,E) AND M<20;
    B:底背离,LINETHICK0;
    STICKLINE(B,0,100,1,0),COLOR00CC00;
    X:=LLV(J,2)=LLV(J,8);
    VAR1:=LLV(LOW,10);
    VAR2:=HHV(HIGH,25);
    VAR3:=100*EMA((CLOSE-VAR1)/(VAR2-VAR1),4);
    下注:CROSS(J,REF(J+0.01,1)) AND X AND J<0,LINETHICK0;
    STICKLINE(下注,0,100,1,0),COLORRED,POINTDOT;
    DRAWTEXT(下注,0,'--注★--'),COLORRED;
    S:=EMA((CLOSE-LLV(CLOSE,21))/(HHV(CLOSE,21)-LLV(CLOSE,21)),1);
    Y:=IF(S>0,MA(S,1),0);
    庄:CROSS(Y,REF(Y+0.001,1)) AND J<0,LINETHICK0,COLORFF22AA;
    DRAWTEXT(庄,0,'★买'),COLORFF22AA;
    STICKLINE(庄,0,100,1,0),COLORFF22AA;
    DRAWTEXT(REF(C,BARSLAST(REF(CROSS("macd.DIF","MACD.DEA"),1))+1)>C AND
    REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)
    <"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA")
    >0,MACD.DEA,'★M底'),COLORWHITE;{MACD底背离};
    DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)AND REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)
    >"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF")
    >0,MACD.DEA,'☆M顶'),COLORGREEN;{MACD顶背离};
    STICKLINE(REF(C,BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)>C AND
    REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)
    <"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA")
    >0,0,0.03,6,0),COLOR00FF00;
    DRAWTEXT(REF(C,BARSLAST(REF(CROSS("rsi.RSI1","RSI.RSI2"),1))+1)>C AND
    REF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)
    <"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2")
    >0,MACD.DEA,'◆R底');{RSI底背离};
    DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1))+1)REF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1))+1)>"RSI.RSI1"
    AND CROSS("RSI.RSI2","RSI.RSI1")>0,MACD.DEA,'◇
    R顶');{RSI顶背离};
    {}
    SFSB := SIGNALS_USER(300, 0), NODRAW;
    JMR := SIGNALS_USER(299, 0), NODRAW;
    H1 := IF(MOD(DAY,2) = 1, 100, 99);
    {}
    N369:='养家1: ';
    养家1:=SIGNALS_USER(369, 0);
    X369:=ROUND((ABS(FRACPART(养家1)))*10.0);
    Y369:=IF(ABS(养家1)>10000.0,VAR2STR(养家1/10000.0,2),VAR2STR(养家1,0));
    O369:=VARCAT(N369,IF(X369<5,VARCAT('买 ',Y369),VARCAT('卖 ',Y369)));
    T369:=VARCAT(O369,IF(ABS(养家1)>10000.0, '亿', '万'));
    {DRAWTEXT(ABS(B369)>0,(1-X369/10.0)*H1,T369),COLOR9900CC;}
    {}
    N370:='养家2: ';
    养家2:=SIGNALS_USER(370, 0);
    X370:=ROUND((ABS(FRACPART(养家2)))*10.0);
    Y370:=IF(ABS(养家2)>10000.0,VAR2STR(养家2/10000.0,2),VAR2STR(养家2,0));
    O370:=VARCAT(N370,IF(X370<5,VARCAT('买 ',Y370),VARCAT('卖 ',Y370)));
    T370:=VARCAT(O370,IF(ABS(养家2)>10000.0, '亿', '万'));
    {DRAWTEXT(ABS(B370)>0,(1-X370/10.0)*H1,T370),COLOR9900CC;}
    {}
    N371:='养家3: ';
    养家3:=SIGNALS_USER(371, 0);
    X371:=ROUND((ABS(FRACPART(养家3)))*10.0);
    Y371:=IF(ABS(养家3)>10000.0,VAR2STR(养家3/10000.0,2),VAR2STR(养家3,0));
    O371:=VARCAT(N371,IF(X371<5,VARCAT('买 ',Y371),VARCAT('卖 ',Y371)));
    T371:=VARCAT(O371,IF(ABS(养家3)>10000.0, '亿', '万'));
    {DRAWTEXT(ABS(B371)>0,(1-X371/10.0)*H1,T371),COLOR9900CC;}
    {}
    N373:='养家5: ';
    养家5:=SIGNALS_USER(373, 0);
    X373:=ROUND((ABS(FRACPART(养家5)))*10.0);
    Y373:=IF(ABS(养家5)>10000.0,VAR2STR(养家5/10000.0,2),VAR2STR(养家5,0));
    O373:=VARCAT(N373,IF(X373<5,VARCAT('买 ',Y373),VARCAT('卖 ',Y373)));
    T373:=VARCAT(O373,IF(ABS(养家5)>10000.0, '亿', '万'));
    {DRAWTEXT(ABS(B373)>0,(1-X373/10.0)*H1,T373),COLOR9900CC;}
    {}
    N374:='养家6: ';
    养家6:=SIGNALS_USER(374, 0);
    X374:=ROUND((ABS(FRACPART(养家6)))*10.0);
    Y374:=IF(ABS(养家6)>10000.0,VAR2STR(养家6/10000.0,2),VAR2STR(养家6,0));
    O374:=VARCAT(N374,IF(X374<5,VARCAT('买 ',Y374),VARCAT('卖 ',Y374)));
    T374:=VARCAT(O374,IF(ABS(养家6)>10000.0, '亿', '万'));
    {DRAWTEXT(ABS(B374)>0,(1-X374/10.0)*H1,T374),COLOR9900CC;}
    {}
    N375:='养家7: ';
    养家7:=SIGNALS_USER(375, 0),COLOR00FFFF;
    X375:=ROUND((ABS(FRACPART(养家7)))*10.0);
    Y375:=IF(ABS(养家7)>10000.0,VAR2STR(养家7/10000.0,2),VAR2STR(养家7,0));
    O375:=VARCAT(N375,IF(X375<5,VARCAT('买 ',Y375),VARCAT('卖 ',Y375)));
    T375:=VARCAT(O375,IF(ABS(养家7)>10000.0, '亿', '万'));
    {DRAWTEXT(ABS(B375)>0,(1-X375/10.0)*H1,T375),COLOR9900CC;};
    炒股养家下注:养家1>=1 OR 养家2>=1 OR 养家3>=1 OR 养家5>=1 OR 养家6>=1 OR 养家7>=1,COLOR0000FF;
    DRAWICON(炒股养家下注>0,100,42);
    DRAWTEXT(炒股养家下注,0.93*V,'↖养家下注★★★'),COLORYELLOW;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信炒股养家指标公式 加入收藏