N1:=3;
M2:=MA(C,20),COLORGREEN;
MA10:=EMA(C,10),COLORWHITE;
MA15:=EMA(C,15),COLORRED;
VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR6:=VAR3-VAR1;
Z:=MA(VAR6,N1);
STICKLINE(Z>=0 {AND ZZ=2},O,C,3,1),COLORRED;
STICKLINE(Z>=0 {AND ZZ=2},H,MAX(O,C),0,1),COLORRED;
STICKLINE(Z>=0 {AND ZZ=2},MIN(O,C),L,0,1),COLORRED;
STICKLINE(Z<0 {AND ZZ=1},O,C,3,0),COLORCYAN;
STICKLINE(Z<0 {AND ZZ=1},H,MAX(O,C),0,0),COLORCYAN;
STICKLINE(Z<0 {AND ZZ=1},MIN(O,C),L,0,0),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,O,C,3,0),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,H,MAX(O,C),0,0),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,MIN(O,C),L,0,0),COLORCYAN;
STICKLINE(Z<0 AND M2<C,O,C,3,1),COLORRED;
STICKLINE(Z<0 AND M2<C,H,MAX(O,C),0,0),COLORRED;
STICKLINE(Z<0 AND M2<C,MIN(O,C),L,0,0),COLORRED;
金马日线:IF(MA10<C,MA10,DRAWNULL )COLORWHITE;
金马k线:IF(C>=MA15 AND MA10>MA15 AND CLOSE>MA15 ,MA15,DRAWNULL )COLORRED,LINETHICK1;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);
STICKLINE(涨停,O,C,2.5,0),COLORLIMAGENTA;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。