求改指标 [博易POBO]
咨询内容:
DEA :=EMA(DIFF,9),COLORGREEN;
MACD:=2*(DIFF-DEA), COLORSTICK;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)DIFF AND CROSS(DEA,DIFF);
DRAWTEXT(B1,L,'▲');//MACD底背离
DRAWTEXT(D1,H,'▼');//MACD顶背离
如果这是这个指标在博易大师里面运行的话,把最后的双斜杠改成大括号就可以了,如下
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26),COLORYELLOW;
DEA :=EMA(DIFF,9),COLORGREEN;
MACD:=2*(DIFF-DEA), COLORSTICK;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)DIFF AND CROSS(DEA,DIFF);
DRAWTEXT(B1,L,'▲');{MACD底背离}
DRAWTEXT(D1,H,'▼');{MACD顶背离}
求改指标
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26),COLORYELLOW;DEA :=EMA(DIFF,9),COLORGREEN;
MACD:=2*(DIFF-DEA), COLORSTICK;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)
D1:=REF(C,C1+1)
DRAWTEXT(B1,L,'▲');//MACD底背离
DRAWTEXT(D1,H,'▼');//MACD顶背离
博易技术人员: 不知道您具体要表现的是个什么状态
如果这是这个指标在博易大师里面运行的话,把最后的双斜杠改成大括号就可以了,如下
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26),COLORYELLOW;
DEA :=EMA(DIFF,9),COLORGREEN;
MACD:=2*(DIFF-DEA), COLORSTICK;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)
D1:=REF(C,C1+1)
DRAWTEXT(B1,L,'▲');{MACD底背离}
DRAWTEXT(D1,H,'▼');{MACD顶背离}
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容