Rss & SiteMap

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

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

标题:不再开仓

1楼
么么 发表于:2016/3/14 10:17:20
老师,不再开仓这句命令咋写
2楼
jinzhe 发表于:2016/3/14 10:22:39
这个要看不再开仓的条件是什么,以及再开仓的条件是什么,以及图表还是后台
3楼
么么 发表于:2016/3/14 10:25:53
老师,我的是后台,我基本策略是这样的,分为2部分
1,持仓大于500手不再执行任何500手不再执行任何命令;
2,只要是持仓亏损不再执行开仓操作。
4楼
jinzhe 发表于:2016/3/14 10:31:42

1.用tbuyholding和tsellholding来获取当前多空持仓,然后开仓条件写入 开多持仓+开空持仓<500

2.开仓条件加入TACCOUNT( 4)>0

5楼
么么 发表于:2016/3/14 10:57:24
老师,你看一下是不是这样
if   upper-lower>10*mindiff and c > MID+1*mindiff and c<=MID+6*mindiff and c>ma30 and upper-MID<20*mindiff and tbuyholding(1)<500 and taccount(4)>0 then begin
tbuy(1,5,mkt);
end
if upper-lower<10*mindiff and c < MID-1*mindiff and c>=MID-6*mindiff and c<ma30 and MID-LOWER<20*mindiff and TSELLHOLDING(1)<500  and taccount(4)>0then begin
tbuyshort(1,5,mkt);
end

6楼
jinzhe 发表于:2016/3/14 10:58:20
可以,先测试一下看看
共6 条记录, 每页显示 10 条, 页签: [1]


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