導航:首頁 > 黃金交易 > 通達信狙擊必殺鑽石底指標

通達信狙擊必殺鑽石底指標

發布時間:2020-12-11 03:47:34

A. 通達信軟體的公式管理器w5.06 上怎樣添加個 macd頂底背離技術指標公式

DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORGREEN;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORMAGENTA;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=1,21)=1;
STICKLINE(金叉,0,0.1,5,0),COLOR0000FF;
DRAWTEXT(金叉,-0.095,'金叉'),COLOR0000FF;
二金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二金叉,0,0.15,5,0),COLORLIRED;
DRAWTEXT(二金叉,0.23,'二次金叉'),COLORLIRED;
三金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=3,28)=1;
STICKLINE(三金叉,0,0.2,5,0),COLORLIGREEN;
DRAWTEXT(三金叉,0.28,'三次金叉'),COLORLIGREEN;
四金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=4,28)=1;
STICKLINE(四金叉,0,0.25,5,0),COLORCYAN;
DRAWTEXT(四金叉,0.33,'四次金叉'),COLORCYAN;
五金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=5,33)=1;
STICKLINE(五金叉,0,0.3,5,0),COLORBLUE;
DRAWTEXT(五金叉,0.37,'五次金叉'),COLORBLUE;
六金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=6,33)=1;
STICKLINE(六金叉,0,0.35,5,0),COLORYELLOW;
DRAWTEXT(六金叉,0.0.7,'黃金底'),COLORYELLOW;
DRAWTEXT(六金叉,0.42,'六次金叉'),COLORYELLOW;
七金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=7,33)=1;
STICKLINE(七金叉,0,0.4,5,0),COLORWHITE;
DRAWTEXT(七金叉,0.0.88,'白金底'),COLORWHITE;
DRAWTEXT(七金叉,0.47,'七次金叉'),COLORWHITE;
八金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=8,33)=1;
STICKLINE(八金叉,0,0.5,5,0),COLORMAGENTA;
DRAWTEXT(八金叉,0.0.8,'鑽石底'),COLORMAGENTA;
DRAWTEXT(八金叉,0.57,'八次金叉'),COLORMAGENTA;
九金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=9,33)=1;
STICKLINE(九金叉,0,0.55,5,0),COLORRED;
DRAWTEXT(九金叉,0.0.8,'金鑽底'),COLORRED;
DRAWTEXT(九金叉,0.6,'九次金叉'),COLORRED;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背離:=(REF(L,A1+1)>L OR REF(C,A1+1)>C) AND (L,DIFF)>REF((L,DIFF),A1+1) AND CROSS(DIFF,DEA);
STICKLINE(底背離,0,-0.1,5,0),COLORRED;
DRAWTEXT(底背離,DEA,'底背離')COLORRED;
DRAWLINE(A1=0,DEA,底背離,DEA,0),COLOR0000FF,LINETHICK2;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
頂背離:=(REF(C,A2+1)<C OR REF(H,A2+1)<H) AND REF((H,DIFF),A2+1)>(H,DIFF) AND CROSS(DEA,DIFF);
DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORFF00FF,LINETHICK2;
STICKLINE(頂背離,0,0.1,5,0),COLORGREEN;
DRAWTEXT(頂背離,DEA,'頂背離')COLORGREEN;
DRAWTEXT(CROSS(DIFF,DEA) AND 二金叉 AND 底背離,0.3,'三全底'),COLOR0000FF;
IF(DIFF>DEA,DIFF,DRAWNULL),COLORWHITE,LINETHICK2;
IF(DEA>REF(DEA,1) AND DIFF>DEA,DEA,DRAWNULL),COLORYELLOW,LINETHICK2;

B. 通達信指標編寫小問題

IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED;
IF(DIF<REF(DIF,1),DIF,DRAWNULL),COLORGREEN;

加入這個就可以了。

閱讀全文

與通達信狙擊必殺鑽石底指標相關的資料

熱點內容
股市還能投資什麼意思 瀏覽:222
外匯平台排名金道外匯 瀏覽:929
怎樣開通紅棗期貨 瀏覽:304
白銀克價今日價格 瀏覽:810
一人民幣能換多少澳元 瀏覽:911
郵政小額貸款ppt 瀏覽:937
融資合作書 瀏覽:345
通達信怎樣設置基金持股公式 瀏覽:998
鄭商所紅棗期貨手續費 瀏覽:882
天津聚川理財 瀏覽:960
私募fof可以投公募基金么 瀏覽:87
大成睿景靈活配置混合基金 瀏覽:675
上海聯合投資參股 瀏覽:115
外匯私募理財 瀏覽:870
智利礦業投資 瀏覽:962
簡理財騰訊 瀏覽:694
濟南帥哥家居理財 瀏覽:754
索菲特股票 瀏覽:219
信廣立誠貸理財 瀏覽:242
外匯代表什麼 瀏覽:194