拐点关注,选股指标,求优化
x1:=abs(ma(c,10)/ma(c,20)-1)<0.01;
x2:=abs(ma(c,5)/ma(c,10)-1)<0.01;
x3:=abs(ma(c,5)/ma(c,20)-1)<0.01;
x4:=hhv(abs(c-ref(c,1))/ref(c,1)*100,6)<3;
x5:=h/c<1.015 and count(o>c,5)<=3;
x6:=ref(c<ma(c,5),1) and ref(c<ma(c,10),1);
x7:=ref(c<ma(c,20),1) and ma(c,5)>ref(ma(c,5),1);
x8:=cross(c,ma(c,5)) and c>ma(c,20) and ref(ma(c,5),1)<ref(ma(c,5),2);
x9:=c>ma(c,10) and ref( x1 and x2 and x3,1) and ref(x4,1) and x5 and c>ma(c,5)and ref(o,1)<ref(o,2);
拐点:x6 and x7 and x8 and x9;
动态翻译:
X1赋值:收盘价的10日简单移动平均/收盘价的20日简单移动平均-1的绝对值<0.01
X2赋值:收盘价的5日简单移动平均/收盘价的10日简单移动平均-1的绝对值<0.01
X3赋值:收盘价的5日简单移动平均/收盘价的20日简单移动平均-1的绝对值<0.01
X4赋值:6日内收盘价-1日前的收盘价的绝对值/1日前的收盘价*100的最高值<3
X5赋值:最高价/收盘价<1.015 AND 统计5日中满足收阴线的天数<=3
X6赋值:1日前的收盘价<收盘价的5日简单移动平均 AND 1日前的收盘价<收盘价的10日简单移动平均
X7赋值:1日前的收盘价<收盘价的20日简单移动平均 AND 收盘价的5日简单移动平均>1日前的收盘价的5日简单移动平均
X8赋值:收盘价上穿收盘价的5日简单移动平均 AND 收盘价>收盘价的20日简单移动平均 AND 1日前的收盘价的5日简单移动平均<2日前的收盘价的5日简单移动平均
X9赋值:收盘价>收盘价的10日简单移动平均 AND 1日前的X1ANDX2ANDX3 AND 1日前的X4 AND X5 AND 收盘价>收盘价的5日简单移动平均AND 1日前的开盘价<2日前的开盘价
输出拐点:X6 AND X7 AND X8 AND X9
---------------------------------------------------
X1:=ABS(MA(C,10)/MA(C,20)-1)<0.01;
X2:=ABS(MA(C,5)/MA(C,10)-1)<0.01;
X3:=ABS(MA(C,5)/MA(C,20)-1)<0.01;
X4:=HHV(ABS(C-REF(C,1))/REF(C,1)*100,6)<3;
X5:=H/C<1.015 AND COUNT(O>C,5)<=3;
X6:=REF(C<MA(C,5),1) AND REF(C<MA(C,10),1);
X7:=REF(C<MA(C,20),1) AND MA(C,5)>REF(MA(C,5),1);
X8:=CROSS(C,MA(C,5)) AND C>MA(C,20) AND REF(MA(C,5),1)<REF(MA(C,5),2);
X9:=C>MA(C,10) AND REF( X1 AND X2 AND X3,1) AND REF(X4,1) AND X5 AND C>MA(C,5)AND REF(O,1)<REF(O,2);
拐点:X6 AND X7 AND X8 OR X9;
-------------------------------------------------------------------
x1:=abs(ma(c,10)/ma(c,20)-1)<0.01;x2:=abs(ma(c,5)/ma(c,10)-1)<0.01;x3:=abs(ma(c,5)/ma(c,20)-1)<0.01;x4:=hhv(abs(c-ref(c,1))/ref(c,1)*100,6)<3;x5:=h/c<1.015 and count(o>c,5)<=3;x6:=ref(c<ma(c,5),1) and ref(c<ma(c,10),1);x7:=ref(c<ma(c,20),1) and ma(c,5)>ref(ma(c,5),1);x8:=cross(c,ma(c,5)) and c>ma(c,20) and ref(ma(c,5),1)<ref(ma(c,5),2); x9:=c>ma(c,10) and ref( x1 and x2 and x3,1) and ref(x4,1) and x5 and c>ma(c,5)and ref(o,1)<ref(o,2);拐点:x8 and x9;感觉只要这两个就行,出的信号比你原码略多一点,成功率还行。
============================================
VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
VAR03:=CROSS(VAR02,VAR01);
VAR04:=REF(VAR02,2)<REF(VAR02,1) AND VAR02<REF(VAR02,1);
VAR05:=COUNT(VAR03,7)>0 AND VAR04;
VAR06:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR07:=SMA(ABS(LOW-VAR06),13,1)/SMA(MAX(LOW-VAR06,0),10,1);
VAR08:=EMA(VAR07,10);
VAR09:=EMA(C,5);
VAR10:=LLV(LOW,33);
VAR11:=EMA(IF(LOW<=VAR10,VAR09,0),3)*40;
VAR12:=IF(VAR11>100,VAR11*0.312,VAR11);
底线:VAR02,COLORGREEN;
趋势:VAR01,COLORCYAN;
STICKLINE(VAR05 AND COUNT(VAR05,5)=1,0,VAR12,4,0),COLORRED;
aa:=(c-ma(c,40))/ma(c,40)*100;
候鸟珍藏: if(cross(aa,-24),1,0);
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。