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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 请把这个思路编成程序,谢谢!

   

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


  共有5721人关注过本帖树形打印复制链接

主题:请把这个思路编成程序,谢谢!

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


加好友 发短信
等级:小飞侠 帖子:1882 积分:3310 威望:0 精华:15 注册:2010/3/15 13:11:56
  发帖心情 Post By:2011/2/11 17:27:50    Post IP:114.243.113.171[显示全部帖子]

图片点击可在新窗口打开查看

 

tj1:=ref(close,1)>ref(high,2);
tj2:=ref(close,1)<ref(low,2);

tj3:=ref(close,1)>ref(low,2) and ref(close,1)<ref(high,2);

hh:=max(ref(high,1),ref(high,2));
ll:=min(ref(low,1),ref(low,2));

tj4:=tj3 and close>hh;
tj5:=tj3 and close<ll;

tj6:=close>=ll and close<=hh;

hhh:=max(hh,high);
lll:=min(ll,low);

tj7:=tj6 and close<hhh;
tj8:=tj6 and close>lll;

red:=tj1 or tj4 or tj7;
green:=tj2 or tj5 or tj8;
 
stickline(red,c,o,8,0),color0000aa;
stickline(red,c,o,5,0),color0000cc;
stickline(red,c,o,3,0),color0000dd;
stickline(red,h,l,0,0),color0000ff;

stickline(green,c,o,8,0),color998855;
stickline(green,c,o,5,0),colorbbaa77;
stickline(green,c,o,3,0),colorddcc99;
stickline(green,l,h,0,0),colorffeebb;


 回到顶部