主升买入
公式用到 了MACD的周月线数据,介意的请不要使用
X_9:=EMA(EMA(CLOSE,13),13);
X_10:=(X_9-REF(X_9,1))/REF(X_9,1)*1000;
X_11:=DYNAINFO(11);
X_12:=(EMA(CLOSE,8)-EMA(CLOSE,55))*10;
X_13:=EMA(X_12,3);
X_14:=(CLOSE-X_11)/X_11<(-0.03);
X_15:=X_10>REF(X_10,1) AND X_10<(-0.2);
X_16:=CROSS(X_12,X_13) AND X_12<(-0.3);
X_17:=FILTER(X_14 AND X_15 AND X_16,13);
X_18:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
X_19:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
X_20:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
X_21:=(X_18+2*X_19+3*X_20)/6;
X_22:=MA(X_21,3);
X_23:=CROSS(X_21,X_22) AND X_22<(-9);
X_26:=MA(MACD.DIF#WEEK,5);
X_28:=MA(MACD.DIF#MONTH,20);
X_33:=MA(KDJ.K#MONTH(9,3,3),20);
X_36:=MA(KDJ.K#WEEK(9,3,3),5);
X_39:=X_28>=REF(X_28,1) AND X_26>=REF(X_26,1);
X_40:=X_33>=REF(X_33,1) AND X_36>=REF(X_36,1);
X_41:=IF(X_39 AND X_40,20,0);
买入:BARSLAST(X_23)<13 OR BARSLAST(X_17)<13 AND X_41=20 AND REF(X_41,1)=0 OR (X_17 AND X_41);
20223230495090999.png
20223230495628253.png
|