以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  为什么没有一个交易信号  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=78494)

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


--  作者:jinzhe
--  发布时间:2015/5/12 11:01:47
--  

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


--  作者:jinzhe
--  发布时间:2015/5/12 11:10:18
--  
你的信号在股指上是这样的,不会“没有一个交易信号”
图片点击可在新窗口打开查看此主题相关图片如下:1.png
图片点击可在新窗口打开查看