请高手将源码改成命运线上穿多空线的同花顺选股公式
发布网友
发布时间:2022-04-22 17:03
我来回答
共2个回答
热心网友
时间:2023-09-28 17:47
XJ:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
GAO:=HHV(H,0)-LLV(L,0);
TIAOJIE:=IF(GAO>=1,IF(GAO>=5,2,1),0.618);
ZDX1:XJ+(SMA(MAX(XJ-REF(XJ,1),0),5,1)/SMA(ABS(XJ-REF(XJ,1)),5,1)
*TIAOJIE-TIAOJIE*0.5);
ZDX2:=XJ+(SMA(MAX(XJ-REF(XJ,1),0),5,1)/SMA(ABS(XJ-REF(XJ,1)),5,1)*100-50);
命运线:=IF(C>100,ZDX2,ZDX1);
多空线:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
趋势线:=EMA(CLOSE,453);
XG:CROSS(命运线,多空线);
{测试通过,复制可直接使用}
热心网友
时间:2023-09-28 17:47
XJ:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,,POINTDOT,COLORRED;
GAO:=HHV(H,0)-LLV(L,0);
TIAOJIE:=IF(GAO>=1,IF(GAO>=5,2,1),0.618);
ZDX1:=XJ+(SMA(MAX(XJ-REF(XJ,1),0),5,1)/SMA(ABS(XJ-REF(XJ,1)),5,1)*TIAOJIE-TIAOJIE*0.5);
ZDX2:=XJ+(SMA(MAX(XJ-REF(XJ,1),0),5,1)/SMA(ABS(XJ-REF(XJ,1)),5,1)*100-50);
命运线:=IF(C>100,ZDX2,ZDX1),LINETHICK1,COLORGREEN;
多空线:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55),COLORYELLOW;
XG:CROSS(命运线,多空线);