九色国产,午夜在线视频,新黄色网址,九九色综合,天天做夜夜做久久做狠狠,天天躁夜夜躁狠狠躁2021a,久久不卡一区二区三区

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
通達(dá)信MACD疊加KDJ副圖公式源碼
{MACD疊加KDJ}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
RSV1:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*101; 
KK:=SMA(RSV1,3,1); 
DD:=SMA(KK,3,1); 
JJ:=3*KK-2*DD; 
KX:=250; 
KH:=HHV(K,KX); 
DH:=HHV(D,KX); 
JH:=HHV(J,KX); 
KL:=LLV(K,KX); 
DL:=LLV(D,KX); 
JL:=LLV(J,KX); 
HKMAX:=MAX(KH,MAX(DH,JH)); 
LKMIN:=MIN(KL,MIN(DL,JL)); 
KHLB:=(HKMAX+LKMIN)/2; 
KHLC:=HKMAX-LKMIN; 
MHF:=HHV(DIFF,KX); 
MHD:=HHV(DEA,KX); 
MHM:=HHV(MACD,KX); 
MLF:=LLV(DIFF,KX); 
MLD:=LLV(DEA,KX); 
MLM:=LLV(MACD,KX); 
HMAX:=MAX(MHF,MAX(MHD,MHM)); 
LMIN:=MIN(MLF,MIN(MLD,MLM)); 
FHLB:=(HMAX-LMIN)/100; 
FHLC:=HMAX-LMIN; 
SH:=(0-FHLB)*(KHLC/FHLC)+KHLB; 
DIFFA:=(DIFF-FHLB)*(KHLC/FHLC)+KHLB; 
DEAA:=(DEA-FHLB)*(KHLC/FHLC)+KHLB;
DRAWBAND(DIFFA,RGB(255,64,64),DEAA,RGB(64,255,64)); 
MACDA:=(MACD-FHLB)*(KHLC/FHLC)+KHLB; 
CDA:=MACD<REF(MACD,1) AND MACD>0;
CDB:=MACD>=REF(MACD,1) AND MACD>0;
CDC:=MACD>REF(MACD,1) AND MACD<0;
CDD:=MACD<=REF(MACD,1) AND MACD<0;
STICKLINE(CDA,SH,MACDA,0.1,0),COLORBLUE;{0上藍(lán)柱}
STICKLINE(CDB,SH,MACDA,0.1,0),COLOR8000FF; {0上紅柱}
STICKLINE(CDC,SH,MACDA,0.1,0),COLOR8000FF;{0下紅柱}
STICKLINE(CDD,SH,MACDA,0.1,0),COLORBLUE;{0下藍(lán)柱}
DRAWTEXT(BARSTATUS=2,SH,' 0軸'),COLORWHITE;
{傳統(tǒng)KDJ}
KKK:SMA(RSV,3,1),COLORWHITE,LINETHICK2;
DDD:SMA(KKK,3,1),COLORYELLOW,LINETHICK2;
JJJ:3*KKK-2*DDD,COLORMAGENTA,LINETHICK2;
DRAWTEXT(ISLASTBAR,KKK,'  ←K'),COLORWHITE;
DRAWTEXT(ISLASTBAR,DDD,'  ←D'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,JJJ,'  ←J'),COLORMAGENTA;
{MACD KDJ 金叉共振 信號}
A:=CROSS(DIFF,DEA) AND CROSS(KKK,DDD) AND CROSS(JJJ,DDD);
{共振出現(xiàn)時圖標(biāo)}
DRAWICON(A,20,25);
DRAWTEXT(A,20,'  MACD&KDJ金叉共振'),COLORYELLOW;
{低位金叉標(biāo)識}
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
DRAWICON(低位金叉,10,41);
DRAWTEXT(低位金叉,10,'  MACD低位金叉'),COLORWHITE;
{二次金叉}
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
DRAWICON(二次金叉,0,41);
DRAWTEXT(二次金叉,0,'  MACD二次金叉'),COLORYELLOW;
{MACD,KDJ,RSI頂?shù)妆畴x}
{MACD底背}
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
{MACD頂背}
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
{MACD底背信號}
DRAWICON((B1>0),-10,41);
DRAWTEXT((B1>0),-10,'  MACD底背離'),COLORRED;
{MACD頂背信號}
DRAWICON((D1>0),-10,37);
DRAWTEXT((D1>0),-10,'  MACD頂背離'),COLORGREEN;
{KDJ底背}
A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS
("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
{KDJ頂背}
C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS
("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));
{KDJ底背信號}
DRAWICON((B2>0),85,41);
DRAWTEXT((B2>0),85,'  KDJ底背離'),COLORWHITE;
{KDJ頂背信號}
DRAWICON((D2>0),85,37);
DRAWTEXT((D2>0),85,'  KDJ頂背離'),COLORGREEN;
{RSI底背}
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));
{RSI頂背}
C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS
("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
{RSI頂背信號}
DRAWICON((D3>0),-20,37);
DRAWTEXT((D3>0),-20,'  RSI頂背離'),COLORGREEN;
{RSI底背信號}
DRAWICON((B3>0),-20,41);
DRAWTEXT((B3>0),-20,'  RSI底背離'),COLORRED;
{KDJ日周共振}
N:=1;
日K:=KDJ.K;
日D:=KDJ.D;
日J(rèn):=KDJ.J;
周K:=KDJ.K#WEEK,NODRAW;
周D:=KDJ.D#WEEK,NODRAW;
周J:=KDJ.J#WEEK,NODRAW;
日金叉:=CROSS(日K,日D) AND (日D<40 OR 日D>60);
周金叉:=CROSS(周K,周D) AND (周D<40 OR 周D>60);
共振:=(周金叉 AND 日金叉);
DRAWTEXT((周金叉 AND 日金叉),75,'  KDJ日周共振'),COLORYELLOW;
DRAWICON((周金叉 AND 日金叉),75,25);


 

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊舉報
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
通達(dá)信集體共振買賣點(diǎn)指標(biāo)公式
頂?shù)妆畴x選股公式
【精進(jìn)叁號主圖】--在原1號和2號的基礎(chǔ)上優(yōu)化 - 指標(biāo)公式 - 創(chuàng)幻論壇 - 中國最好的...
【圖】推薦南山老師的《頂?shù)妆畴x》(副圖指標(biāo))
MACD底背離的通達(dá)信選股公式
- 〖指標(biāo)公式交流〗 - 上出下買 三背離(原創(chuàng):浩申)分析家版MACD股市技術(shù)分析俱樂部 - bbs.macd.cn 金融界專業(yè)的股票證券之星,指標(biāo),外匯,期貨,證券,金融,圖文軟件,下載交流中心!
更多類似文章 >>
生活服務(wù)
熱點(diǎn)新聞
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服