飞狐出入财神副图指标
源码
LC:= REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100;
买:EMA(RSI1,5),COLORRED,linethick2;
卖:EMA(RSI2,20),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;
drawicon(FILTER(好财神>0,3),买*1.15,2);
drawtext(FILTER(好财神>0,3),买,'财神跑'),color00ff00;
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;
恶财神:CROSS(var7,Var4),coloryellow,stick;
DRAWTEXT(FILTER(CROSS(var7,Var4) AND var7<21,5),Var4,'财神到'),coloryellow;
drawicon(FILTER(CROSS(var7,Var4)>0 and var7<21,5),var4,1);
分界:45,colorff0000;
顶:90,coloryellow,linethick2;