支撐壓力
Var1:=IF(DATE>=10201201,0,1); Var2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55); Var3:=EMA(CLOSE,3); Var4:=(2*CLOSE+LOW+HIGH)/4*Var1; Var5:=Var2-Var3; 風險線:EMA(Var4,45)*1.15; 必賣線:EMA(Var4,55)*1.3; 底線:EMA(Var4,40)*0.85; 鐵底線:EMA(Var4,88)*0.7,colorred; 成本線:EMA(Var4,55),colorgreen; 持倉:STICKLINE(Var5>=0,Var3,Var2,0.5,0),linethick2; 減倉:STICKLINE(Var5<0,Var3,Var2,0.5,0),linethick2,coloryellow; 價值中樞: (成本線+底線)/2,colorffff00; 波段確定 q1:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100; q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100; q3:=SMA(q2, 9, 1); q4:=SMA(q3, 3, 1); aa:3*q3-2*q4, ,color1010FF; q5:=aa>1*REF(aa, 1); q6:=LLVBARS(LOW, 50); q7:=SUM(VOL, q6); q8:=HHVBARS(HIGH, 50); q9:=SUM(VOL, q8); q10:=(CLOSE-REF(OPEN, q8))/REF(OPEN, q8)*100; q11:=HHV(aa,5); A1:EMA(q3, 3) , COLORFFDDCC; A2:EMA(a1, 3) , COLORFFBBCC; A3:EMA(a2, 3) , COLORFF99CC; A4:EMA(a3, 3) , COLORFF55CC; A5:EMA(a4, 3) , COLORFF33CC; A6:EMA(a5, 3) , COLORFF11CC; a:EMA(a4, 3), , COLORFF00CC; DRAWTEXT(CROSS(aa, 20) AND q10<-13,10,'*大底'), color00ff00; DRAWTEXT(CROSS(aa, a5) AND ref(aa,1)<34,ref(aa,1),'小'), color00ff00; DRAWTEXT(CROSS(A1, aa) AND ref(aa,1)>80, ref(aa,3), '*頂'), COLOR00ff00; DRAWTEXT(CROSS(aa, A1) AND q5 AND a1<20 AND q1>9 OR a1>1*REF(a1, 1) AND q1>4 AND a1<60, 30, '拉'), COLORFFFFCC; 頂底極品 副圖 實價線:(C-LLV(L,60))/(HHV(H,60)-LLV(L,60))*100,COLORWHITE; A1:=(2*C+H+L)/4; A2:=LLV(L,34); A3:=HHV(H,34); A4:=SMA((HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100-70,9,1)+100; A5:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100; A6:=SMA(SMA(A5,3,1),3,1)+100; A7:=A6-A4; 底部區(qū)域:IF(A7>60,A7-60,0),COLORYELLOW; 持有:STICKLINE(REF(底部區(qū)域,1)<底部區(qū)域,底部區(qū)域,REF(底部區(qū)域,1),5,0),COLORF00FF0; 出貨:STICKLINE(REF(底部區(qū)域,1)>底部區(qū)域,底部區(qū)域,REF(底部區(qū)域,1),5,0),COLOR00FF00; 中線持有:EMA((A1-A2)/(A3-A2)*100,13),COLORBLUE; 中線出貨:EMA(0.667*REF(中線持有,1)+0.333*中線持有,2),COLORRED; STICKLINE(中線持有-中線出貨>0,中線持有,中線出貨,8,0),COLORBLUE; STICKLINE(中線持有-中線出貨<0,中線持有,中線出貨,8,0),COLORRED; |
|