Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:求助公式

1楼
zhu2018 发表于:2014/1/20 10:58:51
60钟[价++]3+[60价-60]   60钟[价+价+]3-[60-60]  利50  3030010300 K线 
2楼
jinzhe 发表于:2014/1/20 11:04:34

{价格大于前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

共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.03125 s, 3 queries.