{好财神} N1:=3; N2:=10; M1:=5; M2:=20; LC:= REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100; RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100; 买A:EMA(RSI1,M1),colorred,linethick2; 卖A:EMA(RSI2,M2),linethick2,COLORffff00; Var1:=REF(CLOSE,1); Var2:=SMA(MAX(CLOSE-Var1,0),6,1)/SMA(ABS(CLOSE-Var1),6,1)*100; 好财神:(CROSS(80,Var2)),colorf00ff0,linethick2; Var3:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; Var4:SMA(SMA(Var3,3,1),3,1),color00ff00; Var5:=EMA(Var4,5); var7:3*Var4-2*Var5,colorffffff; 恶财神:CROSS(var7,Var4),coloryellow,STICK; DRAWTEXT(CROSS(var7,Var4) AND var7<21,Var4,'财神到'),coloryellow; DRAWICON(CROSS(var7,Var4)>0 AND var7<21,var4,1); 分界:45,colorff0000; 顶:90,coloryellow,linethick2; |
