Rss & SiteMap

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

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

标题:请教:引用后。。。。

1楼
FJ6008 发表于:2014/12/1 16:58:00

图片点击可在新窗口打开查看此主题相关图片如下:未命名.jpg
图片点击可在新窗口打开查看
2楼
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
3楼
jinzhe 发表于:2014/12/1 16:58:55
参考最后一条的解决方案
[此贴子已经被作者于2014/12/1 16:59:13编辑过]
4楼
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

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


 

5楼
jinzhe 发表于:2014/12/1 17:08:49

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

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

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


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