導航:首頁 > 股市基金 > macd與kd背離共振指標源碼

macd與kd背離共振指標源碼

發布時間:2021-03-20 07:36:39

⑴ 通達信MACD KDJ金叉共振的公式,滿意答案一定重賞。

公式不是萬能的,但沒有公式可萬萬不能,主要是自己。
DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
DRAWICON(CROSS(DIF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIF),DEA,2);
IF(DIF<DEA,DIF,DRAWNULL),COLORGREEN;
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
頂背離:=(DD AND EE AND DEA< HHV(DEA,180))*DEA;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
{頂背:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);}
DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORRED,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,9,3),COLORYELLOW;
D:SMA(K,9,3),COLORWHITE;
J:3*K-2*D,COLORMAGENTA;
IF(J<D,J,DRAWNULL),COLORFFEE44;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIF,A1+1)<DIF AND CROSS(DIF,DEA);
A22:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
B2:=REF(C,A22+1)>C AND REF("KDJ.K"(9,3,3),A22+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
DRAWTEXT(B1,DEA-0.20,'▲MACD底背'),COLORWHITE;
DRAWTEXT(B2,D-0.20,'●KDJ底背'),COLORFF00FF;
{DJ:=CROSS(J,D) AND D<20;
DRAWTEXT(DJ,J-0.3,'低金叉'),COLORCYAN;
MDJ:=CROSS(DIF,DEA) AND DEA<0;
DRAWTEXT(MDJ,DEA-0.3,'低金叉'),COLORGREEN;
DRAWTEXT(CROSS(DEA,DIF),DIF+0.3,'死叉'),COLORYELLOW;
DRAWTEXT(CROSS(D,J),J+0.3,'死叉'),COLORRED;}
A:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D);
DRAWICON(A,LOW*0.98,1);
B4:CROSS(DIF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
DRAWTEXT(B4,L-0.20,'★金叉共振'),COLOR0099FF;
DRAWICON(CROSS(K,D),D,1);
DRAWICON(CROSS(D,K),D,2);
BA:=DEA>REF(DEA,1);
BB:=SUM(BA,5)>=4;
BC:=C<O;
BD:=SUM(BC,5)>=2;
BXG:FILTER(BB AND BD AND J>REF(J,1) AND REF(J,1)<REF(J,2),3);
STICKLINE(BXG,HHV(J,60),HHV(J,60)-20,1,0),COLORRED;

SS:=EMA(C,11);
LL:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,5))/4;
{短:EMA(LL,2),COLORGREEN,LINETHICK2;}
{長:EMA(SS,2),COLORMAGENTA,LINETHICK2;}
AA:=(C-LLV(C,10))/(HHV(C,10)-LLV(C,10));
(CROSS(AA,0.05)-1);

⑵ 哪位老師有通達信MACD柱體背離的指標公式分享一個,真心感謝

偷懶,前一位弄的公式,給更正一下,其他內容紋絲內沒動。容
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
FF:=C=LLV(C,180);
GG:=DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;
LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
底背離:(FF AND GG AND DEA> LLV(DEA,180))*DEA;

⑶ 求通達信公式 KD背離金叉公式 如圖 萬分感謝高人!

我會編,在我即可!

⑷ 請老師將MACD,KDJ,CCI,RSI四指標共振,進行選股。附圖公式如下。謝謝老師。

這個公式驗證了一下,沒有實際的意義。勸你不要浪費精力了。

⑸ 求通達信K線和MACD背離時,MACD指標就變色或出現記號的碼原。。。。

{這都是答過的問題,網上搜搜};
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK,LINETHICK2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背離:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
底背:DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORRED,LINETHICK2;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
頂背離:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
頂背:DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORGREEN,LINETHICK2;

⑹ 請高手幫忙寫個MACD和KDJ共振的指標,看圖

看圖就是花花綠綠的,沒看出名堂,咋振就是共振了?還是文字說說的好,我就看見一隻貓。好的,我知道了,那就是背離,指標源碼呢?沒有源碼知道什麼是背離?我要說當前價和五日線背離,你說什麼意思?

