大机构波段风暴改,贴图,源码
大机构波段风暴是个很经典的波段副图,
公式没改变,只增加柱线,这样显得更直观
{DJG波段风暴改}
{}
DIFG:EMA(CLOSE,21)-EMA(CLOSE,34)NODRAW;
DEAG:EMA(DIFG,8)NODRAW;
MACDD:20*(DIFG-DEAG)COLORSTICK;
MARDD:=SMA(MACDD,2,1);
{}
STICKLINE(MACDD>REF(MACDD,1) AND MACDD<0,MACDD,0,0,0)COLORMAGENTA;
STICKLINE(MACDD<REF(MACDD,1) AND MACDD<0,MACDD,0,0,0)COLORGREEN;
STICKLINE(MACDD>REF(MACDD,1) AND MACDD>0,MACDD,0,0,0)COLORRED;
STICKLINE(MACDD<REF(MACDD,1) AND MACDD>0,MACDD,0,0,0)COLORCYAN;
{}
STICKLINE(MACDD>MARDD,MACDD,MARDD,1,0),COLORRED;
STICKLINE(MACDD<MARDD,MACDD,MARDD,1,0),COLORBLUE;
原版
{DJG波段风暴}
DIFF:=EMA(CLOSE,21)-EMA(CLOSE,34);
DEA:=EMA(DIFF,8);
MACDD:=20*(DIFF-DEA);
MARDD:=SMA(MACDD,2,1);
STICKLINE(MACDD>MARDD,MACDD,MARDD,1,0),COLOR0000FF;
STICKLINE(MACDD<MARDD,MACDD,MARDD,1,0),COLORFF0000;