通达信黑马红包 警戒出击副图指标 源码
X_1:=REF(CLOSE,1); X_2:=SMA(MAX(CLOSE-X_1,0),5,1)/SMA(ABS(CLOSE-X_1),5,1)*100; X_3:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),10); X_4:=HIGH-REF(HIGH,1); X_5:=REF(LOW,1)-LOW; X_6:=SUM(IF(X_4>0 AND X_4>X_5,X_4,0),10); X_7:=SUM(IF(X_5>0 AND X_5>X_4,X_5,0),10); X_8:=X_6*100/X_3; X_9:=X_7*100/X_3; X_10:=MA(ABS(X_9-X_8)/(X_9+X_8)*100,5); X_11:=X_2+X_10; X_12:=(X_10+REF(X_10,5))/2+X_2; 0,COLORMAGENTA; X_13:=100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10)); X_14:=X_2-X_13; X_15:=X_11+X_14; STICKLINE(X_15<0,0,(-10),0.8,1),COLORYELLOW,LINETHICK6; X_16:=LLV(X_15,1); STICKLINE(CROSS(X_15,0),0,(-10),0.8,1),COLORRED,LINETHICK6; STICKLINE(X_16>230,100,90,0.3,1),COLORGREEN,LINETHICK6; X_17:=LLV(LOW,9); X_18:=HHV(HIGH,9); X_19:=EMA((CLOSE-X_17)/(X_18-X_17)*100,3); K:EMA(X_19,3); D:MA(K,3); STICKLINE(K>D,K,D,2.5,0),COLORRED,LINETHICK2; STICKLINE(D>K,K,D,2.5,0),COLORGREEN,LINETHICK2; 逃顶线:80,COLORGREEN; 中轴线:50,COLORRED; 抄底线:20,COLORGREEN; DRAWICON(CROSS(K,D),12,1),COLORRED; DRAWICON(CROSS(D,K),88,2),COLORGREEN; 警戒:X_15<0,COLORYELLOW,LINETHICK0; 出击:CROSS(X_15,0),COLORRED,LINETHICK0;
移动端首页 | PC端
© by gszx.com.cn Mobile Web
通达信黑马红包 警戒出击副图指标 源码
X_1:=REF(CLOSE,1);
X_2:=SMA(MAX(CLOSE-X_1,0),5,1)/SMA(ABS(CLOSE-X_1),5,1)*100;
X_3:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),10);
X_4:=HIGH-REF(HIGH,1);
X_5:=REF(LOW,1)-LOW;
X_6:=SUM(IF(X_4>0 AND X_4>X_5,X_4,0),10);
X_7:=SUM(IF(X_5>0 AND X_5>X_4,X_5,0),10);
X_8:=X_6*100/X_3;
X_9:=X_7*100/X_3;
X_10:=MA(ABS(X_9-X_8)/(X_9+X_8)*100,5);
X_11:=X_2+X_10;
X_12:=(X_10+REF(X_10,5))/2+X_2;
0,COLORMAGENTA;
X_13:=100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10));
X_14:=X_2-X_13;
X_15:=X_11+X_14;
STICKLINE(X_15<0,0,(-10),0.8,1),COLORYELLOW,LINETHICK6;
X_16:=LLV(X_15,1);
STICKLINE(CROSS(X_15,0),0,(-10),0.8,1),COLORRED,LINETHICK6;
STICKLINE(X_16>230,100,90,0.3,1),COLORGREEN,LINETHICK6;
X_17:=LLV(LOW,9);
X_18:=HHV(HIGH,9);
X_19:=EMA((CLOSE-X_17)/(X_18-X_17)*100,3);
K:EMA(X_19,3);
D:MA(K,3);
STICKLINE(K>D,K,D,2.5,0),COLORRED,LINETHICK2;
STICKLINE(D>K,K,D,2.5,0),COLORGREEN,LINETHICK2;
逃顶线:80,COLORGREEN;
中轴线:50,COLORRED;
抄底线:20,COLORGREEN;
DRAWICON(CROSS(K,D),12,1),COLORRED;
DRAWICON(CROSS(D,K),88,2),COLORGREEN;
警戒:X_15<0,COLORYELLOW,LINETHICK0;
出击:CROSS(X_15,0),COLORRED,LINETHICK0;