短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
X1:=CROSS(短期,20) ;
{}
VAR1:=(C+H+O+L)/4;
买入:=XMA(VAR1,32)*(1-100/1000);
HH:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+REF(H,5))/21;
LL:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+REF(L,5))/21;
A1:=IF(C>REF(HH,1),1,0);
A2:=IF(C<REF(LL,1),-1,0);
A3:=A1+A2;{股票指标网}
A4:=IF(A3=0,REF(A3,BARSLAST(NOT(A3=0))),A3);
转折线:=IF(A4=-1,MA(HIGH,6),MA(LOW,6));
X2:=转折线<买入;
XG:X1 AND X2;