Rss & SiteMap

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

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

标题:代码编写

1楼
jiangsen 发表于:2012/11/12 23:14:15
从开仓到现在这段时间中浮盈的最大值如何表示?
2楼
jinzhe 发表于:2012/11/13 9:09:58

variable:a=0;

 

if 开仓条件 and holding=0 then begin

buy();

a:=openprofit;

end

 

if openproft>a then a:=openprofit;

 

if 平仓条件 and holding>0 then begin

sell();

a:=0;

end

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


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