彩色柱体
VAR1:=MA(CLOSE,4); VAR2:=MA(CLOSE,10); VAR3:=MA(CLOSE,16); VAR4:=MA(CLOSE,22); VARA:=MA(CLOSE,28); VAR5:=(VAR1+VAR2+VAR3+VAR4+VARA)/5; VAR6:=(VAR5-REF(VAR5,6))/REF(VAR5,6)*2500; VAR7:=(VAR5-REF(VAR5,6))/REF(VAR5,6)*2500; VAR8:=EMA(VAR6,3); STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 AND VAR6<VAR8,VAR6,0,3,0),COLORWHITE; STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 AND VAR6>VAR8,VAR8,0,3,0),COLORYELLOW; STICKLINE(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,VAR6,VAR8,3,0),COLORMAGENTA; STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,3,0),COLORRED; STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) AND VAR6>0,VAR6,VAR8,3,0),COLORWHITE; STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,3,1),COLORCYAN;
效果如下:
|