GSPT:=(HHV(H,3)+LLV(L,3))/2;
A:=IF(C>GSPT,VOL,0);
B:=IF(C< GSPT,VOL,0);
VAR0:=(A-B);
VAR01:=EMA(VAR0,3)/SUM(VOL,5)*100;
S1:=VAR01>=0;
ABC3:=(2*CLOSE+HIGH+LOW)/4;
ABC4:=LLV(LOW,34);
ABC5:=HHV(HIGH,34);
趋势:=EMA((ABC3-ABC4)/(ABC5-ABC4)*100,13);
人气1:=EMA(0.667*REF(趋势,1)+0.333*趋势,2);
T:=人气1< 趋势;
GSPT哥1:=CROSS(趋势,30)< 1;
GSPT哥2:=CROSS(REF(趋势,1),30) AND REF(人气1,1)< REF(趋势,1);
GSPT哥3:=CROSS(REF(趋势,2),30) AND REF(人气1,2)< REF(趋势,2);
GSPT哥4:=GSPT哥2 OR GSPT哥3;
GSPT哥5:=T AND GSPT哥1 AND GSPT哥4;
GSPT哥6:=CROSS(趋势,60) AND 人气1< 趋势;
能量:=SQRT(VOL)*(((C-(H+L)/2))/((H+L)/2));
平滑能量:=EMA(能量,10);
人气A:=EMA(平滑能量*5,10);
GSPT哥7:=人气A>=0 OR 人气A< 0;
GSPT哥8:=人气A>=0;
EM01:=EMA(C,13);
EM:=EMA(C,21);
UP:=EMA(EM,13);
DOWN:=EMA(EM,17);
短期趋势:=(EMA(EM01,2)+EMA(EM01,7))/2;
中期趋势:=(UP+DOWN)/2;
长期趋势:=EMA(C,144);
S4:=短期趋势>REF(短期趋势,1) AND 中期趋势>REF(中期趋势,1) AND 长期趋势>REF(长期趋势,1);
ZYG1:=C=HHV(C,20);
ZYG2:=BARSLAST(ZYG1);
ZYG3:=IF(ZYG2>0,REF(C,ZYG2),REF(C,ZYG2));
ZYG4:=CROSS(C,REF(ZYG3,1));
ZYG5:=ZYG4 AND COUNT(ZYG4,5)=1;
人气:S1 AND GSPT哥6 AND GSPT哥8 AND S4;