⑺ 哪位大俠給下列KDJ MACD RSI三背離共振幅圖做個選股公式(出現手指),謝謝!

把以上公式中的所有輸出「:」後加一個「=」號,再在後面加一句
AG:MACD底背離 AND KDJ底背離 AND RSI底背離;
選股公式只能有一個輸出,記住這點自己動手也不會很難的。
DIFZ:=EMA(C,12)-EMA(C,26);
DEAZ:=EMA(DIFZ,9);
MACDZ:=8*(DIFZ-DEAZ);
RSV:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*247.2-123.6;
SQX:=(C-MA(CLOSE,13))*10;
DIF:=EMA(MA(SQX,7),1);
DEA:=EMA(DIF,7);
MACD:=(DIF-DEA)*2;
K:=SMA(SMA( RSV,3,1),3,1),COLORWHITE;
D:=MA(EMA(K,3),3),COLORYELLOW;
J:=3*K-2*D,COLORMAGENTA;
A11:=BARSLAST(REF(CROSS(DIF,DEA),1));
B1:=REF(C,A11+1)>C AND REF(DIF,A11+1)<DIF AND CROSS(DIF,DEA);
A12:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));
B2:=REF(C,A12+1)>C AND REF("KDJ.K",A12+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");
A13:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));
B3:=REF(C,A13+1)>C AND REF("RSI.RSI1",A13+1)<"RSI.RSI1"AND CROSS("RSI.RSI1","RSI.RSI2");
C1:=BARSLAST(REF(CROSS(DEA,DIF),1));
D1:=REF(C,C1+1)<C AND REF(DIF,C1+1)>DIF AND CROSS(DEA,DIF);
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K");
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");
MACD底背:=IF(B1>0,50,0),LINETHICK2,COLORRED;
KDJ底背:=IF(B2>0,65,0),LINETHICK2,COLORFF00FF;
RSI底背:=IF(B3>0,80,0),LINETHICK2,COLORYELLOW;
MACD頂背:=IF(D1>0,-50,0),LINETHICK2,COLOR00FF00;
KDJ頂背:=IF(D2>0,-65,0),LINETHICK2,COLORFFCC66;
RSI頂背:=IF(D3>0,-80,0),LINETHICK2,COLORWHITE;
AG:MACD底背 AND KDJ底背 AND RSI底背;

⑻ 通達信多空趨勢,kdj,macd,rsi頂底背離信號提示的指標源碼

可以編寫通達信德多空趨勢,kdj,macd,rsi,頂背離的指標,但這些條件你好說明清楚如專何判斷,例如頂背離最屬少要有高點確認條件你才能判斷,這三個指標每個指標都不是一個輸出,都有3個具體對比哪個這些具體條件說明清楚才能編寫指標公式。

⑼ macd和kdj共振

就是意思說,都金叉,或是死叉,或是背離,等等,在實戰中,意義不大

閱讀全文

與macd與kd背離共振指標源碼相關的資料

熱點內容
定向采購供應鏈金融服務 瀏覽:790
車貸貸款合同在金融公司還是銀行 瀏覽:768
貸款全款買車金融服務費 瀏覽:118
期貨日內周期配合 瀏覽:570
外匯反向跟單可行嗎 瀏覽:934
期貨合約和現貨合同的區別 瀏覽:801
金融機構應當按照中國人民銀行 瀏覽:405
北新路橋股票預測 瀏覽:605
怎麼看余額寶理財產品在哪 瀏覽:943
重慶國際信託有限公司股票 瀏覽:108
000937增發價格 瀏覽:963
建行杠桿保證金炒外匯 瀏覽:454
金融機構支持疫情防控工作 瀏覽:164
境外匯款可以 瀏覽:242
房地產融資特點有哪些內容 瀏覽:422
中信證券的基本面分析 瀏覽:84
雁盛實業股票 瀏覽:239
外匯期貨交易商 瀏覽:57
上海潤欣科技股份有限公司怎麼樣 瀏覽:676
金融理財顧問公司 瀏覽:635