我试图通过投资组合的一部分(100%或20%)而不是固定订单数量(即10股)来让quantstrat发挥作用。我试图修改(Quantstrat: Ordersize function)中的ordersize函数,但我的代码在交易进行到一半时出错: [1] "2016-06-01 00:00:00 BP 3972.33383061equity in the strategy for this symbol (and this symbol only in isolation always,
# as this is how quantst