通达信换手王源码副图
换手王源码
X_1:=CLOSE-REF(CLOSE,6);
X_2:=MA(X_1,6);
X_3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_4:=SMA(X_3,3,1);
X_5:=SMA(X_4,3,1);
X_6:=EMA(3*X_4-2*X_5,2);
X_7:=(HIGH+LOW+CLOSE)/3;
X_8:=(X_7-MA(X_7,14))/(0.015*AVEDEV(X_7,14))/2;
X_9:=(X_8+EMA(((-100)*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))+100)/100,3)*200-100)/2;
X_10:=X_9-REF(X_9,14);
X_11:=X_9-REF(X_9,26);
X_12:=(X_9+X_10+X_11)/3;
X_13:=EMA(X_12,4);
X_14:=HHV(HIGH,34);
X_15:=(2*CLOSE+HIGH+LOW)/4;
X_16:=LLV(LOW,34);
X_17:=EMA((X_15-X_16)/(X_14-X_16)*100,13);
X_18:=EMA(0.667*REF(X_17,1)+0.333*X_17,2);
X_19:=X_17-X_18>1 AND X_17<30 AND X_18<30;
X_20:=X_17-X_18<0 AND X_17>80 AND X_18>80 AND REF(X_17-X_18,1)>0;
X_21:=COUNT(X_17-X_18>0,2)=2;
X_22:=X_17-X_18<0;
生命线:MA(CLOSE,20);
取舍线:MA(CLOSE,10);