一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

通達信DMI,MACD.RSI背離指標公式

 自由翱翔-zyax 2016-06-07

N:=14;
MM:=6;
RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*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), COLORSTICK;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(CLOSE,A1+1)>CLOSE AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
MACD底背離:FILTER(B1>0,5);
STICKLINE(FILTER(B1>0,5),0,10,1,0),COLOR00FF00;
DRAWTEXT(FILTER(B1>0,5),10,'MACD底背'),COLOR00FF00;
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B3:=REF(CLOSE,A3+1)>CLOSE AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);
RSI底背離:FILTER(B3>0,5),LINETHICK0;
STICKLINE(FILTER(B3>0,5),0,30,1,0),COLORFFFF00;
DRAWTEXT(FILTER(B3>0,5),30,'RSI底背'),COLORFFFF00;
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(CLOSE,C1+1)<CLOSE AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
MACD頂背離:FILTER(D1>0,5),LINETHICK0;
STICKLINE(FILTER(D1>0,5),100,80,1,0),COLOR0066FF;
DRAWTEXT(FILTER(D1>0,5),80,'MACD頂背'),COLOR0066FF;
C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
D3:=REF(CLOSE,C3+1)<CLOSE AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1);
RSI頂背離:FILTER(D3>0,5),LINETHICK0;
STICKLINE(FILTER(D3>0,5),100,80,1,0),COLOR15F70A;
DRAWTEXT(FILTER(D3>0,5),80,'RSI頂背'),COLOR15F70A;
{以上不動}
TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),21);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),21);
DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),21);
PDI:= DMP*100/TR1;
MDI:= DMM*100/TR1;
ADX: EMA((PDI-MDI)/(MDI+PDI)*100,6)*2;
ADXR:EMA(ADX,6);
ADMA:=EMA(ADX,20);
OMD:(ADX-2*ADMA+ADXR)/2, COLORSTICK;
DRAWBAND(ADX,RGB(155,50,50),ADXR,RGB(0,100,50));
STICKLINE(OMD>REF(OMD,1) AND OMD>0,0,OMD,1,0),COLORRED;
STICKLINE(OMD>REF(OMD,1) AND OMD<0,0,OMD,1,0),COLORGREEN;
STICKLINE(OMD<REF(OMD,1),0,OMD,1,0),COLORCBCBC0;
STICKLINE(OMD>=0 OR OMD<=0,0,0,50,1),COLORWHITE;
ADX1:ADX,COLORRED;
ADXR1:ADXR,COLORYELLOW;
{DMI頂?shù)妆畴x}
DM1:=BARSLAST(REF(CROSS(ADX1,ADXR1),1));
DM2:=REF(CLOSE,DM1+1)>CLOSE AND REF(ADX1,DM1+1)<ADX1 AND CROSS(ADX1,ADXR1);
DMI底背離:FILTER(DM2>0,5),LINETHICK0;
DRAWTEXT(FILTER(DM2>0,5),ADX1,'DMI底背'),COLORFFFF00;
DM3:=BARSLAST(REF(CROSS(ADXR1,ADX1),1));
DM4:=REF(CLOSE,DM3+1)<CLOSE AND REF(ADX1,DM3+1)>ADX1 AND CROSS(ADXR1,ADX1);
DMI頂背離:FILTER(DM4>0,5),LINETHICK0;
DRAWTEXT(FILTER(DM4>0,5),ADX1,'DMI頂背'),COLORGREEN;

通達信DMI,MACD.RSI背離指標公式

 

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

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多

    久久三级国外久久久三级| 国产精品流白浆无遮挡| 欧美日韩校园春色激情偷拍| 亚洲最大福利在线观看| 五月的丁香婷婷综合网| 久久本道综合色狠狠五月| 日韩综合国产欧美一区| 中文字幕欧美视频二区| 91欧美亚洲视频在线| 日韩精品成区中文字幕| 中文字幕在线五月婷婷| 久久福利视频这里有精品| 国产日韩在线一二三区| 国产极品粉嫩尤物一区二区| 日韩中文字幕视频在线高清版| 91精品视频免费播放| 国产又爽又猛又粗又色对黄| 欧美精品久久男人的天堂| 精品国自产拍天天青青草原 | 精品国模一区二区三区欧美| 亚洲中文字幕剧情在线播放| 日本东京热加勒比一区二区| 我的性感妹妹在线观看| 暴力三级a特黄在线观看| 日韩精品第一区二区三区| 中文字幕不卡欧美在线| 日本三区不卡高清更新二区| 精品伊人久久大香线蕉综合| 欧美精品二区中文乱码字幕高清| 熟女乱一区二区三区丝袜| 欧美亚洲美女资源国产| 亚洲五月婷婷中文字幕| 国产欧美一区二区另类精品| 日本本亚洲三级在线播放| 欧美人妻盗摄日韩偷拍| 在线观看日韩欧美综合黄片| 东京不热免费观看日本| 少妇熟女亚洲色图av天堂| 91日韩欧美国产视频| 美女被后入福利在线观看| 韩日黄片在线免费观看|