昨收:=REF(CLOSE,1);
趋势:=SMA(MAX(CLOSE-昨收,0),5,1)/SMA(ABS(CLOSE-昨收),5,1)*100;
MA258:=EMA(C,258);
资金:=SMA(C,500,20);
MA65:=1.15*资金;
XG1:=资金>=MA258;
XG2:=MA258>=REF(MA258,1);
XG3:=C>=资金;
XG5:=COUNT(XG3,4)>=1;
XG6:=XG1 AND XG2 AND XG5 ;
B3:=REF(趋势,1)>73 AND CROSS(73,趋势) AND XG6;
回踩买入:COUNT(B3,2)>=1 AND CROSS(趋势,(REF(趋势,1)));
DRAWTEXT(回踩买入,L,'回踩买入'),COLORYELLOW;