等级: 超级版主
- 注册:
- 2021-5-18
- 曾用名:
- wenarm
|
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
红面积:IF(DIF>DEA,SUM(MACD,BARSLAST(CROSS(DIF,DEA))),DRAWNULL),NODRAW,COLORLIRED;
绿面积:IF(DIF<DEA,SUM(MACD,BARSLAST(CROSS(DEA,DIF))),DRAWNULL),NODRAW,COLORGREEN;
DRAWNUMBER((CROSS(DIF,DEA),DEA,REF(绿面积,1)),7,COLORGREEN,1);
DRAWNUMBER((CROSS(DEA,DIF),DEA*1.1,REF(红面积,1)),7,COLORRED,1);
DRAWNUMBER((DIF>DEA,MACD,BARSLAST(CROSS(DIF,DEA))+1),7,COLORRED,1);
DRAWNUMBER((DIF<DEA,MACD,BARSLAST(CROSS(DEA,DIF))+1),7,COLORCYAN,1); |
|