{海边主图源码如下}
DRAWTEXT(CROSS(主升MACD.CE1,主升MACD.EE1),REF(L,1),'买'),COLORYELLOW;
DRAWTEXT(CROSS(主升MACD.EE1,主升MACD.CE1),REF(H,1),'卖'),COLOR0430FB;
{海边副图源码如下}
M:=28;
N:=344;
P:=200;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2,COLORSTICK;
{DIF1:-(EMA(CLOSE,M)-EMA(CLOSE,N));}
{EMA(DIF,383),COLORFF1188,LINETHICK3;}
E3:=EMA(DIF,3);
E5:=EMA(DIF,5);
E10:=EMA(DIF,10);
E20:=EMA(DIF,20);
E60:=EMA(DIF,60);
E120:=EMA(DIF,120);
E240:=EMA(DIF,240);
E480:=EMA(DIF,480);
E960:=EMA(DIF,960);
E1920:=EMA(DIF,1920);
EE:(E3*3+E5*5+E10*10+E20*20+E60*60+E120*120+E240*240+E480*480+E960*960+E1920*1920)/3818;
EE1:(E3*3+E5*5)/8;
EE2:(E20*20+E60*60+E120*120+E240*240+E480*480)/920;
EE3:=(E3*3+E5*5+E10*10)/18;
CE1:((((EE2+EE3)/2+DIF)/2+DIF)/2+DIF)/2;
TT:EE2*(1+0.01*344),CIRCLEDOT,COLOR0000FF;
EACD:(CE1-EE1)*2,COLORSTICK;