Rss & SiteMap

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

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

标题:求助:后台如何编写这个

1楼
ZZAASSXX 发表于:2014/4/4 14:57:11
在1分钟周期上写后台模型
if con then tbuy(1,1,mkt);

如何实现30秒后如果是亏损的就平仓呢。
2楼
jinzhe 发表于:2014/4/4 14:59:07

if con and tholding=0 then begin

    tbuy(1,1,mkt);

    extgbdataset('shijian',timetot0(dynainfo(207)));

end

 

if timetot0(dynainfo(207))>=extgbdata('shijian')+30 and topenprofit<0 then tsell(1,0,mkt);

 

需要固定时间间隔模式,k线走完模式无法实现

[此贴子已经被作者于2014/4/4 14:59:19编辑过]
共2 条记录, 每页显示 10 条, 页签: [1]


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