逍遥利器,同花顺公式副图指标源码
VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
波:=VAR3;
段:=VAR4;
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,80,100,10,0),colorgreen;
DRAWTEXT(FILTER(VAR9,5)=1,70,'逃顶'),colorgreen;
VAR8:=CROSS(VAR2,VAR3) AND VAR3>80 AND VAR3>VAR4;
STICKLINE(VAR8,85,100,10,0),COLOR0099FF;
100,COLORBBBBBB,LINETHICK3;
0,,LINETHICK3;
AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
风险:80,COLORFF00FF;
小心:87.5,COLOR00FF00;
MACD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25),coloryellow;
股神:MACD,COLOR0000FF,LINETHICK2;
升:IF(MACD>=REF(MACD,1),MACD,DRAWNULL),COLORFF00FF,LINETHICK2;
降:IF(MACD<REF(MACD,1),MACD,DRAWNULL),COLOR00FF00,LINETHICK2;
股海:=(((MACD-LLV(MACD,21))/(HHV(MACD,21)-LLV(MACD,21)))*(4))*(25);
诱多:IF(CROSS(股海,90) AND (股神<40),70,0),COLOR00FF00;
底部:10,colorliblue;
黑马:IF((COUNT((股神>REF(股神,1)),1)=1) AND (REF(股神,1)<REF(REF(股神,1),1)) AND (股神<底部),50,0),COLORFF00FF;
|