九方MACD之九方小牛副图

 



{九方小牛}

DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:EMA(DIFF,9);

MACD:(DIFF-DEA)*2,COLORSTICK;

X_1:=MACD< 0 AND MACD>REF(MACD,1) AND REF(MACD,1)< REF(MACD,2) AND REF(MACD,2)< REF(MACD,3) AND REF(MACD,3)< REF(MACD,4);

STICKLINE(X_1,0,MACD,0.3,0),COLORMAGENTA;

X_2:=MACD>0 AND MACD< REF(MACD,1) AND REF(MACD,1)>REF(MACD,2) AND REF(MACD,2)>REF(MACD,3) AND REF(MACD,3)>REF(MACD,4);

X_3:=DEA-DIFF;

X_4:=IF(MACD< 0,SUM(MACD,BARSLAST(X_3< 0)),0);

X_5:=LLV(LOW,BARSLAST(X_3< 0));

X_6:=HHV(HIGH,BARSLAST(X_3>0));

X_7:=IF(MACD< 0,BARSLAST(CROSS(DIFF,DEA)),0);

X_8:=REF(X_4,X_7+1);

X_9:=REF(X_5,X_7+1);

X_10:=IF(X_4< 0 AND ABS(X_4)< ABS(X_8),1,0);

X_11:=MACD< 0 AND REF(MACD,1)< 0 AND CLOSE< X_9 AND ABS(X_4)< ABS(X_8) AND ABS(MACD)< ABS(REF(MACD,1));

X_12:=IF(CROSS(DIFF,DEA),REF(X_10,1),0);

X_13:=IF(DIFF>REF(DIFF,1),REF(X_10,1),0) AND DIFF< 0 AND DEA< 0;

X_14:=BARSLAST(REF(CROSS(DIFF,DEA),1))*1;

X_15:=REF(CLOSE,X_14+1)>CLOSE AND DIFF>REF(DIFF,X_14+1) AND CROSS(DIFF,DEA)*1;

X_16:=FILTER(X_13,10);

X_17:=FILTER(X_13,10);

X_18:=X_16 AND X_17;

STICKLINE(X_18,(-0.08),DIFF,2,0),COLORLIMAGENTA;

STICKLINE(X_16,0,MACD,0.1,0),COLORYELLOW;

DRAWTEXT(X_16,0+0.01,'九方小牛'),COLORYELLOW;







来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图