文章预览
副图指标源码: DIFF:EMA(CLOSE,12)-EMA(CLOSE,26); DEA:EMA(DIFF,9); MACD:(DIFF-DEA)*2,COLORSTICK; 量化进场1:=MACD < 0 AND MACD>REF(MACD,1) AND REF(MACD,1) STICKLINE(量化进场1,0,MACD,0.3,0),COLORMAGENTA; DRAWICON(量化进场1,0,5); 量化进场2:=MACD>0 AND MACD REF(MACD,2) AND REF(MACD,2)>REF(MACD,3) AND REF(MACD,3)>REF(MACD,4); 量化进场3:=DEA-DIFF; 量化进场4:=IF(MACD < 0,SUM(MACD,BARSLAST(量化进场3 < 0)),0); 量化进场5:=LLV(LOW,BARSLAST(量化进场3 < 0)); 量化进场6:=HHV(HIGH,BARSLAST(量化进场3>0)); 量化进场7:=IF(MACD < 0,BARSLAST(CROSS(DIFF,DEA)),0); 量化进场8:=REF(量化进场4,量化进场7+1); 量化进场9:=REF(量化进场5,量化进场7+1); 量化进场10:=IF(量化进场4 < 0 AND ABS(量化进场4) 量化进场11:=MACD < 0 AND REF(MACD,1) < 0 AND CLOSE 量化进场12:=IF(CROSS(DIFF,DEA),REF(量化进场10,1),0); 量化进场13:=IF(DIFF>REF(DIFF,1),REF(量化进场10,1),0) AND DIFF < 0 AND DEA < 0; 量化进场14:=BARSLAST(REF(CROSS
………………………………