飞狐玄黄天神副图指标
源码
Var1:=ema(c,5);
Var2:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*200;
Var3:=SMA(Var2,3,1);
Var4:=SMA(Var3,3,1);
Var5:=3*Var3-2*Var4;
Var6:=LLV(LOW,5);
Var7:=HHV(HIGH,5);
Var8:=EMA((CLOSE-Var6)/(Var7-Var6)*100,4)*2;
Var9:=EMA(0.667*REF(Var8,1)+0.333*Var8,2);
VarA:=3*Var8-2*Var9;
VarB:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VarC:=POW(MA(LOW,5),2)+MA(LOW,5);
VarD:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VarE:=(VarB-LLV(VarC,64))/(HHV(VarD,64)-LLV(VarC,64))*150+65-10;
VarF:=SMA(VarE,3,1)*1.5-100;
Var10:=SMA(VarF,3,1);
Var11:=3*VarF-2*Var10;
Var12:=(HIGH+LOW+CLOSE*2)/4;
Var13:=EMA(Var12,13);
Var14:=STD(Var12,13);
Var15:=(Var12-Var13)*100/Var14;
Var16:=EMA(Var15,5);
Var17:=EMA(Var16,13);
Var18:=EMA(Var16,13)+100;
Var19:=EMA(Var18,10);
Var1A:=3*Var18-2*Var19;
Var1B:=Var3+Var8+VarF+Var18;
Var1C:=Var4+Var9+Var10+Var19;
Var1D:=Var5+VarA+Var11+Var1A;
Var1E:=(HIGH+LOW+CLOSE)/3;
Var1F:=AMOUNT/VOL/100;
Var20:=SUM(AMOUNT,5)/SUM(VOL,5)/100;
Var21:=(Var1E-MA(Var1E,34))/(0.015*AVEDEV(Var1E,34));
Var22:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
Var23:=(HIGH+LOW+CLOSE+Var1E)/4;
Var24:=EMA(Var23,24);
Var25:=STD(Var23,24);
Var26:=(Var23-Var24)/Var25*100;
Var27:=(Var1E-MA(Var1E,24))/(0.015*AVEDEV(Var1E,24));
Var28:=EMA(Var26,5);
Var29:=(Var1F-MA(Var1F,21))/(0.015*AVEDEV(Var1F,21));
Var2A:=(Var20-MA(Var20,90))/(0.015*AVEDEV(Var20,90));
Var2B:=((Var2A+Var29+Var28+Var27+Var21)/5+165)/4;
Var2C:=(EMA(EMA(EMA(Var2B,15),10),5)-25)*2+Var22;
Var2D:=(Var1B+Var1C+Var1D*30)/32/5-15;
Var2E:=EMA(Var2D,13);
天神: (Var2B+Var2D)/2/1.1,colorgreen,linethick2;
MMA1: (Var2C+Var2E)/2,colorred,linethick2;
50,POINTDOT;
A2:=if(REVERSE( CROSS(80,"RSI.RSI1"(5,2,2))),-35,0);
A3:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));
B3:=REF(CLOSE,A3+1)>CLOSE AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2");
DRAWTEXT(FILTER(B3>0,5),0,'R底'),COLORCYAN;{RSI底背离}
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
D3:=REF(CLOSE,C3+1)<CLOSE AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");
DRAWTEXT(FILTER(D3>0,5),100,'R顶'),COLORMAGENTA;{RSI顶背离}
DRAWICON(FILTER(天神<REF(天神,1)AND 天神>60 and 天神>MMA1 OR A2 and Var1<ref(Var1,1) ,5),天神*1.3,2);
DRAWICON(FILTER((天神>REF(天神,1)AND 天神<0 and 天神<MMA1 OR cross(天神,0)OR cross(天神,MMA1)and MMA1<0)and Var1>ref(Var1,1),5)AND C>REF(C,2),天神*0.95,1);