以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://www.weistock.com/bbs/index.asp)
--  金字塔软件问题提交  (http://www.weistock.com/bbs/list.asp?boardid=2)
----  这个模板写的对么?~  (http://www.weistock.com/bbs/dispbbs.asp?boardid=2&id=5511)

--  作者: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


--  作者:hazaiisme
--  发布时间:2011/3/13 0:51:41
--  
~作孽啊。。。发错区了。。。各位大哥实在抱歉~软件没有问题~很完美~
[此贴子已经被作者于2011-3-13 0:52:38编辑过]