/*
N:=14;
M:=6;
ADXP:=1;
TR1:= SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N);
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),N);
DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),N);
PDI: DMP*100/TR1;
MDI: DMM*100/TR1;
ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:(ADX+REF(ADX,M))/2;
{传统MDI加进四条线 两句话较好}
CD0:20;
CD1:40;
TD0:60;
TD1:80;
DRAWTEXT(CROSS( PDI,CD0), CD0,'●金'),COLORMAGENTA;
DRAWTEXT(CROSS( TD0,PDI), PDI,'●死'),COLORBLUE;
DRAWTEXT(CROSS( ADX,CD0), CD0,'●金'),COLORMAGENTA;
DRAWTEXT(CROSS( TD0,ADX), ADX,'●死'),COLORBLUE;
DRAWTEXT(CROSS( PDI,MDI), MDI,'★金'), COLORYELLOW;
DRAWTEXT(CROSS( MDI,PDI), PDI,'★死'), COLORGREEN;
DRAWTEXT(CROSS( ADX,ADXP), ADXP,'★金'), COLOR000999 ;
DRAWTEXT(CROSS( ADXP,ADX), ADX,'★死'), COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=35,,'梦的海洋友情提示:'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=35,76,'PDI线上穿20介入,下破60急出手 '),COLORBLUE;
DRAWTEXT(CURRBARSCOUNT=35,,'ADX线上穿20介入,下破60急出手'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=35,,''),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=35,,':'),COLORBLUE;
DRAWTEXT(CURRBARSCOUNT=35,,':'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=35,50,'如 */
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
多空分界线:50,COLORRED;
SJ
期货软件指标公式源码文华财经指标多空分界线 来自淘豆网m.daumloan.com转载请标明出处.