Rss & SiteMap

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

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

标题:这段代码,空头止损信号不出 什么原因?

1楼
liliang_nk 发表于:2012/8/6 12:35:03
if holding>0 and longcc<=0 then sell(1,defaultShou,limitr,o);
if holding<0 and shortcc>=0 then sellshort(1,defaultShou,limitr,o); //平空
if holding=0 and longcc>0 then buy(1,defaultShou,limitr,o);
if holding=0 and shortcc<0 then buyshort(1,defaultShou,limitr,o);

if longcc>0 and 1<zs then begin
 sell(0,defaultShou,limitr,min(0,zs-0.6));
 longcc:=0;
end

if shortcc<0 and 1>zs then begin
 sellshort(0,defaultShou,limitr,MAX(o,zs+0.6));
 drawtext(1, low-5, '空\n头\n止\n损');
 shortcc:=0;
 
空头止损信号不出 什么原因?
2楼
董小球 发表于:2012/8/6 13:13:17
shortcc:=0;是干什么的?
如果是判断持仓用的,干嘛不直接用HOLDING
共2 条记录, 每页显示 10 条, 页签: [1]


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