日天波段源码 :
DRAWGBK(OPEN 0,RGB(185,198,78),RGB(36,118,78),0,4,0);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
压力:PEAK(CLOSE,10,1)*0.98,COLORRED,LINETHICK2;
支撑:TROUGH(CLOSE,10,1)*1.02,COLORGREEN,LINETHICK2;
X_1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
X_2:=DMA(CLOSE,X_1);
安全线:(1-10/100)*X_2,DOTLINE,COLORMAGENTA;
X_3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_4:=SMA(X_3,2,1);
X_5:=SMA(X_4,2,1);
X_6:=3*X_4-2*X_5;
X_7:=CROSS(X_6,0);
X_8:=EMA(CLOSE,15)-EMA(CLOSE,26);
X_9:=EMA(X_8,5);
X_10:=2*(X_8-X_9);
X_11:=X_10 0 AND X_10 REF(X_10,1) AND REF(X_10,1) REF(X_10,2);
DRAWICON(X_7 AND X_11,LOW*0.93,11);
X_12:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_13:=SMA(X_12,2,1);
X_14:=SMA(X_13,2,1);
X_15:=3*X_13-2*X_14;
X_16:=CROSS(X_15,0) AND HIGH =安全线;
DRAWICON(X_16,LOW*0.97,25);
X_17:=(CLOSE+HIGH+LOW)/3;
X_18:=EMA(X_17,5);
X_19:=REF(X_18,1);
持股:STICKLINE(X_18 X_19,X_18*0.98,X_19*0.98,3,0),COLORYELLOW;
DRAWTEXT_FIX(1,0.85,0,0,STRCAT(1,0)),COLORBLUE;
DRAWTEXT_FIX(1,0.85,0.1,0,STRCAT(2,0)),COLORBLUE;