飞狐老杨一号主图指标
源码
N:=28;N1:=20;N2:=8;
Var1: EMA(CLOSE,5);
Var2:=(REF(HIGH,1)+REF(LOW,1))/2;
Var3: EMA(CLOSE,10);
Var4: EMA(CLOSE,23);
半年线: MA(CLOSE,120);
Var5:=MA(CLOSE,N)+2*STD(CLOSE,N);
Var6:=(LOW+HIGH+CLOSE)/3;
Var7:=SUM(MAX(0,HIGH-REF(Var6,1)),N)/SUM(MAX(0,REF(Var6,1)-LOW),N)*100;
Var8:=REF(MA(Var7,3),2.2);
Var9:=CROSS(Var8,Var7) AND Var7>180;
Var10:=SMA(MAX(CLOSE-(REF(CLOSE,1)),0),N2,1)/SMA(ABS(CLOSE-(REF(CLOSE,1))),N2,1)*100;
Vat11:=SMA(MAX(CLOSE-(REF(CLOSE,1)),0),6,1)/SMA(ABS(CLOSE-(REF(CLOSE,1))),6,1)*100;
AA:=CROSS(Var1,Var3) AND Var4>REF(Var4,2)AND OPEN<Var4 AND Var1<Var4 AND Var1<半年线;
DRAWTEXT(Var9,HIGH*1.025,'逃顶');
DRAWICON(FILTER(REF(Var10,1)<20 AND Var10>REF(Var10,1),5) AND LOW<REF(LOW,1),LOW*0.98,4);
DRAWICON(FILTER(REF(Var10,1)>80 AND Var10<REF(Var10,1),5),HIGH*1.03 ,5);
DRAWTEXT((CROSS(Vat11,12)) AND FILTER(REF(Var10,1)<20 AND Var10>REF(Var10,1),5),LOW*0.97,'找底'),COLOR00FF00;
Var12:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;
Var13:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
Var14:=LLV(LOW,3)=LLV(LOW,120) AND CLOSE/REF(CLOSE,1)>=1.06;
BB:=Var12 AND Var13 AND Var14;
Var15:=(CLOSE-LLV(1.02*LOW,633))/(HHV(1.02*HIGH,633)-LLV(LOW,633))*120;
Var16:=CROSS(Var15,0);
Var17:=CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20));
CC:=Var16 AND (OPEN>REF(HIGH,1)OR LOW/REF(LOW,1)<0.96);
DRAWICON(FILTER((CROSS(80,Vat11) or CROSS(Var2,Var5)or Var17),5),HIGH*1.035,2);
DRAWICON(FILTER(AA OR BB OR CC,5),L,1);