AA:=(HHV(H,3)+LLV(L,3))/2;
A:=IF(C>AA,vol,0);
B:=IF(C< AA,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< 趋势;
VAR1:=crOSS(趋势,30)< 1;
VAR2:=CROSS(REF(趋势,1),30) AND REF(人气1,1)< REF(趋势,1);
VAR3:=CROSS(REF(趋势,2),30) AND REF(人气1,2)< REF(趋势,2);
VAR4:=VAR2 OR VAR3;
VAR5:=T AND VAR1 AND VAR4;
VAR6:=CROSS(趋势,60) AND 人气1< 趋势;
能量:=SQRT(VOL)*(((C-(H+L)/2))/((H+L)/2));
平滑能量:=EMA(能量,10);
人气A:=EMA(平滑能量*5,10);
VAR7:=人气A>=0 OR 人气A< 0;
VAR8:=人气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);
VA1:=C=HHV(C,20);
VA2:=BARSLAST(VA1);
VA3:=IF(VA2>0,REF(C,VA2),REF(C,VA2));
VA4:=CROSS(C,REF(VA3,1));
VA5:=VA4 AND COUNT(VA4,5)=1;
人气:S1 AND VAR6 AND VAR8 AND S4;