您现在的位置:程序化交易>> 期货公式>> 金字塔等>> 金字塔知识>>正文内容

如何优化这一段公式 [金字塔]

  • 咨询内容: 因为会做几个周期,好几个附图在一个模板上,刷新起来很慢如何优化,谢谢

    W:500000,colorblack;DDD : (MA(CLOSE,6)-MA(CLOSE,12));AM : MA(DDD,2);MAZ:=(O+C)/2;AA:C/MA(C,8)*100;BB:REF(MAZ/MA(MAZ,5),1)*100;DRAWICON(DDD>AM AND CURRBARSCOUNT,420000,4);DRAWICON(DDD<AM AND CURRBARSCOUNT,420000,5);DRAWICON(DDD=AM AND CURRBARSCOUNT,420000,3);DRAWICON(AA>BB AND CURRBARSCOUNT,300000,4);DRAWICON(AA<BB AND CURRBARSCOUNT,300000,5);DRAWICON(AA=BB AND CURRBARSCOUNT,300000,3);DRAWICON(REF(C,1)<C AND CURRBARSCOUNT,180000,4);DRAWICON(REF(C,1)>C AND CURRBARSCOUNT,180000,5);DRAWICON(REF(C,1)=C AND CURRBARSCOUNT,180000,3);DRAWTEXT(DDD>AM AND AA>BB AND REF(C,1)<C AND CURRBARSCOUNT,120000,'多'),COLORRED;DRAWTEXT(DDD>AM AND AA<BB AND REF(C,1)<C AND CURRBARSCOUNT,120000,'多'),COLORRED;DRAWTEXT(DDD<AM AND AA>BB AND REF(C,1)<C AND CURRBARSCOUNT,120000,'多'),COLORRED;DRAWTEXT(DDD<AM AND AA<BB AND REF(C,1)>C AND CURRBARSCOUNT,120000,'空'),COLORGREEN;DRAWTEXT(DDD<AM AND AA>BB AND REF(C,1)>C AND CURRBARSCOUNT,120000,'空'),COLORGREEN;DRAWTEXT(DDD>AM AND AA<BB AND REF(C,1)>C AND CURRBARSCOUNT,120000,'空'),COLORGREEN;DRAWTEXT(DDD>AM AND AA<BB AND REF(C,1)=C AND CURRBARSCOUNT,120000,'平'),COLORmagenta;DRAWTEXT(DDD<AM AND AA>BB AND REF(C,1)=C AND CURRBARSCOUNT,120000,'平'),COLORmagenta;
    DRAWTEXT(REF(DDD,1)>REF(AM,1) AND REF(AA,1)>REF(BB,1) AND REF(C,2)<REF(C,1) AND DDD>AM AND AA>BB AND REF(C,1)>C AND CURRBARSCOUNT,120000,'多'),COLORRED;DRAWTEXT(REF(DDD,1)<REF(AM,1) AND REF(AA,1)>REF(BB,1) AND REF(C,2)<REF(C,1) AND DDD>AM AND AA>BB AND REF(C,1)>C AND CURRBARSCOUNT,120000,'多'),COLORRED;DRAWTEXT(REF(DDD,1)>REF(AM,1) AND REF(AA,1)<REF(BB,1) AND REF(C,2)<REF(C,1) AND DDD>AM AND AA>BB AND REF(C,1)>C AND CURRBARSCOUNT,120000,'多'),COLORRED;

     

  • 金字塔客服: 不影响现在显示的情况下

     

     来源:程序化久久网( WWW.CXH99.COM )

  • 用户回复: 逻辑上没法优化,都是单一函数组成的顺序结构。
    你这种策略,可以使用序列模式编译运行。

     

  • 网友回复: 周六都回复,感谢,老师,如何做序列模式编译运行

     

  • 网友回复:  
    此主题相关图片如下:temp.png
    这里勾选下即可。

 

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

可联系技术人员 QQ: 1145508240  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)

怎么收费,代编流程等详情请点击阅读,或QQ微信联系我们!


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

相关文章

    没有相关内容