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

[原创] [金字塔]

  • 咨询内容: 用2分钟的周期、当某根K线的波动大于10个点时开仓,比如:1、某根K线的最新价大于开盘价10个跳、开多,设置10个点的止损、盈利3个点止盈。                                                                             2、某根K线的最新价小于开盘价10个跳、开空,设置10个点的止损、盈利3个点止盈。  谢谢

     

  • 金字塔客服: 1、某根K线的最新价大于开盘价10个跳、开多,设置10个点的止损、盈利3个点止盈。 2、某根K线的最新价小于开盘价10个跳、开空,设置10个点的止损、盈利3个点止盈。     if c>o+10*mindiff then buy(holding=0,1,marketr); if holding>0 and c<enterprice-10 then sell(1,0,marketr); if holding>0 and c>enterprice+3 then sell(1,0,marketr);   if c<o-10*mindiff then buyshort(holding=0,1,marketr); if holding<0 and c>enterprice+10 then sellshort(1,0,marketr); if holding<0 and c<enterprice-3 then sellshort(1,0,marketr);

     

  • 用户回复: 把收盘价改成最新价DYNAINFO(7),这样可以吗?


    if DYNAINFO(7)>o+10*mindiff then buy(holding=0,1,MARKET);
    if holding>0 and DYNAINFO(7)<enterprice-10 then sell(1,0,MARKET);if holding>0 and DYNAINFO(7)>enterprice+3 then sell(1,0,MARKET);    if DYNAINFO(7)<o-10*mindiff then buyshort(holding=0,1,MARKET);if holding<0 and DYNAINFO(7)>enterprice+10 then sellshort(1,0,MARKET);if holding<0 and DYNAINFO(7)<enterprice-3 then sellshort(1,0,MARKET);

     

  • 网友回复: 不行,动态行情函数不能用在图表交易上

     

  • 网友回复: 那这样表的只能用收盘价来写吗?是否还有其他表达方式?
    还是要把他改成后台的?改后台的又应该怎么改呢?

 

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

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


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

相关文章

    没有相关内容