Rss & SiteMap

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

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

标题:请教问题

1楼
punkcat401 发表于:2013/12/12 14:14:55

如果是日内第一次多头开仓,则正常开仓 IF holding=0 and 开仓条件 then buy

如果不是日内第一次做多,是日内平多仓后再次做多,则C大于上一次日内多头开仓价才开仓

 

如何描述呢

2楼
jinzhe 发表于:2013/12/12 14:24:30
if c>enterprice then buy....;
3楼
punkcat401 发表于:2013/12/12 14:33:49
以下是引用jinzhe在2013/12/12 14:24:30的发言:
if c>enterprice then buy....;

昏,请老师看清楚问题

第一个条件是,如果是日内第一次做多,则正常开仓,不用C>enterprice,就是忽略昨日的开仓价

4楼
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;

共4 条记录, 每页显示 10 条, 页签: [1]


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