WAVEPERIOD:=10;
AVGPERIOD:=21;
MOV:=2;
ESABUFFER := EMA(CLOSE,WAVEPERIOD);
DDVALUESBUFFER := ABS((2*HIGH + CLOSE+ 2*LOW)) / 5 - ESABUFFER;
DDBUFFER := EMA(DDVALUESBUFFER,WAVEPERIOD);
CIBUFFER := IF(DDBUFFER>0,((HIGH + CLOSE+ LOW) / 3.0 - ESABUFFER ) / (0.015 * DDBUFFER),0);
BULLLINEBUFFER := EMA(CIBUFFER, AVGPERIOD);
zbgs3:SMA(MAX(CLOSE-C,0),7,1)/SMA(ABS(CLOSE-C),7,1)*100,NODRAW;
BEARLINEBUFFER := EMA(BULLLINEBUFFER, MOV);
AA:=EMA(CLOSE,WAVEPERIOD);
BBB:= EMA(DDVALUESBUFFER,WAVEPERIOD);
HHH:=BBB-LLV(BBB,27);
CCC:=LLV(BBB,27)-BBB;
QQ:(EMA(HHH,0.5)*3+HHH*13)/15,COLORRED,LINETHICK1;
SS:(EMA(CCC,0.5)*3+CCC*13)/16,COLORRED,LINETHICK1;
GG:EMA(HHH,5),LINETHICK1,COLORGREEN;
MM:EMA(CCC,5),LINETHICK1,COLORGREEN;
WW:IF(QQ<GG ,SS,MM),LINETHICK1,COLORCYAN;
EE:IF(SS<MM ,GG,QQ),LINETHICK1,COLORCYAN;
S:0,COLOR00FFFF;
BUYSIGN:(EE-WW)<4.3 AND CROSS(QQ,GG);
趋势:IF(QQ>GG,0.5,0),COLORYELLOW;