OSC:=C-REF(MA(C,13),5);
分界:=MA(OSC,8);
DIFF := EMA(OSC,12) - EMA(OSC,26);
DEA := EMA(DIFF,9);
MACD := 2*(DIFF-DEA);
Z_F:=IF(C>REF(H,1),EMA(L,5),IF(C
K_d:=BARSLAST(C<=Z_F);
X_H:=K_d=1 and BARSLAST(MACD
{===================== 【解模板】===================== }
DRAWGBK((DATE > 0),COLORRGB(40,40,60),COLORRGB(10,10,10),1);
{柱线}
STICKLINE(MACD
STICKLINE(MACD0,0,MACD*4,0,0),LINEDOT,COLORYELLOW;
STICKLINE(MACD>ref(MACD,1) and MACD<0,0,MACD*4,0,0),LINEDOT,COLORMAGENTA;
STICKLINE(MACD>ref(MACD,1) and MACD>0,0,MACD*4,0,0),LINEDOT,COLORRED;
{www.gUPang.com _最新股票指标公式}
{K柱}
STICKLINE(OSC
STICKLINE(CROSS(ref(MACD,1),MACD) and MACD
STICKLINE(OSC>=REF(OSC,1),OSC,REF(OSC,1),7,0),LINETHICK2,COLORRED;//持股
STICKLINE(BARSLAST(X_H)<2,OSC,REF(OSC,1),7,0),LINETHICK2,COLORRED;//延时
STICKLINE(X_H,OSC,REF(OSC,1),7,0),LINETHICK2,COLORMAGENTA;//启动
STICKLINE(OSC<分界,OSC,REF(OSC,1),7,0),LINETHICK2,ColorFFA900;//空仓
动能线:OSC,ColorFFB5FF;
加速线:=(DEA-DIFF)*9.8,COLORGREEN;
{字}
DRAWTEXTEX(1,0,0,0,'粉启动'),COLORMAGENTA;
DRAWTEXTEX(1,0,40,0,'黄逃顶'),COLORYELLOW;
DRAWTEXTEX(1,0,80,0,'红持股'),COLORRED;
DRAWTEXTEX(1,0,120,0,'白警惕'),COLORWHITE;
DRAWTEXTEX(1,0,160,0,'兰空仓'),ColorFFA900;
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!