INPUT:A1(6),A2(12),A3(24);
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),A1,1)/SMA(ABS(CLOSE-LC),A1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),A2,1)/SMA(ABS(CLOSE-LC),A2,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),A3,1)/SMA(ABS(CLOSE-LC),A3,1)*100;
drawtext(cross(RSI1,RSI3),l*0.98,'B'),coloryellow,linethick2;
drawtext(cross(RSI3,RSI1),h*1.05,'S'),colorgreen,linethick2;
MA24:MA(CLOSE,M1),LINETHICK2;
MA1:MA(CLOSE,M2),colorRED,POINTDOT,LINETHICK5;
UPPERL: MA(HIGH,n1)*(1+p1/100),colorwhite;
UPPERS: MA(HIGH,n2)*(1+p2/100),coloryellow;
LOWERS: MA(LOW,n2)*(1-p2/100),colorff00ff;
LOWERL: MA(LOW,n1)*(1-p1/100),color00ff00,LINETHICK1;
最高:H,POINTDOT,LINETHICK2;
最低,POINTDOT; |