N1:=16; N2:=26; N3:=9; 價DIF:EMA(C,N1)-EMA(C,N2); 價DEA:EMA(價DIF,N3); 價MACD:(價DIF-價DEA)*2,COLORSTICK; 換手率:=V/CAPITAL*100; 量DIF:EMA(換手率,N1)-EMA(換手率,N2),COLORRED; 量DEA:EMA(量DIF,N3),COLORFF9933; 量MACD:(量DIF-量DEA)*2,LINETHICK0; STICKLINE(量MACD>0,0,量MACD,0.3,-1),COLORMAGENTA,LINETHICK2; STICKLINE(量MACD<=0,0,量MACD,0.3,-1),COLORGREEN,LINETHICK2; STICKLINE(價DIF>價DEA,價DIF,價DEA,0.5,-1),COLORF580F5; STICKLINE(價DIF<=價DEA,價DIF,價DEA,0.5,-1),COLORCCDD33; STICKLINE(量DIF>量DEA,量DIF,量DEA,0.5,-1),COLORYELLOW; STICKLINE(量DIF<=量DEA,量DIF,量DEA,0.5,-1),COLORGRAY; |
|