Error 049: Too many trades
This error happens sometimes when there is both an adviseLong and an adviseShort, and TradesPerBar has not been bumped above the default of 1. Other times, the error does not happen. And I haven't had success isolating that. It's a black box.
Anyway, I think this message could be made more informative. First, the message should be, "Too many trades of the same asset in the same bar", since that's the only reason for the message listed here
http://manual.zorro-trader.com/errors.htmSecond, the number listed in parenthesis is a distraction. It's a number without a label. I think that's the total number of trades? Or the process id? I don't know what that is. Anyway, that should be a (2), in other words, TradesPerBar+1.
So something like
"Error 049: Too many trades of the same asset in the same bar (2 trades of EUR/USD in Bar 1)!"
Instead of
"Error 049: Too many trades (4303)!"
would have saved me many hours of hair-pulling. Thanks.