将RSI和BIAS制作成一个选股公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
选股票看什么指标最好 >股票指标网
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
编写要求:
解答:
网友求助:
请老师和高手帮忙将下面两个指标公式制作一个条件选股公式,要满足的条件是:
当RSI1上穿RSI3的同时,BIAS1上穿0;最好除去ST股,并且流通股小于10亿的;
指标公式为:
N1:2,120,5 N2:2,250,10 N3:2,250,20
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100,COLORCYAN,LINETHICK2;
RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100,COLORYELLOW;
RSI3:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORMAGENTA,LINETHICK2;
N1:2,250,5 N2:2,250,10 N3:2,250,20
BIAS1 :(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100,COLORCYAN,LINETHICK2;
BIAS2 :(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100;
BIAS3 :(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*100,COLORMAGENTA,LINETHICK2;
解答如下:
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),20,1)/SMA(ABS(CLOSE-LC),20,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
BIAS1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
ST:=STRFIND(stkname,'ST',1)>0;
not(ST) and CROSS(RSI1,RSI3)
and CROSS(BIAS1,0)
and CAPITAL/1000000<10;
RSI1:=SMA(MAX(CLOSE-LC,0),20,1)/SMA(ABS(CLOSE-LC),20,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
BIAS1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
ST:=STRFIND(stkname,'ST',1)>0;
not(ST) and CROSS(RSI1,RSI3)
and CROSS(BIAS1,0)
and CAPITAL/1000000<10;
选股票看什么指标最好 >股票指标网
精彩评论