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


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 如何改成后台

   

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


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

主题:如何改成后台

美女呀,离线,留言给我吧!
代人发贴
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:金字塔客服 帖子:610 积分:0 威望:0 精华:0 注册:2013/10/22 14:33:15
如何改成后台  发帖心情 Post By:2018/3/7 17:13:14    Post IP:180.169.30.6[只看该作者]

ss:=1;
 
sumsell2:=sum(sellVOL,1500);
sumbuy2:=sum(buyVOL,1500);
sumsell3:=sum(IF(SELLVOL>=ma(vol,500),sellVOL,0),500);
sumbuy3:=sum(IF(BUYVOL>=ma(vol,500),buyVOL,0),500);

up:=every(c>ref(c,1) and buyvol>70,2);
down:= EVERY(c<ref(c,1)and sellvol>70,2); 

DT:=  up and sumbuy2<sumsell2 and mod(c,100)<70 ;
KT:= down and sumbuy2>sumsell2 and mod(c,100)>30 ;// and c>ref(c,3)and c<ref(c,3)

//DT2:= every(c>ref(c,1) and buyvol>70,6)  and sumbuy2<sumsell2  ;
//KT2:= EVERY(c<ref(c,1)and sellvol>70,6) and sumbuy2>sumsell2 ;// and c>ref(c,3)and c<ref(c,3)
jx:=ma(c,2000);


 回到顶部
帅哥哟,离线,有人找我吗?
FireScript
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:14496 积分:0 威望:0 精华:0 注册:2017/7/4 13:40:18
  发帖心情 Post By:2018/3/7 17:28:04    Post IP:180.169.30.6[只看该作者]

编写中,迟点在本帖下回复您。


命数如织,当如磐石。
 回到顶部
帅哥哟,离线,有人找我吗?
FireScript
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:14496 积分:0 威望:0 精华:0 注册:2017/7/4 13:40:18
  发帖心情 Post By:2018/3/9 10:16:29    Post IP:180.169.30.6[只看该作者]

tbuy(count(dt,6) and tholding=0,ss,lmt,DYNAINFO( 34));//thisclose 后台不可用,替换成后台对手价
tbuyshort(count(dt,6) and tholding=0,ss,lmt,DYNAINFO( 28));
tsellshort(count(tenterbars(1)>1000 and sumbuy3>sumsell3 and every(c>jx,10)  and count(c<jx,500)>50 and c<tENTERPRICE-20 or c>tENTERPRICE+200,8)and count(kt,8)=0 or every(up and sumbuy2<sumsell2 ,3),ss,lmt,DYNAINFO( 34));
tsell( count(tenterbars(1)>1000 and sumbuy3<sumsell3 and every(c<jx,10) and count(c>jx,500)>50 and c>tENTERPRICE+20 or c<tENTERPRICE-200,8) and count(dt,8)=0 or every(down and sumbuy2>sumsell2 ,3),ss,lmt,DYNAINFO( 28));

tsell(time=185900,0,MKT);
tsellshort(time=185900,0,MKT);

 

前面条件不变,这里改成后台处理的模式。不过后台和图表交易机制上有一定差异,最好对这个有所理解。



命数如织,当如磐石。
 回到顶部