Rss & SiteMap

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

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

标题:如何获取日内交易的止损次数

1楼
双保险 发表于:2013/3/9 20:46:26

如题,日内交易,如何得知止损次数超过2次?

2楼
qwe123 发表于:2013/3/10 12:10:36
variable:a1:=0;
r1:=barslast(date<>ref(date,1));
if r1=0 then a1:=0;
if holding>0 and cond1 then 
begin
sell.......
a1:=a1+1;
end
if holding<0 and cond2 then
begin
sellshort(.......;
a1:=a1+1;
end

//a1:日内被止损条件cond1和cond2止损的次数。

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


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