以下是二线纠缠副图源码
二线纠缠副图源码
0;
50;
100;
DRAWGBK(OPEN>CLOSE,RGB(90,54,88),RGB(13,40,11),0,1,0);
X_1:=IF(DATE>=1140831,0,1);
X_2:=(HIGH+LOW+CLOSE)/3;
X_3:=(X_2-MA(X_2,14))/(0.015*AVEDEV(X_2,14));
X_4:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),7,1)*X_1;
X_5:=HIGH-REF(HIGH,1);
X_6:=REF(LOW,1)-LOW;
X_7:=SMA(IF(X_6>0 AND X_6>X_5,X_6,0),7,1)*X_1;
X_8:=REF(CLOSE,1)*X_1;
X_9:=3*X_7*100/X_4*X_1;
X_10:=SMA(MAX(CLOSE-X_8,0),7,1)/SMA(ABS(CLOSE-X_8),7,1)*100*X_1;
DRAWBAND(IF(X_10<11 AND X_9>80,X_9,DRAWNULL),RGB(105,4,4),IF(X_10<11 AND X_9>80,X_10,DRAWNULL),0);
STICKLINE(REF(CROSS(X_9>100,0.5) AND X_3<(-150),1)*X_1,50,70,2.6,0),COLORYELLOW;
线1:3*X_7*100/X_4*X_1,COLORAA77AA;
线2:SMA(MAX(CLOSE-X_8,0),7,1)*X_1/SMA(ABS(CLOSE-X_8),7,1)*100,COLORAA7700;
评论(0)