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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → [原创还是分时图问题?

   

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


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

主题:[原创还是分时图问题?

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


加好友 发短信
等级:新手上路 帖子:97 积分:0 威望:0 精华:0 注册:2016/12/5 13:36:44
[原创还是分时图问题?  发帖心情 Post By:2017/1/6 21:39:47    Post IP:60.181.20.77[只看该作者]

Fromula1的公式如下:
variable:ss=1;
variable:n=0;
if todaybar=1 then ss:=1;
if todaybar=1 then n:=0;
n1:=todaybar;
dm:=4-INTPART(LOG(C));
jsj:=ROUNDS(IF(sum(vol,n1)=0,C,sum(C*vol,n1)/sum(vol,n1)),2+dm);
cc:=c;
if cross(cc,jsj) or cross(jsj,cc) then n:=n+1;
if cross(n=4,0.5) then ss:=2;
if cross(n=6,0.5) then ss:=3;
if cross(cc,jsj) then begin
  
   buy(holding=0,ss,marketr);
end
 
if cross(jsj,cc) then begin
      buyshort(holding=0,ss,marketr);
end
 
if c<jsj-5 then sell(1,0,marketr);
if c>jsj+5 then sellshort(1,0,marketr);
 
if time0>=timetot0(closetime(0))-5*60 then begin
   sell(1,0,marketr);
   sellshort(1,0,marketr);
end 



fromula3的公式如下:
n1:=todaybar;
dm:=4-INTPART(LOG(C));
jsj:=ROUNDS(IF(sum(vol,n1)=0,C,sum(C*vol,n1)/sum(vol,n1)),2+dm);
cc:=c;
if cross(cc,jsj) then begin
  
   buy(holding=0,1,marketr);
end
 
if cross(jsj,cc) then begin
      buyshort(holding=0,1,marketr);
end
 
if c<jsj-5 then sell(1,0,marketr);
if c>jsj+5 then sellshort(1,0,marketr);
 
if time0>=timetot0(closetime(0))-5*60 then begin
   sell(1,0,marketr);
   sellshort(1,0,marketr);
end


我在开盘前做了图表化的分时图启动!
开盘不久就开了很多的仓,但价格都是0。也就是说其实没有一个开仓成功。但都出了开仓的指令。这是什么原因?
我是期货上的夜盘交易:21:00开仓


 回到顶部