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);
FSL:IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)),COLORFF00FF;
CZ:FSL-(EMA(C,3)-FSL),COLOR00FFFF;
PM:MA(C,5),COLORWHITE,LINETHICK2;
PARTLINE(PM>REF(PM,1),PM),COLORRED,LINETHICK2;
PARTLINE(PM=REF(PM,1),PM),COLORRED;
PARTLINE(PM<REF(PM,1),PM),COLORFF9900,LINETHICK2;
S:=(PM>CZ);
DD:=FSL<REF(FSL,1);
{公式平台,公式指标和源码 www.Gspt.com}
PARTLINE(DD,FSL),COLOR00FF00,LINETHICK2;
PARTLINE(S,FSL),COLOR00FF00,POINTDOT,LINETHICK4;