源码如下:
{SJCXG四金叉选股} ma5:=ema(c,5); ma10:=ema(c,10); mv5:=ema(v,5); mv10:=ema(v,10); k:="kdj.k"(9,3,3); d:="kdj.d"(9,3,3); rsi4:="rsi.rsi1"(4,8,24); rsi8:="rsi.rsi2"(4,8,24); v1:=ma5>ref(ma5,1) and ma10>ref(ma10,1) and c>ref(c,1) and c/o>1.01; vv1:=mv5>ref(mv5,1) and mv10>=ref(mv10,1) and v>ref(v,1)*1.2 ; kd1:=k>ref(k,1) and d>=ref(d,1); va:=count(cross(k,d),4)>=1 and count(cross(ma5,ma10),4)>=1 and count(cross(mv5,mv10),4)>=1 and count(cross(rsi4,rsi8),4)>=1; xg1:if(v1 and vv1 and kd1 and va,1,0); {四金叉选股的要求: (1)价的均线ma5与ma10金叉; (2)量的均线mv5与mv10金叉; (3)指标kdj中k与d金叉; (4)指标rsi中rsi4与rsi8金叉;}
{股票公式网http://www.58188.com整理}
|
|
|
|
|