帮修改声音公式 [文华财经]
- 咨询内容:
老师您好,我编了一个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)<DIFF AND CROSS(DIFF,DEA);
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
DRAWTEXT(B1,L,'▲');//MACD底背离
DRAWTEXT(D1,H,'▼');//MACD顶背离
DRAWTEXT(B1,L),SOUND(\'A\');
DRAWTEXT(D1,H),SOUND(\'A\'); - 文华技术人员:
修改如下:
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)<DIFF AND CROSS(DIFF,DEA);
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
DRAWTEXT(B1,L,'▲');//MACD底背离
DRAWTEXT(D1,H,'▼');//MACD顶背离
B1,SOUND('A');
D1,SOUND('B'); - 文华客服: 能用了,谢谢
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容