布林线结合RSI选股
M1:=MA(C,5);
M2:=MA(C,21);
M3:=MA(C,34);
AA:=CROSS(C,M1) AND REF(EXIST(M1<REF(M1,5),1),1) AND COUNT(M2>M3,10)>=10 AND M2>M3;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
RSI金叉:=CROSS(RSI1,RSI2);
SWL:=(EXPMA(CLOSE,5)*7+EXPMA(CLOSE,10)*3)/10;
SWS:=DMA(EMA(CLOSE,12),MAX(1,100*(SUM(VOL,5)/(3*CAPITAL))));
AA1:=CROSS(SWL,SWS);
上轨:=BBI+4.2*STD(BBI,10);
中轴:=(EMA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
下轨:=BBI-4.2*STD(BBI,10);
AA2:=上轨>REF(上轨,1);
AA3:=中轴>REF(中轴,1);
AA4:=中轴*1.03>上轨;
AA5:=下轨*1.03>中轴;
AA6:=O<中轴;
XG: AA AND AA1 AND AA2 AND AA3 AND AA4 AND AA5 AND AA6 AND RSI金叉 ;
|