您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

老师帮忙,金叉死叉背离 [文华财经]

  • 咨询内容:
  • 咨询内容:DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);
  • 咨询内容:DEA:EMA(DIFF,9);
  • 咨询内容:MACD:2*(DIFF-DEA),NODRAW;
  • 咨询内容:STICKLINE1(MACD<0&&MACD>REF(MACD,1),0,MACD,0.5,0),COLORRED;
  • 咨询内容:STICKLINE1(MACD<=0&&MACD<=REF(MACD,1),0,MACD,0.5,0),COLORGREEN;
  • 咨询内容:STICKLINE1(MACD>0&&MACD<REF(MACD,1),0,MACD,0.5,0),COLORGREEN;
  • 咨询内容:STICKLINE1(MACD>=0&&MACD>=REF(MACD,1),0,MACD,0.5,0),COLORRED;
     
  • 咨询内容:当前金叉,红柱最大值对应的最高价与上一次金叉红柱的最大值对应的最高价背离
  • 咨询内容:当前死叉,绿柱最大值(绝对值)对应的最低价与上一次死叉绿柱最大值(绝对值)对应的最低价背离 

     

  • 文华技术人员:  如果满足背离的k线 是需要进行标注?

     

  • 文华客服:  是的 老师

     

  • 网友回复:  DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);DEA  : EMA(DIFF,9);MACD:2*(DIFF-DEA),COLORSTICK;M1:VALUEWHEN(CROSS(DIFF,DEA),LLV(MACD,BARSLAST(CROSS(DEA,DIFF)))),NODRAW;MP1:=VALUEWHEN(CROSS(DIFF,DEA),LLVBARS(MACD,BARSLAST(CROSS(DEA,DIFF)))),NODRAW;P1:=SUMBARS(CROSS(DIFF,DEA)=1,2);M2:REF(LLV(MACD,BARSLAST(CROSS(DEA,DIFF))),P1),NODRAW;MP2:=REF(LLVBARS(MACD,BARSLAST(CROSS(DEA,DIFF))),P1);L1:REF(L,MP1+BARSLAST(CROSS(DIFF,DEA))),NODRAW;L2:REF(L,P1+MP2),NODRAW;DW:=BACKSET(CROSS(DIFF,DEA)&&M1<M2&&L1>L2,LLVBARS(MACD,BARSLAST(CROSS(DEA,DIFF)))+1);DRAWICON(CROSS(DW,0.5),MACD,'ICO2');M11:VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(MACD,BARSLAST(CROSSDOWN(DEA,DIFF)))),NODRAW;MP11:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHVBARS(MACD,BARSLAST(CROSSDOWN(DEA,DIFF))));P11:=SUMBARS(CROSSDOWN(DIFF,DEA)=1,2);M21:REF(HHV(MACD,BARSLAST(CROSSDOWN(DEA,DIFF))),P11),NODRAW;MP21:=REF(HHVBARS(MACD,BARSLAST(CROSSDOWN(DEA,DIFF))),P11);H1:REF(H,MP11+BARSLAST(CROSSDOWN(DIFF,DEA))),NODRAW;H2:REF(H,P11+MP21),NODRAW;DW1:=BACKSET(CROSSDOWN(DIFF,DEA)&&M11>M21&&H1<H2,HHVBARS(MACD,BARSLAST(CROSSDOWN(DEA,DIFF)))+1);DRAWICON(CROSS(DW1,0.5),MACD,'ICO1');

     

  • 网友回复:  老师您编写的不是我发的1楼的指标啊

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容