请大师帮忙修改 [博易POBO]
咨询内容:
MACD<0&&CROSSDOWN(MA5,MA10) || MA5<MA10&&CROSSDOWN(DIFF,DEA),SPK;//出卖点
AUTOFILTER;
DEA:= EMA(DIFF,9);
MACD:= 2*(DIFF-DEA);
MA5:=MA(C,5);
MA10:=MA(C,10);
DRAWTEXT(MACD>O AND CROSS(MA5,MA10),L,'多'),colorred;
DRAWTEXT(MA5>MA10 AND CROSS(DIFF,DEA),L,'多'),colorred;
DRAWTEXT(MACD<O AND CROSS(MA10,MA5),H,'空'),colorgreen;
DRAWTEXT(MA5<MA10 AND CROSS(DEA,DIFF),H,'空'),colorgreen; 老师是这样的要求的:有两个开单条件,满足其中一个就出信号?
比如,开多条件1,MACD红柱时MA5上穿MA10
开多条件2,MA5在MA10上方时MACD金叉
开空条件1,MACD绿柱时MA5下穿MA10
开空条件2,MA5在MA10下方时MACD死叉
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
MA5:MA(C,5);
MA10:MA(C,10);
MACD>0&&CROSSUP(MA5,MA10)||MA5>MA10&&CROSSUP(DIFF,DEA),BPK;//开多
MACD<0&&CROSSDOWN(MA5,MA10)||MA5<MA10&&CROSSDOWN(DIFF,DEA),SPK;//开空
来源 程序化久久网
请大师帮忙修改
MACD>0&&CROSSUP(MA5,MA10) || MA5>MA10&&CROSSUP(DIFF,DEA),BPK;//出买点MACD<0&&CROSSDOWN(MA5,MA10) || MA5<MA10&&CROSSDOWN(DIFF,DEA),SPK;//出卖点
AUTOFILTER;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);DEA:= EMA(DIFF,9);
MACD:= 2*(DIFF-DEA);
MA5:=MA(C,5);
MA10:=MA(C,10);
DRAWTEXT(MACD>O AND CROSS(MA5,MA10),L,'多'),colorred;
DRAWTEXT(MA5>MA10 AND CROSS(DIFF,DEA),L,'多'),colorred;
DRAWTEXT(MACD<O AND CROSS(MA10,MA5),H,'空'),colorgreen;
DRAWTEXT(MA5<MA10 AND CROSS(DEA,DIFF),H,'空'),colorgreen; 老师是这样的要求的:有两个开单条件,满足其中一个就出信号?
比如,开多条件1,MACD红柱时MA5上穿MA10
开多条件2,MA5在MA10上方时MACD金叉
开空条件1,MACD绿柱时MA5下穿MA10
开空条件2,MA5在MA10下方时MACD死叉
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
MA5:MA(C,5);
MA10:MA(C,10);
MACD>0&&CROSSUP(MA5,MA10)||MA5>MA10&&CROSSUP(DIFF,DEA),BPK;//开多
MACD<0&&CROSSDOWN(MA5,MA10)||MA5<MA10&&CROSSDOWN(DIFF,DEA),SPK;//开空
来源 程序化久久网
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 或微信:cxhjy888 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容