Rss & SiteMap

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

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

标题:[求助]tholding是不是只在最后的一根bar上参与运算?

1楼
z7c9 发表于:2010/11/1 11:07:36

比如后台策略中经常包括如:

 

if tholding=0 then begin
end;

if tholding>0 then begin
end;

if tholding<0 then begin
end;

 

是不是相当与这么写:

 

if islastbar then begin
if tholding=0 then begin
end;

if tholding>0 then begin
end;

if tholding<0 then begin
end;
end;
 

[此贴子已经被作者于2010-11-1 11:10:37编辑过]
2楼
fly 发表于:2010/11/1 14:27:20

tholding在所有周期上都有效.

 

后台程序化交易,只在最后一根K线上开平仓

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


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