N:=14;M:=6;{高手指标公式网www.gs6699.com}
主力控盘买卖:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
选股指标公式:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);
cssd1:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);
PDI:= 选股指标公式*100/主力控盘买卖;
MDI:= cssd1*100/主力控盘买卖;
STICKLINE(PDI>=MDI,PDI-MDI,0,2,1),COLOR9900FF;
STICKLINE(PDI<MDI,PDI-MDI,0,2,1),COLORF69ECE;
cssd2:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
cssd2R:=EXPMEMA(cssd2,M);
DRAWBAND(cssd2,RGB(200,0,200),cssd2R,RGB(150,150,150));
cssd22:EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR00EEEE,LINETHICK1;
cssd2R2:EXPMEMA(cssd2,M),COLORFFFFFF,LINETHICK1;
cssd3:=50,COLORF0F000,POINTDOT;
IF(cssd2>=cssd2R,85,DRAWNULL),COLORF580F5,LINETHICK8;
IF(cssd2<cssd2R,85,DRAWNULL),COLORCCDD66,LINETHICK6;
IF(PDI>=MDI,-55,DRAWNULL),COLOR0000EE,LINETHICK8;
IF(PDI<MDI,-55,DRAWNULL),COLOR33AA33,LINETHICK6;