rsi今日大于50选股公式
2020/6/20 19:03:57
公式编写说明:
把这个公式 给写个选股公式 要求 rsi第一次上穿50 也就是昨天一定要小于50 就写一个3日内第一次上穿50吧 不知道 表达的是否清楚 先谢过热心帮忙的老师 参数n 2 100 14 源码 N1:=9;LC:=REF(CLOSE,1);RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;WR:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N));OBV:=RSI1; P:=5;A1:=REF(OBV,P)=HHV(OBV,2*P+1);B1:=FILTER(A1,P);C1:=BACKSET(B1,P+1);D1:=FILTER(C1,P);{高点}A2:=REF(OBV,P)=LLV(OBV,2*P+1);B2:=FILTER(A2,P);C2:=BACKSET(B2,P+1);D2:=FILTER(C2,P);{低点}上:REF(OBV,BARSLAST(D1)),COLORFF00FF,NODRAW;下:REF(OBV,BARSLAST(D2)),COLOR00FF00,NODRAW;R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1); S11:=R11>REF(R11,1);DRAWLINE(D1,OBV,S11,OBV,1),COLORYELLOW;T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);U11:=T11>REF(T11,1);DRAWLINE(D2,OBV,U11,OBV,1),COLOR00FF00;AA:=REF(RSI1,3)=HHV(RSI1,2*3+1);BB:=BACKSET(AA,3+1);CC:=FILTER(BB,3) AND RSI1=HHV(RSI1,3+1);A11:=BARSLAST(REF(CC,1));顶背离:=REF(CLOSE,A11+1)<CLOSE AND REF(RSI1,A11+1)>RSI1 AND CC;DRAWLINE(CC,RSI1,FILTER(顶背离>0,5),RSI1,0),COLORCYAN,LINETHICK2;AA2:=REF(RSI1,3)=LLV(RSI1,2*3+1);BB2:=BACKSET(AA2,3+1);CC2:=FILTER(BB2,3) AND RSI1=LLV(RSI1,3+1);AA2A:=BARSLAST(REF(CC2,1));底背离:=REF(C,AA2A+1)>CLOSE AND REF(RSI1,AA2A+1)<RSI1 AND CC2;DRAWLINE(CC2,RSI1,FILTER(底背离>0,5),RSI1,0),COLORMAGENTA,LINETHICK2;DRAWTEXT(顶背离,RSI1*1.02,' -顶背'),COLORGREEN;DRAWTEXT(底背离,RSI1*1.05,' -底背'),COLORMAGENTA;
公式源码回答:
N1:=9;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
XG:CROSS(RSI1,50);
投股 票网 www.tou 18.cn
股市公式下载推荐