平衡:EMA(C,20),CIRCLEDOT,COLORWHITE; 上軌:平衡 + 2*STD(C,20),LINETHICK2,COLORFF00FF; 下軌:平衡 - 2*STD(C,20),LINETHICK2,COLOR00FF00; Y1:=REF(EMA(DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9),3),1); DRAWTEXT(CROSS(CLOSE,Y1),LOW,'[買進(jìn)]'),COLORYELLOW; DRAWTEXT(CROSS(Y1,CLOSE),HIGH*1.05,'[賣出]'),COLORWHITE; VAR1W:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21)))); VAR2W:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21)))); VAR3W:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34)); DRAWTEXT(CROSS(VAR2W,MA(VAR3W,6)),LOW -0.6,'(買)'),COLORFF99FF; DRAWTEXT(CROSS(MA(VAR3W,6),VAR1W),HIGH +0.9,'(賣)'),COLORCCFF13; VAR3P:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0); DRAWTEXT(VAR3P>90,LOW*0.92,'追漲'),COLORFF00FF; SS:=MA((LOW+HIGH+CLOSE)/3,5)>REF(MA((LOW+HIGH+CLOSE)/3,5),1) AND REF(MA((LOW+HIGH+CLOSE)/3,5),1)<REF(MA((LOW+HIGH+CLOSE)/3,5),2); SC:=L<HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND H>HHV(MA((LOW+HIGH+CLOSE)/3,5),13) AND C>REF(C,1) AND C>O; MR:=SC AND COUNT(SS,2); 買:=MR AND NOT(REF(MR,1)),COLORYELLOW; DRAWTEXT(買,L*0.95, '必漲'),COLORRED; 多方:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1) -3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1) -SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1) ,3,1),2,1); DRAWTEXT(CROSS(78.89,多方),H+1.5,'(逃頂)'),COLOR00FF00; A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1),COLOR330066; A2:=(EMA(A1,5)-REF(EMA(A1,5),1))/REF(EMA(A1,5),1)*1; A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*1; DRAWTEXT(CROSS(A1,EMA(A1,5))AND EMA(A1,5)<A5,L*0.98,'(黑馬)'),COLORYELLOW; VAR1:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*1; VAR2:=SMA(VAR1,3,1)*100; 趨勢(shì)線:=SMA((SMA(VAR2,3,1)*VAR1),3,1)*1; VAR9:=CROSS(趨勢(shì)線,(SMA(VAR2,3,1)*VAR1)) AND (SMA(VAR2,3,1)*VAR1)>8; DRAWTEXT(VAR9 AND COUNT(VAR9,1)=1,H+0.6,'逃'), LINETHICK2,COLORYELLOW;