Rss & SiteMap

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

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

标题:请教问题

1楼
punkcat401 发表于:2013/12/26 13:30:54
条件A时做多 IF A then buy
多头连续亏损平仓两次后,日内不再做多
2楼
jinzhe 发表于:2013/12/26 13:38:28

有空头没?

 

3楼
punkcat401 发表于:2013/12/26 15:09:53
以下是引用jinzhe在2013/12/26 13:38:28的发言:

有空头没?

 

没有空头

4楼
jinzhe 发表于:2013/12/26 15:17:45

variable:n=0;

if date<>ref(date,1) then n:=0;

if 开多 and n<2 then buy;

if 平仓条件 and holding>0 then begin

    sell;//假定这里平仓使用thisclose

    if close-enterprice<0 then n:=n+1;

    if close-enterprice>0 then n:=0;

end

 

 

 

 

 

 

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


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