Quantstrat:如何在同一条上执行? [英] quantstrat: how to execute on the same bar?
本文介绍了Quantstrat:如何在同一条上执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道您不应该这样做,但是由于我几乎完全基于每日和每周的数据进行交易,因此,如果我能够执行交易,我想我会得到一个更现实的交易想法.相同的酒吧,而不是隔天开放.谢谢!
I know that you're not supposed to be doing this but since I almost exclusively trade based on daily and weekly data, I think I'd be getting a more realistic idea of trading ideas if I were able to execute on the same bar instead of buying on next day's open. Thanks!
推荐答案
您可以将allowMagicalThinking=TRUE
添加到对applyRules
的呼叫中.如果将allowMagicalThinking=TRUE
添加到对applyStrategy
的调用中,它将被传递到applyRules
.
You can add allowMagicalThinking=TRUE
to your call to applyRules
. If you add allowMagicalThinking=TRUE
to your call to applyStrategy
, it will be passed to applyRules
.
这篇关于Quantstrat:如何在同一条上执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文