LONG:=26;
SHORT:=12;
M:=9;
OBV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/25000,1);
DIFF : EMA(OBV,12) - EMA(OBV,26);
BBDIFF:=DIFF-REF(DIFF,1);
DEA : EMA(DIFF,9);
BBDEA:=DEA-REF(DEA,1);
MACD : 2*(DIFF-DEA), COLORSTICK;
柱: 2*(DIFF-DEA);
BB柱:=柱-REF(柱,1);
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,2,0),colorred;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2,0),colorcyan;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2,0),colormagenta;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2,0),colorgreen;
DIFF速率:BBDIFF*100,,NODRAW;
DEA速率:BBDEA*100,,NODRAW;
柱速率:BB柱*100,,NODRAW;
Zero : 0;
DRAWICON(CROSS(MACD,0),0,'buy');
移动端首页 | PC端
© by gszx.com.cn Mobile Web
LONG:=26;
SHORT:=12;
M:=9;
OBV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/25000,1);
DIFF : EMA(OBV,12) - EMA(OBV,26);
BBDIFF:=DIFF-REF(DIFF,1);
DEA : EMA(DIFF,9);
BBDEA:=DEA-REF(DEA,1);
MACD : 2*(DIFF-DEA), COLORSTICK;
柱: 2*(DIFF-DEA);
BB柱:=柱-REF(柱,1);
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,2,0),colorred;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2,0),colorcyan;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2,0),colormagenta;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2,0),colorgreen;
DIFF速率:BBDIFF*100,,NODRAW;
DEA速率:BBDEA*100,,NODRAW;
柱速率:BB柱*100,,NODRAW;
Zero : 0;
DRAWICON(CROSS(MACD,0),0,'buy');