大智慧抄底逃顶副图指标
源码
REFLINE: 0, 80, 87.5, 100;
Var1:=(c-(LLV(LOW,21)))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
波: VAR3;
段: VAR4,color999900;
VAR5:=CROSS(VAR3,VAR4) AND VAR3<20;
DRAWTEXT(FILTER(VAR5,10)=1,40,'抄底'),COLORred;
STICKLINE(FILTER(VAR5,10)=1,0,30,10,0),COLOrred;
VAR9:=CROSS(VAR4,VAR3) AND VAR3>80;
STICKLINE(FILTER(VAR9,5)=1,90,100,6,0),COLORGREEN;
DRAWTEXT(FILTER(VAR9,5)=1,95,' ←逃顶'),COLORyellow,linethick3;
VAR8:=CROSS(VAR2,VAR3) AND VAR3>80 AND VAR3>VAR4;
STICKLINE(VAR8,85,100,10,0),COLOR0099FF;
AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
股神:DD,COLOR00FF00,LINETHICK1;
股海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
目标出现B:IF(CROSS(股海,90) AND (股神<40),70,0),COLORFF00FF;
跟踪:=10;
目标出现A:IF((COUNT((股神>REF(股神,1)),1)=1) AND (REF(股神,1)<REF(REF(股神,1),1)) AND (股神<跟踪),60,0),COLORFFFccc;
风险:80,COLORFF00FF,DOTLINE;
小心:87.5,COLOR00FF00,DOTLINE;
partline(DD,DD>=ref(DD,1),rgb(255,0,0),DD<ref(DD,1),rgb(0,255,0)),linethick1;