把通达信海底金副图公式改成选股公式
2019/12/2 18:52:33
公式编写说明:
请老师们帮忙把通达信海底金副图公式改成选股公式(选出当日出现向上手形的股票),谢谢!原公式为:N:=16;M1:=4;M2:=4;{参数范围1~100}RSV1:=(CLOSE-LLV(CLOSE,N))/(HHV(CLOSE,N)-LLV(CLOSE,N))*100;RSV2:=(OPEN-LLV(OPEN,N))/(HHV(OPEN,N)-LLV(OPEN,N))*100;RSV3:=(LOW-LLV(LOW,N))/(HHV(LOW,N)-LLV(LOW,N))*100;RSV4:=(HIGH-LLV(HIGH,N))/(HHV(HIGH,N)-LLV(HIGH,N))*100;CLOSE1:=3*SMA(RSV1,M1,1)-2*SMA(SMA(RSV1,M1,1),M2,1);OPEN1:=3*SMA(RSV2,M1,1)-2*SMA(SMA(RSV2,M1,1),M2,1);LOWJ:=3*SMA(RSV3,M1,1)-2*SMA(SMA(RSV3,M1,1),M2,1);HIGHJ:=3*SMA(RSV4,M1,1)-2*SMA(SMA(RSV4,M1,1),M2,1);DRAWKLINE(HIGHJ,OPEN1,LOWJ,CLOSE1);E3:EMA(CLOSE1,3),COLORYELLOW;E5:EMA(CLOSE1,5),COLORYELLOW;E8:EMA(CLOSE1,8),COLORYELLOW;E10:EMA(CLOSE1,10),COLORYELLOW;E12:EMA(CLOSE1,12),COLORYELLOW;E15:EMA(CLOSE1,15),COLORYELLOW;E30:EMA(CLOSE1,30),COLORD1875A;E35:EMA(CLOSE1,35),COLORD1875A;E40:EMA(CLOSE1,40),COLORD1875A;E45:EMA(CLOSE1,45),COLORD1875A;E50:EMA(CLOSE1,50),COLORD1875A;E55:EMA(CLOSE1,55),COLORD1875A;E60:EMA(CLOSE1,60),COLORMAGENTA;0,CIRCLEDOT,COLORGREEN;100,CIRCLEDOT,COLORBLUE;KDJJC:=CROSS(CLOSE1,0);DRAWICON(KDJJC,0,11);KDJSC:=CROSS(100,CLOSE1);DRAWICON(KDJSC,100,12);
公式源码回答:
n:=16;m1:=4;m2:=4;
rsv1:=(close-llv(close,n))/(hhv(close,n)-llv(close,n))*100;
sf:cross(3*sma(rsv1,m1,1)-2*sma(sma(rsv1,m1,1),m2,1),0);
投股票 网 www.tou18.c n
股市公式下载推荐