Rss & SiteMap

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

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

标题:后台程序化

1楼
17878758708 发表于:2017/4/28 14:41:23
OO:VALUEWHEN(DATE<>REF(DATE,1),O);//表示今日第一根K线的开盘价
if C>=OO+1 and (TIME>=090000 and TIME<145500) and holding=0 then buy(1,1,limitr,c);//开多
if C<=OO-1 and (TIME>=090000 and TIME<145500) and holding=0 then buyshort(1,1,limitr,c);//开空
if C<=enterprice-4 or C>=enterprice+1 then sell(holding>0,holding,limitr,c) ;//多头止盈止损
if C>=enterprice+4 or C<=enterprice-1 then  sellshort(holding<0,holding,limitr,c);//空头止盈止损
if (TIME>=145900 and TIME<200000) or (TIME>=225500) then begin //收盘前全平
sell(holding>0,holding,limitr,c);
sellshort(holding<0,holding,limitr,c);
end

怎么修改双边持仓。
2楼
wenarm 发表于:2017/4/28 14:45:19

图表是虚拟持仓环境,不支持锁仓。开仓前必须平反手仓。

后台可以

3楼
17878758708 发表于:2017/4/28 14:55:33
修改下后台双边持仓,发过来,谢谢
4楼
wenarm 发表于:2017/4/28 15:02:35

提供你专业版用户账号信息,

http://www.weistock.com/bbs/dispbbs.asp?boardid=16&Id=57075

第三点参考学习

[此贴子已经被作者于2017/4/28 15:07:48编辑过]
共4 条记录, 每页显示 10 条, 页签: [1]


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