飞狐新超跌反弹副图指标
源码
{新超跌反弹}
cyc13:="cyc@cyc13";
cyc34:="cyc@cyc34";
maxcyc:="cyc@cycmax";
CYS13:=(C-CYC13)/CYC13*100;
CYS34:=(C-CYC34)/CYC34*100;
maxCYS:=(C-maxCYC)/maxCYC*100;
市场亏损程度:
if(cys13<=-7,7,0),colorwhite,stick,linethick3;
if(cys13<=-10,10,0),colorffff33,stick,linethick3;
if(cys13<=-16,16,0),colorblue,stick,linethick3;
if(cys13<=-20,20,0),color00ff00,stick,linethick3;
if(cys13<=-25,25,0),coloryellow,stick,linethick3;
if(cys13<=-30,30,0),colorff00ff,stick,linethick3;
Var1:=COST(10)*0;
Var2:=REF(HIGH,1)*1.1;
Var3:=HIGH*1.1;
Var4:=(Var3*VOL+Var2*(CAPITAL-VOL))/CAPITAL;
Var5:=REF(LOW,1)*0.9;
Var6:=LOW*0.9;
Var7:=(Var6*VOL+Var5*(CAPITAL-VOL))/CAPITAL;
Var8:=EMA(Var7,30);
Var9:=EMA(Var4,30);
VarA:=Var9-2;
VarB:=IF(CLOSE<=Var8,VarA,Var9);
超跌: VarB*2.5,color00ff00;
TAO:=100*(1-winner(c));
a:=1.1*c;
b:=0.9*c;
ASR:=100*(winner(a)-winner(b));
筹码超跌:if((ASR<10) and (TAO>90),25,0),color0099ff;
短中长线超跌:if((CYS13<(-16)) and (CYS13>(-100)) and (CYS34<(-20)) and (CYS34>(-100)),30,0),colorddddff;
if((CYS34<(-20)) and (CYS34>(-100)) and (maxCYS<(-30)) and (maxCYS>(-100)),35,0),colorred;
反弹: VarA*2.5,colorff00ff;
var10:=REF(CLOSE,1.5);
var11:=SMA(MAX(CLOSE-var10,0),6,1)/SMA(ABS(CLOSE-var10),6,1)*100;
逃顶:IF((REF(var11,1)>80) and (var11<79),超跌,0),coloryellow;