ADX穿越趨勢(shì)在附圖畫(huà)一根豎線 [文華財(cái)經(jīng)]
-
咨詢(xún)內(nèi)容:
?老師;我想把ADX穿越趨勢(shì)13收盤(pán);在附圖畫(huà)一根豎線;下面是源碼
{DMIC}
MTR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),13); HD :=HIGH-REF(HIGH,1); LD :=REF(LOW,1)-LOW; DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),13); DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),13); PDI:=DMP*100/MTR; MDI:=DMM*100/MTR; D:=PDI-22; K:=MDI-22; A:=D-K; STICKLINE(A>0 ,D,K,0,-1),COLORRED; STICKLINE(A<=0,K,D,0,-1),COLORGREEN; 多:D,COLORWHITE; 空:K,COLORYELLOW; 0; ADX:EMA((PDI-MDI)/(MDI+PDI)*100,3),COLORMAGENTA,LINETHICK1; ADXR:EMA(ADX,5),COLORGREEN,LINETHICK1; 趨勢(shì):EMA(ADX,13),COLORYELLOW,LINETHICK2; ?DRAWTEXT(ISLASTBAR,65,'不要預(yù)測(cè)價(jià)格!!,尋找系統(tǒng)1--4小時(shí)13線背離雙線交叉+站穩(wěn)4小時(shí)7均線,考慮轉(zhuǎn)勢(shì)'),ALIGN2;
??
?來(lái)源:程序化99
-
文華技術(shù)人員:
?參考:
?
MTR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),13);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),13);
DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),13);
PDI:=DMP*100/MTR;
MDI:=DMM*100/MTR;
D:=PDI-22;
K:=MDI-22;
A:=D-K;
STICKLINE(A>0 ,D,K,0,-1),COLORRED;
STICKLINE(A<=0,K,D,0,-1),COLORGREEN;
多:D,COLORWHITE;
空:K,COLORYELLOW;
0;
ADX:EMA((PDI-MDI)/(MDI+PDI)*100,3),COLORMAGENTA,LINETHICK1;
ADXR:EMA(ADX,5),COLORGREEN,LINETHICK1;
趨勢(shì):EMA(ADX,13),COLORYELLOW,LINETHICK2;
?DRAWTEXT(ISLASTBAR,65,'要預(yù)測(cè)價(jià)格!!,尋找系統(tǒng)1--4小時(shí)13線背離雙線交叉+站穩(wěn)4小時(shí)7均線,考慮轉(zhuǎn)勢(shì)',ALIGN2;
VERTLINE1(CROSS(ADX,趨勢(shì)));?
?來(lái)源: www.kzuj.com.cn
-
文華客服:
?老師;ADX下穿13趨勢(shì);沒(méi)有畫(huà)線?
?
-
網(wǎng)友回復(fù):
?最后一句這樣改下:
?
VERTLINE1(CROSS(ADX,趨勢(shì))||CROSSDOWN(ADX,趨勢(shì)));
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 或微信:cxhjy888 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容