欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件策略编写求助区 → 交易信号不能显示

   

欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。    


  共有3820人关注过本帖平板打印复制链接

主题:交易信号不能显示

帅哥哟,离线,有人找我吗?
rushtaotao
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 czt
等级:蜘蛛侠 帖子:1445 积分:6114 威望:0 精华:3 注册:2012/1/16 10:31:19
  发帖心情 Post By:2012/3/26 12:40:42 [只看该作者]

//?á??à??D???à?¨¢?
cond1:="kdj.j"<35 and "kdj.k"<35 and "kdj.d"<35;


//?a?¨¤
if time>093000 and time<145000 then
 begin
  if cond1 and cross("kdj.j","kdj.d") then
   begin
   sellshort(holding<0,0,thisclose);
   buy(1,1,thisclose);
   end
 end
 
//?1?e
if thisclose=(enterprice-0.2*25) then
 sell(holding>0,0,thisclose);
 

//???¨¤
if time>093000 and time<145000 and  "kdj.j">100 then
 sell(holding>0,0,thisclose);
  
//¨o??¨?
if time=145500 then
 begin
 sell(holding,0,market);
 sellshort(holding,0,market);
 end

 

 

 

 

你buy语句中第一个值为0,就说明条件永远不成立,永远都不执行buy语句;试试以上代码,就能出信号了

另外最小变动价位你可以直接用mindiff来替代哦

[此贴子已经被作者于2012-3-26 12:41:33编辑过]

 回到顶部