Rss & SiteMap

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

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

标题:求助这个模板写得对么~

1楼
hazaiisme 发表于:2011/3/13 0:53:17

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楼
z7c9 发表于:2011/3/13 9:22:27

可以

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


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