Rss & SiteMap

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

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

标题:这个模板写的对么?~

1楼
hazaiisme 发表于:2011/3/13 0:50:20

if holding=0 and hazai=1 then begin
 buy(1,1,limitr,close);
 newprice:=close;
 stoplossline:=newprice-stoplossrange;
end

if holding>0 then begin
 if(hh>newprice) then begin
  newprice:=hh;
 end 
 stoplossline:=newprice-stoplossrange;
 if enterbars>=2 and close<stoplossline then begin
  sell(1,holding,limitr,close);
    stoplossline:=0;
    newprice:=0;
  end
end

if holding=0 and hazai=-1 then begin
 buy(1,1,limitr,close);
 newprice:=close;
 stoplossline:=newprice-stoplossrange;
end

if holding<0 then
 if(ll<newprice) then begin begin
  newprice:=ll;
 end
 stoplossline=newprice+stoplossrange;
 if enterbars>=2 and close>stoplossline then begin
  buyshort(1,holding,limitr,close);
  stoplossline:=0;
  newprice:=0;
 end  
end

2楼
hazaiisme 发表于:2011/3/13 0:51:41
~作孽啊。。。发错区了。。。各位大哥实在抱歉~软件没有问题~很完美~
[此贴子已经被作者于2011-3-13 0:52:38编辑过]
共2 条记录, 每页显示 10 条, 页签: [1]


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