|
软件简介:
MACD称为指数平滑移动平均线,是从双指数移动平均线发展而来的,由快的指数移动平均线(EMA12)减去慢的指数移动平均线(EMA26)得到快线DIF,再用2×(快线DIF-DIF的9日加权移动均线DEA)得到MACD柱。MACD的意义和双移动平均线基本相同,即由快、慢均线的离散、聚合表征当前的多空状态和股价可能的发展变化趋势,但阅读起来更方便。当MACD从负数转向正数,是买的信号。当MACD从正数转向负数,是卖的信号。当MACD以大角度变化,表示快的移动平均线和慢的移动平均线的差距非常迅速的拉开,代表了一个市场大趋势的转变。 MA1=EMA(CLOSE,2)-EMA(CLOSE,8);
MA7=EMA(MA1,8);
D1=(MA1-MA7)/6;
MA2=MA1-D1;
MA3=MA1-2*D1;
MA4=MA1-3*D1;
MA5=MA1-4*D1;
MA6=MA1-5*D1;
PARTLINE(MA1,MA1>REF(MA1,1),colorwhite,MA1<REF(MA1,1),colorff901e);
PARTLINE(MA2,MA2>REF(MA2,1),colorwhite,MA2<REF(MA2,1),colorff901e);
PARTLINE(MA3,MA3>REF(MA3,1),colorwhite,MA3<REF(MA3,1),colorff901e);
PARTLINE(MA4,MA4>REF(MA4,1),colorwhite,MA4<REF(MA4,1),colorff901e);
PARTLINE(MA5,MA5>REF(MA5,1),colorwhite,MA5<REF(MA5,1),colorff901e);
PARTLINE(MA6,MA6>REF(MA6,1),colorwhite,MA6<REF(MA6,1),colorff901e);
PARTLINE(MA7,MA7>REF(MA7,1),colorwhite,MA7<REF(MA7,1),colorff901e);
MA10=EMA(CLOSE,13)-EMA(CLOSE,21);
MA16=EMA(MA10,15);
D2=(MA10-MA16)/6;
MA11=MA10-D2;
MA12=MA10-2*D2;
MA13=MA10-3*D2;
MA14=MA10-4*D2;
MA15=MA10-5*D2;
PARTLINE(MA10,MA10>REF(MA10,1),color00d7ff,MA10<REF(MA10,1),colorgreen);
PARTLINE(MA11,MA11>REF(MA11,1),color00d7ff,MA11<REF(MA11,1),colorgreen);
PARTLINE(MA12,MA12>REF(MA12,1),color00d7ff,MA12<REF(MA12,1),colorgreen);
PARTLINE(MA13,MA13>REF(MA13,1),color00d7ff,MA13<REF(MA13,1),colorgreen);
PARTLINE(MA14,MA14>REF(MA14,1),color00d7ff,MA14<REF(MA14,1),colorgreen);
PARTLINE(MA15,MA15>REF(MA15,1),color00d7ff,MA15<REF(MA15,1),colorgreen);
PARTLINE(MA16,MA16>REF(MA16,1),color00d7ff,MA16<REF(MA16,1),colorgreen);
MA20=EMA(CLOSE,1)-EMA(CLOSE,3);
MA27=EMA(MA20,5);
D3=(MA20-MA27)/6;
MA21=MA20-D3;
MA22=MA20-2*D3;
MA23=MA20-3*D3;
MA24=MA20-4*D3;
MA25=MA20-5*D3;
MA26=MA20-6*D3;
PARTLINE(MA20,MA20>REF(MA20,1),colorred,MA20<REF(MA20,1),colorcyan);
PARTLINE(MA21,MA21>REF(MA21,1),colorred,MA21<REF(MA21,1),colorcyan);
PARTLINE(MA22,MA22>REF(MA22,1),colorred,MA22<REF(MA22,1),colorcyan);
PARTLINE(MA23,MA23>REF(MA23,1),colorred,MA23<REF(MA23,1),colorcyan);
PARTLINE(MA24,MA24>REF(MA24,1),colorred,MA24<REF(MA24,1),colorcyan);
PARTLINE(MA25,MA25>REF(MA25,1),colorred,MA25<REF(MA25,1),colorcyan);
PARTLINE(MA26,MA26>REF(MA26,1),colorred,MA26<REF(MA26,1),colorcyan);
PARTLINE(MA27,MA27>REF(MA27,1),colorred,MA27<REF(MA27,1),colorcyan);
DRAWICON(CROSS(MA10,MA20) AND MA20<MA1 ,MA27,17);
DRAWICON(CROSS(MA10,MA1) AND MA10>MA16,MA7,14);
DRAWICON(CROSS(MA27,MA1) AND MA1<MA7 ,MA20,26);
DRAWICON(MA1>REF(MA1,1) AND LOW<REF(LOW,1),MA1,11);//F30背离
0;
|