出軌道} N:=13;P1:=80;P2:=100; VAR2:=CLOSE*VOL; VAR3:=EMA((EXPMA(VAR2,3)/EXPMA(VOL,3)+EXPMA(VAR2,6)/EXPMA(VOL,6)+EXPMA(VAR2,12)/EXPMA(VOL,12)+EXPMA(VAR2,24)/EXPMA(VOL,24))/4,N); VAR4:=EXPMA(CLOSE,9); 上軌:EXPMA(VAR4*1.11,5),COLORGREEN,NODRAW; 下軌:EXPMA(VAR4*0.89,5),COLORMAGENTA,NODRAW; DRAWBAND(MA(CLOSE,10),RGB(100,50,50),上軌,RGB(100,50,50)); DRAWBAND(MA(CLOSE,10),RGB(0,60,100),下軌,RGB(0,60,100)); STICKLINE(MA(C,30)<MA(C,20)AND MA(C,20)<MA(C,10)AND MA(C,10)<MA(C,5),MA(CLOSE,10),下軌,0,4),COLORBLUE; STICKLINE(MA(C,30)<MA(C,20)AND MA(C,20)<MA(C,10)AND MA(C,10)<MA(C,5),下軌*1.01,下軌,4,0),COLORRED,LINETHICK4; STICKLINE(C>MA(CLOSE,10) ,H,L,0,0),COLORRED; STICKLINE(C>MA(CLOSE,10) ,O,C,3,1),COLORRED; STICKLINE(C>MA(CLOSE,10)AND C<=O ,H,L,0,0),COLORGREEN; STICKLINE(C>MA(CLOSE,10)AND C<=O ,O,C,3,1),COLORGREEN; STICKLINE(C<=MA(CLOSE,10) ,H,L,0,0),COLORBROWN; STICKLINE(C<=MA(CLOSE,10) ,O,C,3,1),COLORBROWN; STICKLINE(上軌>LOW AND 上軌<HIGH,上軌,MAX(上軌,MAX(OPEN,CLOSE)),3,0),COLORGREEN; STICKLINE(上軌>MIN(C,O) AND 上軌<MAX(C,O),上軌,MAX(OPEN,CLOSE),3,0),COLORGREEN; STICKLINE(上軌>LOW AND 上軌<HIGH,上軌,HIGH,0,0),COLORGREEN; STICKLINE(上軌<LOW,OPEN,CLOSE,3,0),COLORGREEN; STICKLINE(上軌<LOW,HIGH,LOW,0,0),COLORGREEN; STICKLINE(下軌>LOW AND 下軌<HIGH,下軌,MIN(MIN(OPEN,CLOSE),下軌),3,0),COLORMAGENTA; STICKLINE(下軌>MIN(C,O) AND 下軌<MAX(C,O),下軌,MIN(OPEN,CLOSE),3,0),COLORMAGENTA; STICKLINE(下軌>LOW AND 下軌<HIGH,下軌,LOW,0,0),COLORMAGENTA; STICKLINE(下軌>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA; STICKLINE(下軌>HIGH,HIGH,LOW,0,0),COLORMAGENTA;
{趨勢線} 買線:=EMA(C,2); 賣線:=EMA(SLOPE(C,26)*15+C,45); BU:=CROSS(買線,賣線); 趨勢線:MA(CLOSE,10),COLORYELLOW,LINETHICK2; IF(趨勢線<REF(趨勢線,1),趨勢線,DRAWNULL),COLORGREEN,LINETHICK2; IF(趨勢線>REF(趨勢線,1),趨勢線,DRAWNULL),COLORRED,LINETHICK2; SEL:=CROSS(賣線,買線); JC:=(REF(C,3)+REF(C,5)+REF(C,7)+REF(C,8)+REF(C,13)+REF(C,21))/6; 參考價:=SMA(JC,5,1),COLORCYAN; 價:=IF(C>=參考價,參考價,參考價*0.98 ), CIRCLEDOT,COLOR0000FF; 十日乖離:(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100,COLORYELLOW,NODRAW; STICKLINE(十日乖離>30,MA(CLOSE,10)*1.3,MA(CLOSE,10)*1.305,8,0),COLORYELLOW;
|