通达信主升段BS点波段操盘指标公式
通达信主升段BS点波段操盘指标公式:
N:=20; M:=55;
TRR:=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/TRR,COLORRED,LINETHICK2;
空:=DMM*100/TRR;
买线:=多;
卖线:=空;
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;
通达信主升段BS点波段操盘指标公式实例图解:
通达信主升段BS点波段操盘指标公式