RSI金叉选股 - 通用源码

[复制链接]
查看388 | 回复0 | 2022-6-28 09:01:49 | 显示全部楼层 |阅读模式

M1:MA(C,5);
M2:MA(C,21);
M3:MA(C,34);
XG:=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))));
XGG:=CROSS(SWL,SWS) AND RSI金叉 AND XG;
DRAWICON(XGG,L-0.25,1);
STICKLINE(XGG,C,O,3,0)COLORYELLOW;
STICKLINE(XGG,L,H,0,0)COLORYELLOW;


{选股源码}
M1:=MA(C,5);
M2:=MA(C,21);
M3:=MA(C,34);
XG:=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))));
XGG:CROSS(SWL,SWS) AND RSI金叉 AND XG;

200952914492949178.gif

200952914492949178.gif

200952914492125432.rar

2.24 KB, 下载次数: 0

售价: 3 金钱  [记录]  [购买]

200952914492125432.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则