首頁>Club>
7
回覆列表
  • 1 # 量化先鋒0501

    AEXP12:EXPMA(CLOSE,12)COLORBLUE,LINETHICK1;


    AEXP21:EXPMA(CLOSE,21)COLORGREEN,LINETHICK2;


    AEXP50:EXPMA(CLOSE,50)COLORGREEN,LINETHICK2;


    IF(AEXP12>(REFV(AEXP12,1)),AEXP12,DRAWNULL),COLORRED,LINETHICK1;


    IF(AEXP21>(REFV(AEXP21,1)),AEXP21,DRAWNULL),COLORMAGENTA,LINETHICK2;


    A1:=EMA(C,14),COLORA2A200,LINETHICK1;


    A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;


    DRAWTEXT_FIX(1,0,0.07,0,'【所屬板塊】'),COLORWHITE;


    DRAWTEXT_FIX(1,0.07,0.07,0,DYBLOCK),COLOR0080FF; {地域}


    DRAWTEXT_FIX(1,0.122,0.07,0,GNBLOCK),COLORCFB53B; {概念}


    DRAWTEXT_FIX(1,0,0.19,0,'【蕕利比例】'),COLORWHITE;


    DRAWNUMBER_FIX(1,0.09,0.19,0,CONST(WINNER(C )*100)),COLORYELLOW;


    DRAWTEXT_FIX(1,0.073,0,0,HYBLOCK),COLORRED; {行業}


    {DRAWTEXT_FIX(1,0.124,0,0,FGBLOCK),COLORYELLOW;} {風格}


    SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);


    DRAWTEXT_FIX(1,0,0.31,0,'【量能飽和度】')COLORWHITE;


    DRAWNUMBER_FIX(1,0.1,0.31,0,CONST(SAT)),COLORYELLOW;


    突破:REF(EMA(C,14),1),NODRAW;


    距離:(C-突破)/突破*100,NODRAW;


    出擊:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),COLORB000B0,LINETHICK1;


    休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),COLORFFFF00,LINETHICK1;


    漲幅:IF(A1X>=0,(C-出擊)/出擊*100,DRAWNULL)NODRAW;


    跌幅:IF(A1X<0,(C-休假)/休假*100,DRAWNULL)NODRAW;


    TT:=240/FROMOPEN;比:=TT;AY2:=EMA(CLOSE,12)-EMA(CLOSE,26);


    AZ2:=EMA(AY2,9);LT2:=(AY2-AZ2);


    L211:=IF(LT2,LLV(L,21),DRAWNULL),COLOR217158,CIRCLEDOT;


    ZGD:=HHV(H,80)*0.99;ZGD2:=CONST(ZGD);ZDD:=LLV(L211,80);ZDD2:=CONST(ZDD);


    YYA4:=MA(CLOSE,20);YYA5:=(CLOSE > MA(CLOSE,5));YYA6:=(MA(CLOSE,5) > MA(CLOSE,10));


    YYA7:=(CLOSE > MA(CLOSE,10));YYA8:=(MA(CLOSE,5) > MA(CLOSE,20));


    YYA9:=(CLOSE > MA(CLOSE,20));YYA10:=REF(YYA4,1);YYA11:=(YYA4 > YYA10);


    YYAVX:=(((((IF(YYA5,10,(0 - 10)) + IF(YYA6,10,(0 - 10))) + IF(YYA7,10,(0 - 10))) + IF(YYA8,10,(0 - 10))) + IF(YYA9,10,(0 - 10))) + IF(YYA11,10,(0 - 10)));


    DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);


    YYV1:=MA(VOL,5);YYV2:=MA(VOL,10);J1:=CONST(IF( YYAVX > 0,200,100));


    J2:=CONST(IF( YYAVX > 0,00,100));J3:=CONST(IF( YYAVX > 0,100,100));


    ZGD3:=ZGD2;ZDD3:=ZDD2;ZGD4:=ZGD2;


    STICKLINE(CROSS(A1X,0),C,O,2,0),COLOR00FFFF;


    STICKLINE(CROSS(0,A1X),C,O,2,0),COLOR606000;


    情況1:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0)),NODRAW;


    情況2:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));


    情況3:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 > YYV2)) AND (DSLX < DSLX1)),1,0));


    情況4:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 <= YYV2)) AND (DSLX < DSLX1)),1,0));


    情況5:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));


    情況6:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));


    情況7:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));


    情況8:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));


    情況9:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));


    情況10:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));


    情況11:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0)),NODRAW;


    情況12:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));


    情況13:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));


    情況14:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));


    情況15:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));


    情況16:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));


    大盤1:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 >= YYV2)),1,0));


    大盤2:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 < YYV2)),1,0));


    大盤3:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 >= YYV2)),1,0));


    大盤4:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 < YYV2)),1,0));


    大盤5:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)),1,0));


    大盤6:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)),1,0));


    大盤7:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)),1,0));


    大盤8:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)),1,0));


    MFI:=(HIGH-LOW)*1000000/(VOL*比);


    綠燈:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);


    MMM1:=CONST(綠燈);


    衰退:=MFI<REF(MFI,1)AND VOL*比<REF(VOL,1);


    MMM2:=CONST(衰退);


    偽裝:=MFI>=REF(MFI,1)AND VOL*比<REF(VOL,1);


    MMM3:=CONST(偽裝);


    蟄伏:=MFI<REF(MFI,1)AND VOL*比>=REF(VOL,1);


    MMM4:=CONST(蟄伏);


    WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);


    V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);


    V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);


    買盤1:=DYNAINFO(23)*比;賣盤1:=DYNAINFO(22)*比;


    買盤2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));


    賣盤2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));


    買盤:=IF(ISLASTBAR AND PERIOD=5 AND C<300,買盤1,買盤2);


    賣盤:=IF(ISLASTBAR AND PERIOD=5 AND C<300,賣盤1,賣盤2);


    {買賣差:=買盤-賣盤;}


    量大:=(賣盤+買盤)/REF(VOL,1)>2;


    MMM5:=CONST(量大);


    量縮:=REF(VOL,1)/(賣盤+買盤)>1.5;


    MMM6:=CONST(量縮);


    賣量大:=(賣盤-買盤)/買盤>0.4;


    MMM7:=CONST(賣量大);


    買量大:=(買盤-賣盤)/賣盤>0.4;


    MMM8:=CONST(買量大);


    TS1:=IF(情況1=1,0.06+0.06,0.06); TS2:=IF(情況2=1,TS1+0.06,TS1);


    TS3:=IF(情況3=1,TS2+0.06,TS2); TS4:=IF(情況4=1,TS3+0.06,TS3);


    TS5:=IF(情況5=1,TS4+0.06,TS4); TS6:=IF(情況6=1,TS5+0.06,TS5);


    TS7:=IF(情況7=1,TS6+0.06,TS6); TS8:=IF(情況8=1,TS7+0.06,TS7);


    TS9:=IF(情況9=1,TS8+0.06,TS8); TS10:=IF(情況10=1,TS9+0.06,TS9);


    TS11:=IF(情況11=1,TS10+0.06,TS10); TS12:=IF(情況12=1,TS11+0.06,TS11);


    TS13:=IF(情況13=1,TS12+0.06,TS12); TS14:=IF(情況14=1,TS13+0.06,TS13);


    TS15:=IF(情況15=1,TS14+0.06,TS14); TS16:=IF(情況16=1,TS15+0.06,TS15);


    TS17:=IF(大盤1=1,TS16+0.06,TS16); TS18:=IF(大盤2=1,TS17+0.06,TS17);


    TS19:=IF(大盤3=1,TS18+0.06,TS18); TS20:=IF(大盤4=1,TS19+0.06,TS19);


    TS21:=IF(大盤5=1,TS20+0.06,TS20); TS22:=IF(大盤6=1,TS21+0.06,TS21);


    TS23:=IF(大盤7=1,TS22+0.06,TS22); TS24:=IF(大盤8=1,TS23+0.06,TS23);


    TS25:=IF(MMM1=1,TS24+0.06,TS24);


    TS26:=IF(MMM2=1,TS25+0.06,TS25);


    TS27:=IF(MMM3=1,TS26+0.06,TS26);


    TS28:=IF(MMM4=1,TS27+0.06,TS27);


    TS29:=IF(MMM5=1,TS28+0.03,TS28);


    TS30:=IF(MMM6=1,TS29+0.03,TS29);


    TS31:=IF(MMM7=1,TS30+0.03,TS30);


    TS32:=IF(MMM8=1,TS31+0.03,TS31);


    DRAWTEXT_FIX(MMM5,0,0.42,0,'★今天比昨天的成交量放大一倍以上。'),COLORGREEN;


    DRAWTEXT_FIX(MMM6,0,0.42,0,'★今天比昨天的成交量縮量一半以上。'),COLORYELLOW;


    DRAWTEXT_FIX(MMM7,0,0.48,0,'☆該股今天賣出量大於買入量40%以上。'),COLORGREEN;


    DRAWTEXT_FIX(MMM8,0,0.48,0,'☆該股今天買入量大於賣出量40%以上。'),COLORYELLOW;

  • 中秋節和大豐收的關聯?
  • 10斤竹筍能曬多少筍乾?