公式如下:
WEER:"RSI.RSI1#WEEK";
MONTHR:"RSI.RSI1#MONTH";
N1:=6;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
QTL1:=COST(0.01);
QTLD1:L<QTL1 AND RSI1<20,COLOR8977FF,NODRAW;
STICKLINE(QTLD1,0,38,2,0),COLOR8977FF;
QTLMD1:REF(QTLD1,1)=1 AND QTLD1=0,COLORRED,NODRAW;
STICKLINE(QTLMD1,0,50,2,0),COLORRED;
QTL2:=COST(0.05);
QTLD2:L<QTL2 AND RSI1<25,COLOR00FFFF,NODRAW;
STICKLINE(QTLD2,0,20,2,0),COLOR00FFFF;
QTLMD2:REF(QTLD2,1)=1 AND QTLD2=0,COLORFF00FF,NODRAW;
STICKLINE(QTLMD2,0,30,2,0),COLORFF00FF;
QJT2:=COST(0.7);
DRAWTEXT_FIX(C>O,0.01,0.9,0,'彩虹桥投资充电站'),COLORRED;
QJTD2:H>QJT2 AND RSI1>83,COLORFFFFFF,NODRAW;
STICKLINE(QJTD2,0,38,2,0),COLORFFFFFF;
QJTDD2:REF(QJTD2,1)=1 AND QJTD2 =0,COLORFFFF00,NODRAW;
STICKLINE(QJTDD2,0,50,2,0),COLORFFFF00;
DRAWTEXT(QJTDD2,50,'危险'),COLOR0066FF;
QJT1:=COST(0.5);
QJTD1:H>QJT1 AND RSI1>80,COLOR00FF00,NODRAW;
STICKLINE(QJTD1,0,20,2,0),COLOR00FF00;
QJTDD1:REF(QJTD1,1)=1 AND QJTD1 =0,COLORFF0000,NODRAW;
STICKLINE(QJTDD1,0,30,2,0),COLORFF0000;
DRAWTEXT(QJTDD1,30,'小心'),COLOR0000FF;
DRAWTEXT(QJTD2,40,'警觉'),COLOR00FFFF;
DRAWTEXT(QTLMD1,50,'抄底'),COLOR00FFFF;
DRAWTEXT(QTLMD2,30,'准备'),COLOR00FFFF;
信号很多,做个“抄底”的选股公式吧
选股公式如下:
N1:=6;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
QTL1:=COST(0.01);
胜率66.73%,有点高啊,模拟测试,实盘谨慎使用。
|