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

求助公式

作者:金字塔 来源:cxh99.com 发布时间:2014年03月06日
  • 咨询内容: 求助 在连续交易的条件下 当价格大于前60分钟[最髙价+最低价+收盘价]除3+[前60分钟的最高价-前60分钟最低价]时开空单   价格小于前60分钟[最高价+最低价+收盘价]除3-[前60分钟最高价-前60分钟最低价]时开多单  多空单赢利50点平仓  要求时间在30至300分钟可调 点数在10至300点可调 适应一分钟K线  谢谢老师

     

  • 金字塔客服:

    {价格大于前60分钟[最髙价+最低价+收盘价]除3+[前60分钟的最高价-前60分钟最低价]时开空单
     价格小于前60分钟[最高价+最低价+收盘价]除3-[前60分钟最高价-前60分钟最低价]时开多单
     多空单赢利50点平仓  要求时间在30至300分钟可调 点数在10至300点可调
    }
    input:n(60,30,300,1);
    input:m(50,10,300,1);

    if h>(ref(h+l+c,n)/3+ref(h-l,n)) then begin
     buyshort(holding=0,1,market);
    end

    if l<(ref(h+l+c,n)/3-ref(h-l,n)) then begin
     buy(holding=0,1,market);
    end

    if h-enterprice>m*mindiff and holding>0 then begin
     sell(1,0,market);
    end

    if enterprice-l>m*mindiff and holding<0 then begin
     sellshort(1,0,market);
    end

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