以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  金字塔软件问题提交  (http://weistock.com/bbs/list.asp?boardid=2)
----  请问这两种写法有什么区别  (http://weistock.com/bbs/dispbbs.asp?boardid=2&id=49220)

--  作者: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
--  作者:jinzhe
--  发布时间:2013/3/6 8:56:00
--  
buy函数少了价位参数