以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  如何编写隔日平仓  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=53182)

--  作者:wb5272
--  发布时间:2013/6/19 12:43:35
--  如何编写隔日平仓
股票交易中,条件A后,今日开仓,次日后条件b达到才可平仓,如何编写?谢谢
--  作者:jinzhe
--  发布时间:2013/6/19 13:14:54
--  

variable:nn=0;

if 开仓条件 and 持仓判断 then begin

下单语句;

nn:=date;

end

 

if date=nn+1 and 平仓条件 and 持仓判断 then 平仓语句;


--  作者:wb5272
--  发布时间:2013/7/10 11:07:42
--  

谢谢