编写要求:
www.gszx.com.cn网解答:
网友求助:
请老师帮我把KDJ神马版改成大智慧的,谢谢!
零轴:0,DOTLINE,COLORGREEN;
K:EMA(CLOSE,2)-EMA(CLOSE,13),COLORWHITE;
D:EMA(K,13),COLOR00FFFF;
J:2*(K-D),COLORFF00FF;
IF(J>K AND K>D,J,DRAWNULL),LINETHICK1,COLORRED;
IF(K>=D,0,DRAWNULL),LINETHICK2,COLORRED;
IF(J<D AND J<=0,J,DRAWNULL),COLORGREEN;
IF(K>D,K,DRAWNULL),LINETHICK1,COLORWHITE;
IF(K>D,D,DRAWNULL),LINETHICK1,COLOR00FFFF;
解答如下:
轴:0,DOTLINE,COLORGREEN;
K:EMA(CLOSE,2)-EMA(CLOSE,13),COLORWHITE;
D:EMA(K,13),COLOR00FFFF;
J:2*(K-D),COLORFF00FF;
PARTLINE(J,J>K AND K>D,RGB(250,0,0));
PARTLINE(0,K>=D,RGB(250,0,0)),LINETHICK2;
PARTLINE(J,J<D AND J<=0,RGB(0,250,0));
PARTLINE(K,K>D,RGB(230,230,230));
PARTLINE(D,K>D,RGB(235,235,0));