HHD:=HHV(DIF0,99);LLD:=LLV(DIF0,99);MMD:=(HHD-LLD)/2;
MMD0:=CONST(ISLASTBAR*MMD);
DIF1:=DIF0/MMD0*100;
DEA1:=EMA(DIF1,9);
MACD1:=(DIF1-DEA1)*2;
HHI:=HHV(DIF1,99);LLI:=LLV(DIF1,99);
HHM:=HHV(MACD1,99);LLM:=LLV(MACD1,99);
{www.9m8.cn 九毛八公式指标网 股票软件下载网_最新股票指标公式}
HH:=CONST(ISLASTBAR*MAX(+105,MAX(HHI,HHM)));
LL:=CONST(ISLASTBAR*MIN(-105,MIN(LLI,LLM)));
DRAWBAND( HH,RGB(20,20,70), SK,RGB(00,00,00));
DRAWBAND( LL,RGB(00,00,00), SK,RGB(70,20,20));
{DRAWBAND( SD,RGB(70,40,40), SK,RGB(40,40,60));}
DRAWBAND(SJ1,RGB(90,40,40),SJ2,RGB(00,00,00));
DRAWBAND(SJ4,RGB(40,40,99),SJ3,RGB(00,00,00));
DRAWBAND( J1,RGB(00,150,00), J2,RGB(00,00,250));
STICKLINE(CROSS(SK,SD),LL,LL+5,0,0),COLORLIGRAY;
STICKLINE(CROSS(SD,SK),HH,HH-5,0,0),COLORLIGRAY;
DIF:DIF1;
DEA:DEA1;
MACD:MACD1,COLORSTICK;