Rss & SiteMap

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

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

标题:为什么没有一个交易信号

1楼
qq代人发帖 发表于:2015/5/12 11:00:46

if holding=0 then
   begin
   MyEnterPrice:=open;
   buy(1,1,LIMITR,MyEnterPrice);
   end;

if holding>0 and high>=AVGENTERPRICE+2 then
   begin
   MyExitPrice:=AVGENTERPRICE+2;
   sell(1,0,LIMITR,MyExitPrice);
   end;
  
if holding>0 and low<=MyEnterPrice-5 then
   begin
   LongPrice5:=MyEnterPrice-5;
   buy(1,1,LIMITR,LongPrice5);
   end;
 
  
if holding>0 and low<=MyEnterPrice-10 then
   begin
   LongPrice10:=MyEnterPrice-10;
   buy(1,1,LIMITR,LongPrice10);
   end;

  
if holding>0 and low<=MyEnterPrice-20 then
   begin
   LongPrice20:=MyEnterPrice-20;
   buy(1,1,LIMITR,LongPrice20);
   end;

  
if holding>0 and low<=MyEnterPrice-50 then
   begin
   LongPrice50:=MyEnterPrice-50;
   buy(1,1,LIMITR,LongPrice50);
   end;
  
  
if holding>0 and low<=MyEnterPrice-100 then
   begin
   LongPrice100:=MyEnterPrice-100;
   buy(1,1,LIMITR,LongPrice100);
   end;

if holding>0 and low<=MyEnterPrice-200 then
   begin
   LongPrice200:=MyEnterPrice-200;
   buy(1,1,LIMITR,LongPrice100);
   end;

if holding>0 and low<=MyEnterPrice-500 then
   begin
   LongPrice500:=MyEnterPrice-500;
   buy(1,1,LIMITR,LongPrice500);
   end;

2楼
jinzhe 发表于:2015/5/12 11:01:47

这些代码看不出问题,请写全部的代码

3楼
jinzhe 发表于:2015/5/12 11:10:18
你的信号在股指上是这样的,不会“没有一个交易信号”
图片点击可在新窗口打开查看此主题相关图片如下:1.png
图片点击可在新窗口打开查看
共3 条记录, 每页显示 10 条, 页签: [1]


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