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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 请老师帮我改为金字塔

   

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


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

主题:请老师帮我改为金字塔

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


加好友 发短信
等级:金字塔养老院 帖子:1323 积分:6764 威望:0 精华:0 注册:2011/6/14 17:27:11
  发帖心情 Post By:2013/2/4 16:46:17    Post IP:58.246.57.26[显示全部帖子]


N:=BARSLAST(DATE<>REF(DATE,1))+1;//当天开盘至今的K线数
Y:=VALUEWHEN(DATE<>REF(DATE,1),O);//当天开盘价


if  (c<ref(llv(c,45),1) or c>=enterprice+4*(y*0.01)) then 
BEGIN
sellshort(holding<0 and time>=100600,holding,market);
end 

if time>=100600 and time<=144500 and c>ref(hhv(c,n),1) and c>y+y*0.025 then 
begin
buy(holding=0,1,market);
end

if  c>ref(hhv(c,45),1) or c<=enterprice-6*(y*0.05) then 
begin
sell(holding>0 and time>=100600 ,holding,market);
end 

if time>=100600 and time<=144500 and c<ref(llv(c,n),1) and c<y-y*0.45 then 
BEGIN
buyshort(holding=0,1,market);
end 

if time=151000 then BEGIN
sell(holding>0,holding,market);
sellshort(holding<0,holding,market);
end 

仅供参考


金字塔—专业程序化交易量化投资平台

客户服务部

-----------------------------------------------------------

欢迎您参加我公司的技术培训,具体培训需求请发邮件到service@weistock.com

您的宝贵建议或者投诉,请发往邮箱:weiwei@weistock.com
 回到顶部