Rss & SiteMap

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

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

标题:请问这两种写法有什么区别

1楼
a7777 发表于:2013/3/5 22:26:56

if holding>0 then begin
 if enterprice-low>=i then
 sell(1,v1,thisclose); 这个是收盘价交易 
 end
 
if holding=0 then begin
 if high>=bbreak then
 buy(1,v1);这个没有交易命令,盘中好像不会开仓呀  为什么,这种写法要怎么用
 end
 
if holding=0 then begin
 if low<=sbreak then
 buyshort(1,v1);
 end
 end
2楼
jinzhe 发表于:2013/3/6 8:56:00
buy函数少了价位参数
共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.00000 s, 2 queries.