A7:=C-REF(C,1); A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6); 買:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(買=1,5),LOW-0.05,'↖跟莊買進(jìn)'),COLORYELLOW; STICKLINE(買,OPEN,CLOSE,2,0),COLORYELLOW; T:=150; TT:=3; N1:=0; 高1:=REF(HHV(H,T),TT); 低1:=REF(LLV(L,T),TT); H1:=高1-(高1-低1)*0.191; H2:=高1-(高1-低1)*0.382; H3:=高1-(高1-低1)*0.5; H4:=高1-(高1-低1)*0.618; H5:=高1-(高1-低1)*0.809; 頂:REFDATE(高1,DATE),COLORFFFF00; 一:REFDATE(H1,DATE),DOTLINE,COLORYELLOW; 二:REFDATE(H2,DATE),DOTLINE,COLORMAGENTA; 三:REFDATE(H3,DATE),DOTLINE,COLOR00FFFF; 四:REFDATE(H4,DATE),DOTLINE,COLORMAGENTA; 五:REFDATE(H5,DATE),DOTLINE,COLORYELLOW; 低:REFDATE(低1,DATE),COLOR00FF00; {TT3:=(CURRBARSCOUNT=5);} TT4:=(CURRBARSCOUNT=1); {DRAWNUMBER(TT3 AND 頂,頂,頂),COLOR999900;} DRAWTEXT(TT4 AND 頂,頂,'頂'),COLOR208FFF; {DRAWNUMBER(TT3 AND 一,一,一),COLOR999999;} DRAWTEXT(TT4 AND 一,一,'0.809'),COLOR208FFF; {DRAWNUMBER(TT3 AND 二,二,二),COLOR999999;} DRAWTEXT(TT4 AND 二,二,'0.618'),COLOR208FFF; {DRAWNUMBER(TT3 AND 三,三,三),COLOR999999;} DRAWTEXT(TT4 AND 三,三,'0.5'),COLOR208FFF; {DRAWNUMBER(TT3 AND 四,四,四),COLOR999999;} DRAWTEXT(TT4 AND 四,四,'0.382'),COLOR208FFF; {DRAWNUMBER(TT3 AND 五,五,五),COLOR999999;} DRAWTEXT(TT4 AND 五,五,'0.191'),COLOR208FFF; {DRAWNUMBER(TT3 AND 低,低*1.01,低),COLOR999900;} DRAWTEXT(TT4 AND 低,低*1.009,'底'),COLOR208FFF; PMA:MA(C,5),COLORWHITE,LINETHICK2; IF(PMA>REF(PMA,1),PMA,DRAWNULL),COLORRED,LINETHICK2; IF(PMA<REF(PMA,1),PMA,DRAWNULL),COLORGREEN,LINETHICK2; X:=(3*C+L+O+H)/6; 多空線:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6) +13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12) +7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210,COLORFF00FF,LINETHICK2; {用法:黃托底買進(jìn),藍(lán)壓頂賣出。} DD:=多空線<REF(多空線,1); IF(DD,多空線,DRAWNULL),COLOR00FFFF,LINETHICK2; A:=(PMA>多空線); IF(A,多空線,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4; |
|