在线检测未来函数

同花顺金牛入门指标公式

来源:Internet,编辑:股旁网,2022-07-05

VARV:=(2*C+H+L)/4;
VARU:=LLV(LOW,30);
VARA1:=HHV(HIGH,30);
XB:=EMA((VARV-VARU)/(VARA1-VARU)*100,8);
XB1:=EMA(XB,5);
DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIF,9);
AAA:=(DIF-DEA)*2*60;
起爆:=crOSS(AAA-REF(AAA,1),15);
DRAWTEXT(起爆,50,'↖暴'),COLORRED,LINETHICK3;
AA:=(O+H+L+C)/4;
BB:=MA(AA,3);
CC:=SUM(IF(AA>REF(AA,1),AA*vol,0),4)/SUM(IF(AA<REF(AA,1),AA*VOL,0),4);
DD:=REF(100-(100/(1+CC)),1);
A1:=HHV(AA,15);
A2:=LLV(AA,15);
A3:=A1-A2;
A4:=EMA((AA-A2)/A3,2)*100;
B1:=HHV(AA,60);
B2:=LLV(AA,60);
B3:=B1-B2;
B4:=EMA((AA-B2)/B3,2)*100;
C1:=HHV(AA,240);
C2:=LLV(AA,240);
C3:=C1-C2;
C4:=EMA((AA-C2)/C3,2)*100;
强弱分界:50,DOTLINE,COLORAAAAAA;
警戒区:90,LINETHICK1,COLORYELLOW;
安全区:20,COLOR00BB00;
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);
VAR6:=CROSS(VAR3,VAR4) AND VAR3<20;
DRAWTEXT(FILTER(VAR6,10)=1,40,'金牛追日');
STICKLINE(FILTER(VAR6,10)=1,0,30,8,0),COLORRED ;
VAR7:=CROSS(VAR4,VAR3) AND VAR3>80;
STICKLINE(FILTER(VAR7,5)=1,80,102,5,0),COLORYELLOW ;
DRAWTEXT(FILTER(VAR7,5)=1,70,'清仓'),COLORYELLOW;
VAR8:=CROSS(VAR2,VAR3) AND VAR3>80 AND VAR3>VAR4;
STICKLINE(VAR8,85,100,5,0) ;90 ;0;
中期:=B4,COLORGREEN,LINETHICK0;
长期:C4,COLORYELLOW,LINETHICK2;
短期:A4,COLORRED,LINETHICK2;
IF(FILTER(中期<REF(中期,1)AND 中期>90 AND BB<REF(BB,1),5),80,100),COLORBLUE;
IF(FILTER(中期>REF(中期,1)AND 中期<5 AND C>REF(C,1),5),20,0),COLORDE00DE;
D1:=中期>REF(中期,1)AND 短期>REF(短期,1)AND 长期>REF(长期,1)AND 长期<8 AND 中期<10 AND 短期<15;
D2:=CROSS(短期,中期)AND 中期<8;
D3:=CROSS(短期,长期)AND 长期<8 AND 中期<20;
DRAWICON(FILTER((D1 OR D2 OR D3) AND DD<15 AND C>REF(C,1),5),5,1);
DRAWICON(FILTER((中期<REF(中期,1)AND 短期<REF(短期,1)AND 长期<REF(长期,1)AND 中期>95 AND 短期>85)OR (长期>100 AND 中期>100 AND 短期>100),5),95,2);
STICKLINE(XB-XB1>0,XB,XB1,8,1),COLORRED;
STICKLINE(XB-XB1<0,XB,XB1,8,1),COLOR00FF00;
VARM1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VARM2:=SMA(Abs(LOW-VARM1),13,1)/SMA(MAX(LOW-VARM1,0),10,1);
VARM3:=EMA(VARM2,10);
VARM4:=LLV(LOW,33);
趋势线: =3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORLIBLUE;
见底信号: 1;
VARM5:=EMA(IF(LOW<=VARM4,VARM3,0),3);
极品底:IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,100,0),LINETHICK1,COLORMAGENTA;
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,10,'低进'),COLORFFFF00;
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,25,'▲'),COLORRED;
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,20,'▲'),COLORRED;
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,17,'↑'),COLORRED;
股民:= EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);
庄家:= EMA(0.667*REF(小股民,1)+0.333*小股民,2);
DRAWTEXT(CROSS(庄家,小股民) AND 小股民>70,90.5,''),COLOR00FF00;
DRAWTEXT(CROSS(庄家,小股民) AND 小股民>70,80,''),COLOR00FF00;
高出:IF(100*(CROSS(庄家,小股民) AND 小股民>70),30,102),COLOR00FF00;
买入时机: IF(CROSS(趋势线,见底信号),70,0),COLORYELLOW,LINETHICK1;
DRAWTEXT(买入时机=70,买入时机,'始');
DRAWTEXT(高出=30,高出,'终');

同花顺金牛入门指标公式

相关文章