指标引用的速度问题 [金字塔]
- 咨询内容:
	
	在交易系统中引用一个指标,和把这个指标写在交易系统里,这两个作比较哪个运行速度更快一些
	
 -  金字塔客服:
	
	引用快一点
	
 -  用户回复:
	
	aa:=cross(ma(c,5),ma(c,10));bb:=cross(ma(c,10),ma(c,5));if ref(aa,1) and holding<0 then begin   平空:sellshort(1,holding,limitr,o);   tsellshort(1,holding,mkt);endif ref(bb,1) and holding>0 then begin   平多:sell(1,holding,limitr,o);   tsell(1,holding,mkt);endif ref(aa,1) and holding=0 then begin   开多:buy(1,1,limter,o);   tbuy(1,1,mkt);endif ref(bb,1) and holding=0 then begin   开空:buyshort(1,1limter,o);   tbuyshort(1,1,mkt);end
请问,我把上面的1个系统用后台跑两个品种ag和au,两个品种间的开平会相互干扰吗,比如ag的开仓信号,结果把au的仓给开了。 - 网友回复: 不会,不影响
 
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198  进行 有偿 编写!(不贵!点击查看价格!)
                        
相关文章
- 
                        没有相关内容
                       
 

                    
会员登录/注册