線A1:=(MA(CLOSE,5)+MA(CLOSE,10))/2;
線A2:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20))/3;
線A3:=(MA(CLOSE,40)+MA(CLOSE,10)+MA(CLOSE,30))/3;
線A4:=(MA(CLOSE,30)+MA(CLOSE,40)+MA(CLOSE,70))/3;
STICKLINE(線A1>線A4,線A1,線A4,0.1,1),COLORFF0080;
STICKLINE(線A1<線A4,線A1,線A4,0.1,1),COLOR00FF00;
ma5:MA(CLOSE,5),LINETHICK1,DOTLINE,coloryellow;
STICKLINE(C<O OR (C=O AND C<=REF(C,1)),H,L,0.1,0),COLORFFEEAF;
STICKLINE(C<O OR (C=O AND C<=REF(C,1)),O,C,4,0),COLORFFEEAF;
DRAWICON(CROSS(線A1,線A4),線A1,1);
線1:IF(線A1<線A3,線A1,線A3),COLOR00FF00;
IF(線A1<線A3,線A3,線A1),COLORRED;
線2:IF(線A2<線A3,線A2,線A3),COLOR00FF00;
IF(線A2<線A3,線A3,線A2),COLORRED;
線3:IF(線A3<線A1,線A3,線A3),COLOR00FF00,LINETHICK2;
IF(線A1<線A3,線A3,線A3),COLORRED,LINETHICK2;
STICKLINE(BARSTATUS=2 and c>=ref(c,1),c,DYNAINFO(54) ,7.5 ,1 ),DOTLINE,Color00FF00;
STICKLINE(BARSTATUS=2 and c<ref(c,1),c,DYNAINFO(55) ,7.5 ,1 ),DOTLINE,colorcyan;
漲停:=NUMTOSTRN(DYNAINFO(54),2);
跌停:=NUMTOSTRN(DYNAINFO(55),2);
DRAWTEXT( BARSTATUS=2 and c>=ref(c,1),DYNAINFO(54) ,'漲停價:'+漲停),Color00FF00;
DRAWTEXT( BARSTATUS=2 and c<ref(c,1),DYNAINFO(55)*1.009 ,'跌停價:'+跌停),Color00ffff;
|