午夜视频在线网站,日韩视频精品在线,中文字幕精品一区二区三区在线,在线播放精品,1024你懂我懂的旧版人,欧美日韩一级黄色片,一区二区三区在线观看视频

分享

通達(dá)信MACD背離專抓小牛副圖 選股預(yù)警 源碼 附圖

 常熟老李jlr5mr 2023-08-30 發(fā)布于江蘇

指標(biāo)簡(jiǎn)介】:

這是在MACD指標(biāo)基礎(chǔ)上優(yōu)化而來(lái),檢測(cè)該公式包含未來(lái)函數(shù):DRAWLINE,此函數(shù)為畫(huà)線使用,柱體一浪比一浪高或低,會(huì)出一條紅虛線連接,紫色柱體為止跌信號(hào),0軸下DIF向上交叉DEA線,配合量能將出“小?!毙盘?hào)!

【MACD背離幅圖 指標(biāo) 源碼】

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;

DRAWLINE(X_14=0,DEA-0.02,X_15,DEA-0.02,0)*1,DOTLINE,COLORRED;

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;Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

【MACD背離 指標(biāo)選股 公式】

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

DEA:=EMA(DIFF,9);

MACD:=(DIFF-DEA)*2;

X_3:=DEA-DIFF;

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

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

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

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

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

X_16:=FILTER(X_13,10);

X_17:=FILTER(X_13,10);

X_18:X_16 AND X_17;

Image


配合其他選股公式,減少出票數(shù)量,提高成功率!

Image

感謝您的欣賞!

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多