{MACD风控副图}
DIF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIF,9);
MACD : 2*(DIF-DEA);
STICKLINE(MACD>0 AND DIF>0,0,MACD,3,0),COLORRED;
STICKLINE(DIF<0 AND MACD>0,0,MACD,3,0),COLORGREEN;
STICKLINE(DIF>0 AND MACD<0,0,MACD,3,0),COLORYELLOW;
STICKLINE(DIF<0 AND MACD<0,0,MACD,3,0),COLORBLUE;
满仓:MACD>0 AND DIF>0,COLORRED,NODRAW;
半仓:DIF>0 AND MACD<0,COLORYELLOW,NODRAW;
轻仓:DIF<0 AND MACD>0,COLORGREEN,NODRAW;
空仓:DIF<0 AND MACD<0,COLORBLUE,NODRAW;