大智慧胜利逃亡副图指标
源码
{173、胜利逃亡}
input:n(0.2,0,10),m(5,0,10), p(10,0,250);
Var1:=REF(CLOSE,5);
Var2:=REF(WINNER(CLOSE)*100,5);
Var3:=WINNER(Var1)*100;
五天转移:Var2-Var3;
Var4:=REF(CLOSE,10);
Var5:=REF(WINNER(CLOSE)*100,10);
Var6:=WINNER(Var4)*100;
十天转移: Var5-Var6;
a1:=sma(max(close-ref(close,1),0),6,1)/sma(abs(close-ref(close,1)),6,1)*100;
a2:=ma(close/ref(close,12),6);
a3:=(close-ma(close,24))/ma(close,24);
筹备:if(count(a1<20,3) and a2>ref(a2,1) and count(a3<=92/100-1,5),-30,0),colorblue,linethick2;
drawtext(count(a1<20,3) and a2>ref(a2,1) and count(a3<=92/100-1,5),-30,'筹备'),colorgreen,linethick2;
vr1:=VOL/CAPITAL*100;
Vr2:=LLVBARS(LOW,p);
Vr3:=(CLOSE-REF(OPEN,Vr2))/REF(OPEN,Vr2)*100;
Vr4:=REF(CLOSE,2)*0.865;
Vr5:=REF(CLOSE,13)*0.772;
Vr6:=MAX(Vr4,Vr5);
逃顶:IF((CLOSE-Vr6)/CLOSE>N AND Vr3<50 AND SUM(Vr1,5)/5>M,50,0),colorred,linethick2;
drawtext((CLOSE-Vr6)/CLOSE>N AND Vr3<50 AND SUM(Vr1,5)/5>M,30,'快逃'),coloryellow,linethick2;