麻烦老师帮我编个指标 ,谢谢! [博易POBO]
咨询内容:
1,主图波段辅助指标
2,当附图MACD指标中的DIFF线大于DEA线的整个金叉区间找出主图K线中对应的最大值标注数据,并画一个短的黄色水平虚线。
3,当附图MACD指标中的DIFF线小于DEA线的整个死叉区间找出主图K线中对应的最小值标注数据,并画一个短的黄色水平虚线。
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
J:CROSS(DIFF,DEA),NODRAW;
S:CROSSDOWN(DIFF,DEA),NODRAW;
HH:CROSS(BACKSET(REFX(S,1),HHVBARS(H,BARSLAST(J)+1)+1),0.5),NODRAW;
LL:CROSS(BACKSET(REFX(J,1),LLVBARS(L,BARSLAST(S)+1)+1),0.5),NODRAW;
DRAWSL(HH,H,0,10,0,COLORRED);
DRAWSL(LL,L,0,10,0,COLORRED);
DRAWNUMBER(HH,H,H,1,COLORYELLOW);
DRAWNUMBER(LL,L,L,1,COLORYELLOW); DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
J:CROSS(DIFF,DEA),NODRAW;
S:CROSS(DEA,DIFF),NODRAW;
HH:CROSS(BACKSET(REFX(S,1),HHVBARS(H,BARSLAST(J)+1)+1),0.5),NODRAW;
LL:CROSS(BACKSET(REFX(J,1),LLVBARS(L,BARSLAST(S)+1)+1),0.5),NODRAW;
DRAWSL(HH,H,0,10,0),COLORRED;
DRAWSL(LL,L,0,10,0),COLORRED;
DRAWNUMBER(HH,H,H,1),COLORYELLOW;
DRAWNUMBER(LL,L,L,1),COLORYELLOW; 来源 程序化久久网
麻烦老师帮我编个指标 ,谢谢!
满足条件:1,主图波段辅助指标
2,当附图MACD指标中的DIFF线大于DEA线的整个金叉区间找出主图K线中对应的最大值标注数据,并画一个短的黄色水平虚线。
3,当附图MACD指标中的DIFF线小于DEA线的整个死叉区间找出主图K线中对应的最小值标注数据,并画一个短的黄色水平虚线。
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 请老师纠正一下语法错误,谢谢!DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
J:CROSS(DIFF,DEA),NODRAW;
S:CROSSDOWN(DIFF,DEA),NODRAW;
HH:CROSS(BACKSET(REFX(S,1),HHVBARS(H,BARSLAST(J)+1)+1),0.5),NODRAW;
LL:CROSS(BACKSET(REFX(J,1),LLVBARS(L,BARSLAST(S)+1)+1),0.5),NODRAW;
DRAWSL(HH,H,0,10,0,COLORRED);
DRAWSL(LL,L,0,10,0,COLORRED);
DRAWNUMBER(HH,H,H,1,COLORYELLOW);
DRAWNUMBER(LL,L,L,1,COLORYELLOW); DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
J:CROSS(DIFF,DEA),NODRAW;
S:CROSS(DEA,DIFF),NODRAW;
HH:CROSS(BACKSET(REFX(S,1),HHVBARS(H,BARSLAST(J)+1)+1),0.5),NODRAW;
LL:CROSS(BACKSET(REFX(J,1),LLVBARS(L,BARSLAST(S)+1)+1),0.5),NODRAW;
DRAWSL(HH,H,0,10,0),COLORRED;
DRAWSL(LL,L,0,10,0),COLORRED;
DRAWNUMBER(HH,H,H,1),COLORYELLOW;
DRAWNUMBER(LL,L,L,1),COLORYELLOW; 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容