大智慧K线上运用MACD+BOLL公式源码 大智慧指标公式大全(2)
2015-11-2 9:03:42 股票入门 http://rumen.southmoney.com
{MACD:收阴K线 --------收盘的DIFF<开盘的DIFF-------}
STICKLINE(DC<DK,DH,DK,1,0),COLOR00FF99,LAYER4;
STICKLINE(DC<DK,DL,DC,1,0),COLOR00FF99,LAYER4;
STICKLINE(DC<DK,DC,DK,7,0),COLOR003300,LAYER0;
STICKLINE(DC<DK,DC,DK,5,0),COLOR006600,LAYER0;
STICKLINE(DC<DK,DC,DK,3,0),COLOR009900,LAYER0;
STICKLINE(DC<DK,DC,DK,1,0),COLOR00BB00,LAYER0;
{STICKLINE(DH>=DL,DH,DL,5,601),COLOR0099FF,LAYER4;
STICKLINE(DH<DL,DH,DL,5,601),COLORFF9900,LAYER4; }
{3.MACD的BOLL}
MID:MA(DC,LONG/2);;
UPPER:MID+2*STD(DC,LONG/2),COLOR0068ff,LAYER0;;
LOWER:MID-2*STD(DC,LONG/2),COLORff9900,LAYER0;;
partline(MID,MID>=ref(MID,1),rgb(255,0,0),MID<ref(MID,1),rgb(0,255,0)),LAYER0;;
{4.卖}
TYP:FORCAST(((2*C+H+L)/4*0.618+C*0.382),3),color00FFFF,linethick0;
AAX:=(TYP-ma(TYP,9))/ma(TYP,9)*100;
VARM:=MIN(COUNT(TYP,0),9);
AAX1:=EMA(AAX,VARM) *VARM;
AAX2:=MA(AAX1,3);
AAX3:=MA(AAX1,5);
卖:aax3>10 AND aax1<REF(aax1,1) and cross(aax2,aax1),linethick0;
VERTLINE(卖,2),colorFF9900,LAYER7;
======================================================================
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。