以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  请教:引用后。。。。  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=72553)

--  作者:FJ6008
--  发布时间:2014/12/1 16:58:00
--  请教:引用后。。。。

图片点击可在新窗口打开查看此主题相关图片如下:未命名.jpg
图片点击可在新窗口打开查看

--  作者:FJ6008
--  发布时间:2014/12/1 16:58:37
--  
buycond:=( stopprice)<做多;
sellcond:=(stopprice)>做空;
//平多
if extgbdata(\'t1_flag\')>0 and sellcond  and barpos>extgbdata(\'bar\')  then  begin
  tsell(1,ss,mkt);
  extgbdataset(\'t1_flag\',0);
  end
//平空
if extgbdata(\'t1_flag\')<0 and buycond and barpos>extgbdata(\'bar\')  then  begin
  tsellshort(1,ss,mkt);
  extgbdataset(\'t1_flag\',0);
  end 
//开多
if extgbdata(\'t1_flag\')=0 and buycond then  begin
  tbuy(1,ss,mkt);
  extgbdataset(\'t1_flag\',1);
  extgbdataset(\'bar\',barpos);
  end
//开空
if extgbdata(\'t1_flag\')=0 and sellcond then
    begin
    tbuyshort(1,ss,mkt);
    extgbdataset(\'t1_flag\',-1);
    extgbdataset(\'bar\',barpos);
    end

--  作者:jinzhe
--  发布时间:2014/12/1 16:58:55
--  
参考最后一条的解决方案
[此贴子已经被作者于2014/12/1 16:59:13编辑过]

--  作者:FJ6008
--  发布时间:2014/12/1 17:03:29
--  

buycond:=( stopprice)<做多;
sellcond:=(stopprice)>做空;
//平多
if extgbdata(\'t1_flag\')>0 and sellcond  and barpos>extgbdata(\'bar\')  then  begin
  tsell(1,ss,mkt);
  extgbdataset(\'t1_flag\',0);
  end
//平空
if extgbdata(\'t1_flag\')<0 and buycond and barpos>extgbdata(\'bar\')  then  begin
  tsellshort(1,ss,mkt);
  extgbdataset(\'t1_flag\',0);
  end 
//开多
if extgbdata(\'t1_flag\')=0 and buycond then  begin
  tbuy(1,ss,mkt);
  extgbdataset(\'t1_flag\',1);
  extgbdataset(\'bar\',barpos);

 

从这里引用的:

http://www.weistock.com/bbs/dispbbs.asp?BoardID=4&ID=53236&skin=0

 不知道如何让处理,请帮忙处理一下吧,


 


--  作者:jinzhe
--  发布时间:2014/12/1 17:08:49
--  

http://www.weistock.com/bbs/dispbbs.asp?boardid=10&Id=48570

公式编辑器里面的提示链接是这个