有人讲dmi可以防洗盘,作成主图看还好,b点为上穿点,加买可,低买嫌高了
n=20 m=55,俺用的
TR:=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;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);
多:=DMP*100/TR,COLORRED,LINETHICK2;
空:=DMM*100/TR;
买线:=多;
卖线:=空;
BU:=crOSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,L*0.95,'B'),COLORRED,LINETHICK3;
DRAWTEXT(BU,LOW,' ̄'),COLOR208FFF,LINETHICK3;
DRAWTEXT(SEL,HIGH,' ̄'),COLORFFFF00,LINETHICK3;
DRAWTEXT(SEL,HIGH,'S')COLORGREEN,LINETHICK3;
STICKLINE(买线>=卖线,LOW,HIGH,0,0),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLOR00FF00;
STICKLINE(买线<卖线,LOW,HIGH,0,0),COLOR00FF00;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,3,0),COLORFFFF00;
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLORYELLOW;