| 以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://www.weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://www.weistock.com/bbs/list.asp?boardid=4) ---- 请教问题 (http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=59859)  | 
    
| --  作者:punkcat401 -- 发布时间:2013/12/12 14:14:55 -- 请教问题 如果是日内第一次多头开仓,则正常开仓 IF holding=0 and 开仓条件 then buy 如果不是日内第一次做多,是日内平多仓后再次做多,则C大于上一次日内多头开仓价才开仓 
 如何描述呢  | 
    
| --  作者:jinzhe -- 发布时间:2013/12/12 14:24:30 -- if c>enterprice then buy....;  | 
    
| --  作者:punkcat401 -- 发布时间:2013/12/12 14:33:49 -- 以下是引用jinzhe在2013/12/12 14:24:30的发言: 
	if c>enterprice then buy....; 昏,请老师看清楚问题 第一个条件是,如果是日内第一次做多,则正常开仓,不用C>enterprice,就是忽略昨日的开仓价  | 
    
| --  作者:jinzhe -- 发布时间:2013/12/12 14:49:54 -- variable:n=0; if n=0 and 开仓条件 and holdng=0 then begin buy....; n:=1; end 
 if n=1 and c>enterprice then buy......; 
 if time=closetime(0) then n:=0;  |