|
文华的“MCD"源码:
SHORT:=12;
LONG:=26;
M:=9;
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),COLORAA0000,PRECIS1,NOTEXT;
DEA:EMA(DIF,M),COLOR2266AA,PRECIS1,NOTEXT;
MCD:4*(DIF-DEA),COLORFF2121,PRECIS1,NODRAW,NOTEXT;
STICKLINE1(MCD>=REF(MCD,1) AND MCD>0,0,MCD,0,0),COLORFF2121; //阳柱加长_红色
STICKLINE1(MCD< REF(MCD,1) AND MCD>0,0,MCD,0,0),COLORBBBB00; //阳柱缩短_黄色
STICKLINE1(MCD< REF(MCD,1) AND MCD<0,0,MCD,0,0),COLOR3366FF; //阴柱加长_蓝色
STICKLINE1(MCD> REF(MCD,1) AND MCD<0,0,MCD,0,0),COLOR00CC00; //阴柱缩短_绿色
DRAWCOLORLINE(DEA<REF(DEA,1),DEA,COLORAAAA44,COLOR2266AA);
DRAWCOLORLINE(DIF<REF(DIF,1),DIF,COLOR00AA00,COLORAA0000);
振幅H-L)/MINPRICE,COLORBBBBBB,PRECIS0,NODRAW;
实体C-O)/MINPRICE,COLOR33AACC,PRECIS0,NODRAW;
上影H-MAX(C,O))/MINPRICE,COLOR33AACC,PRECIS0,NODRAW;
下影MIN(C,O)-L)/MINPRICE,COLOR33AACC,PRECIS0,NODRAW;
均价:GETPRICE('AVPRICE'),COLORFFCC66,PRECIS0,NODRAW;
到均价CLOSE-均价)/MINPRICE,COLORCCAA55,PRECIS0,NODRAW;
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册入住
x
|