通达信——顶部参考指标指标用法:出现绿色...

通达信——顶部参考指标

指标用法:出现绿色箭头或者娃娃脸可以先出局避免风险

源码:
N:=5;
见顶区:89,DOTLINE,COLORGREEN;
XY_1:=(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))*100-70;
XY_2:=SMA(XY_1,N,1)+100;
XY_3:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
XY_4:=SMA(XY_3,3,1);
XY_5:=SMA(XY_4,3,1)+100;
XY_6:=XY_5-XY_2;
XY_7:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
XY_8:=SMA(XY_7,3,1);
XY_9:=SMA(XY_8,3,1);
波段:=IF(XY_6>45,XY_6-45,0);
TDXSTEP130:STICKLINE(REF(波段,1)<波段,波段,REF(波段,1),2,0),COLORRED;
TDXSTEP131:STICKLINE(REF(波段,1)>波段,波段,REF(波段,1),2,0),COLORGREEN;
TDXSTEP132:DRAWICON(FILTER(REF(波段,1)<波段 AND REF(波段,1)<1,5),波段,1);
X_1:=0;
X_2:=100;
X_3:=9;
X_4:=9;
X_5:=9;
X_6:=(CLOSE-LLV(LOW,X_3))/(HHV(HIGH,X_3)-LLV(LOW,X_3))*100;
X_7:=SMA(X_6,X_4,1);
X_8:=SMA(X_7,X_5,1);
X_9:=3*X_7-2*X_8;
X_10:=CROSS(X_9,95);
X_11:=X_9;
TDXSTEP133:DRAWICON(X_10,波段*1.02,2);
VAR1:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;
VAR2:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
VAR3:=REF(CLOSE,1);
VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;
东芝②型卖出:=CROSS(80,VAR4);
TDXSTEP134:DRAWICON(东芝②型卖出,波段*1.12,3);

(0)

相关推荐