美化的MACD 坐标参数:1.50;1.00;0.50;0.00;-0.50;-1.00;-1.50
把数字贴在公式编辑器的坐标线长条窗内复制内容到剪贴板
源码
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK1;
DEA:EMA(DIF,9),COLORWHITE,LINETHICK1;
持仓段:0,COLOR00CFFF;
空仓段:0,COLORFFCCFF;
STICKLINE(DIF>DEA,-0.5,-0.6,10,1),COLOR00CFFF;
STICKLINE(DIF
DRAWTEXT(CROSS(DEA,DIF),DIF+0,'空仓'),COLORGREEN;
MACD彩柱:(DIF-DEA)*2,COLORSTICK;
STICKLINE(((MACD彩柱0)),0,MACD彩柱,1,0),COLORLIBLUE,LINETHICK1;
STICKLINE(((MACD彩柱>REF(MACD彩柱,1)) AND (MACD彩柱<0)),0,MACD彩柱,1,0),COLORFF00FF,LINETHICK1;
建仓:IF(DIF<0,DIF,0),COLORYELLOW,LINETHICK1;
加仓:IF(DIF<0,0,DIF),COLORRED,LINETHICK1;
白线破仓:IF(DIF