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

请修改文化指标 [文华财经]

  • 咨询内容:  DIF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIF,9);MACD:(DIF-DEA)*2,COLORSTICK;低位金叉:CROSS(DIF,DEA) AND DIF<-0.1,NODRAW,COLORFFFF11;STICKLINE(低位金叉 AND PERIOD>1,0,-0.10,1,0),COLORYELLOW;DRAWTEXT(低位金叉,DIF,'金叉ICON',COLORYELLOW;JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));二次金叉:CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,NODRAW,COLORLIMAGENTA;STICKLINE(MACD>=0,MACD,0,0.01,1),COLORF00FF0;STICKLINE(二次金叉 AND PERIOD>1,0,MACD*1.001,1,0),COLORFF00FF;DRAWICON(二次金叉 AND PERIOD>1,DEA*1.004,13) ;DRAWTEXT(二次金叉,DIF,ƈ金叉',COLORFFFF46;连绿:BARSLASTCOUNT(MACD<0),COLORGREEN,NODRAW;连红:BARSLASTCOUNT(MACD>0),NODRAW,COLORRED;连高:BARSLASTCOUNT(MACD>REF(MACD,1)),COLORYELLOW,NODRAW;连低:BARSLASTCOUNT(MACD<REF(MACD,1)),COLORFFFF11,NODRAW;A11:=BARSLAST(REF(CROSS(DIF,DEA),1));底背:=REF(CLOSE,A11+1)>CLOSE AND DIF>REF(DIF,A11+1) AND CROSS(DIF,DEA);STICKLINE(底背 AND PERIOD>1,0,MACD,1,0),COLORRED;DRAWTEXT(底背,DEA*0.1,'背',COLORYELLOW;A21:=BARSLAST(REF(CROSS(DEA,DIF),1));顶背:=REF(CLOSE,A21+1)<CLOSE AND REF(DIF,A21+1)>DIF AND CROSS(DEA,DIF);DRAWTEXT(顶背,DEA,'背',COLORYELLOW;STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.001,0),COLORAA00BB;STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.001,0),COLORFFAA00;STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,0.001,0),COLOR00AAFF;STICKLINE(MACD>=REF(MACD,1) AND MACD>0,0,MACD,0.001,0),COLOR0000AA;DRAWICON(CROSS(DIF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIF),DEA,2);IF(DIF>DEA,DIF,DRAWNULL),COLORRED;IF(DEA<DIF,DEA,DRAWNULL),COLORLIBLUE,LINETHICK1;

     

     来源:程序化99

  • 文华技术人员:  参考:
    DIF:EMA(CLOSE,12)-EMA(CLOSE,26); DEA:EMA(DIF,9); MACD:(DIF-DEA)*2,COLORSTICK; 低位金叉:CROSS(DIF,DEA) AND DIF<-0.1,NODRAW,COLORFFFF11; STICKLINE(低位金叉 AND PERIOD>1,0,-0.10,1,0),COLORYELLOW; DRAWTEXT(低位金叉,DIF,'金叉ICON',COLORYELLOW; JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0)); 二次金叉:CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,NODRAW,COLORMAGENTA; STICKLINE(MACD>=0,MACD,0,0.01,1),COLORF00FF0; STICKLINE(二次金叉 AND PERIOD>1,0,MACD*1.001,1,0),COLORFF00FF; DRAWICON(二次金叉 AND PERIOD>1,DEA*1.004,13) ; DRAWTEXT(二次金叉,DIF,'次金叉',COLORFFFF46; 连绿:BARSLASTCOUNT(MACD<0),COLORGREEN,NODRAW; 连红:BARSLASTCOUNT(MACD>0),NODRAW,COLORRED; 连高:BARSLASTCOUNT(MACD>REF(MACD,1)),COLORYELLOW,NODRAW; 连低:BARSLASTCOUNT(MACD<REF(MACD,1)),COLORFFFF11,NODRAW; A11:=BARSLAST(REF(CROSS(DIF,DEA),1)); 底背:=REF(CLOSE,A11+1)>CLOSE AND DIF>REF(DIF,A11+1) AND CROSS(DIF,DEA); STICKLINE(底背 AND PERIOD>1,0,MACD,1,0),COLORRED; DRAWTEXT(底背,DEA*0.1,'背',COLORYELLOW; A21:=BARSLAST(REF(CROSS(DEA,DIF),1)); 顶背:=REF(CLOSE,A21+1)<CLOSE AND REF(DIF,A21+1)>DIF AND CROSS(DEA,DIF); DRAWTEXT(顶背,DEA,'背',COLORYELLOW; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.001,0),COLORAA00BB; STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.001,0),COLORFFAA00; STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,0.001,0),COLOR00AAFF; STICKLINE(MACD>=REF(MACD,1) AND MACD>0,0,MACD,0.001,0),COLOR0000AA; DRAWICON(CROSS(DIF,DEA),DEA,1); DRAWICON(CROSS(DEA,DIF),DEA,2); IF(DIF>DEA,DIF,NULL),COLORRED; IF(DEA<DIF,DEA,NULL),COLORBLUE,LINETHICK1;

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


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

相关文章

    没有相关内容