Rss & SiteMap

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

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

标题:请老师:给改成后台程序吧!

1楼
FJ6008 发表于:2015/2/25 16:10:24
if c>zz and c>qs  then begin
sellshort(holding<0,SS,MARKET),orderqueue;
buy(holding=0,SS,limitr,(open)),orderqueue,;
end
 
if c<zz and c<qs   then begin
sell(holding>0,SS,MARKET),orderqueue;
buyshort(holding=0,SS,limitr,(open)),orderqueue;
end
  
if time>151300  then begin
收盘平空:SELLSHORT(HOLDING<0,HOLDING,market);
收盘平多:SELL(HOLDING>0,HOLDING,market);
end
2楼
FJ6008 发表于:2015/2/25 16:14:58

谢谢老师!

 

3楼
jinzhe 发表于:2015/2/25 16:18:39
if c>zz and c>qs  then begin
sellshort(tholding<0,SS,mkt),orderqueue;
buy(tholding=0,SS,lmt,o),orderqueue,;
end
 
if c<zz and c<qs   then begin
sell(tholding>0,SS,MARKET),orderqueue;
buyshort(tholding=0,SS,lmt,o),orderqueue;
end
  
if time>151300  then begin
收盘平空:tSELLSHORT(HOLDING<0,0,mkt);
收盘平多:tSELL(HOLDING>0,0,mkt);
end
4楼
FJ6008 发表于:2015/2/25 16:23:48

老师:不是这样吗

if c>zz and c>qs  then begin
Tsellshort(tholding<0,SS,mkt),orderqueue;
Tbuy(tholding=0,SS,lmt,o),orderqueue,;
end
 
if c<zz and c<qs   then begin
Tsell(tholding>0,SS,MARKET),orderqueue;
Tbuyshort(tholding=0,SS,lmt,o),orderqueue;
end

5楼
FJ6008 发表于:2015/2/25 16:25:19

我看教程是这样写的

 

6楼
FJ6008 发表于:2015/2/25 16:31:01

搞不明白了,只有请教了

 

7楼
jinzhe 发表于:2015/2/25 16:38:44
对,buy之前要加t写成tbuy,我漏改了不好意思
8楼
FJ6008 发表于:2015/2/25 17:07:11

谢谢!我的程序模型,在老师的支撑下已经很好了,接下来就是搞成后台模型了

 


图片点击可在新窗口打开查看此主题相关图片如下:未命名.jpg
图片点击可在新窗口打开查看
共8 条记录, 每页显示 10 条, 页签: [1]


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