打印本文打印本文 关闭窗口关闭窗口

[原创]

作者:金字塔 来源:cxh99.com 发布时间:2016年09月04日
  • 咨询内容: 用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);

     

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

     

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