A:=MA(CLOSE,17)+Abs(MA(CLOSE,17)-REF(MA(CLOSE,17),1));
B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
分水岭:IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)),LINETHICK1,COLORMAGENTA;
操作线:分水岭-(EMA(C,3)-分水岭),LINETHICK1,COLORYELLOW;
PM:MA(C,5),COLORWHITE;
{ _通达信股票指标公式}
IF(PM>REF(PM,1),PM,DRAWNULL),COLORRED;
IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;
IF(PM<REF(PM,1),PM,DRAWNULL),COLORBLUE;
S:=(PM>操作线);
DD:=分水岭<REF(分水岭,1);
IF(DD,分水岭,DRAWNULL),COLORGREEN;
IF(S,分水岭,DRAWNULL),LINETHICK7,POINTDOT,COLORGREEN;