编写要求:
www.gszx.com.cn网解答:
网友求助:
(主图叠加)
A:=EMA(CLOSE,20) - EMA(CLOSE,60);
B:=EMA(A,8);
D:=2*(A-B);
FILLRGN(D>0,MA(C,20),MA(C,20)+D),COLOR00FFFF;
FILLRGN(D<0,MA(C,20),MA(C,20)+D),COLORFF0000;
MID:=MA(CLOSE,20);
MID+2*STD(CLOSE,20),COLOR0000FF;
MID-2*STD(CLOSE,20),COLOR00FF00;
解答如下:
A:=EMA(CLOSE,20) - EMA(CLOSE,60);
B:=EMA(A,8);
D:=2*(A-B);
DRAWBAND(MA(C,20),RGB(0,0,255),MA(C,20)+D,RGB(255,255,0));
MID:=MA(CLOSE,20);
MID+2*STD(CLOSE,20),COLOR0000FF;
MID-2*STD(CLOSE,20),COLOR00FF00;