制作一个三线上穿的选股公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

解答:

 网友求助:

请老师和高手帮忙将下面指标中的条件制作一个选股公式。谢谢!!!
需要满足的条件:
当RSI3上穿RSI1的同时,BIAS1上穿0,同时K上穿D;并且个股的流通股数<10亿。

第一指标:N1(2,250,5) N3(2,250,20)
LC:=REF(CLOSE,1);
RSI3:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORMAGENTA,LINETHICK2;
RSI1:SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100,COLORCYAN,LINETHICK2;
BIAS1 :(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*200,COLORGREEN,LINETHICK2;
BIAS3 :(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*200,COLORRED,LINETHICK2;

第二指标:N(2,90,9) M1(2,30,3) M2(2,30,3)
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),COLORMAGENTA,LINETHICK2;
D:SMA(K,M2,1),COLORCYAN,LINETHICK2;
J:3*K-2*D,COLORBLACK;
 

 
解答如下:
N1:=5;N3:=20;
BIAS1 :=(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*200;
BIAS3 :=(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*200;
AA:=CROSS(BIAS3,BIAS1) AND CROSS(BIAS1,0);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BB:=CROSS(K,D);
AA AND BB AND FINANCE(7)<100000;
 

 


选股票看什么指标最好 >股票指标网