Trying to understand why a lot of contract orders do not resolve to broker orders #602
-
|
Hi Looking at the order stack over the last couple of weeks I noticed that a lot of contract orders do not resolve to broker orders. This happened again yesterday; I took a screen shot of the print out of Taking a new screen shot today at 06:11 - none of the contract orders do not appear to have been resolved to broker orders: In addition to the contract orders not resolving; the broker order stack remains the same even though my system was scheduled - and seemingly did a full daily update including the run_cleaner, in between the two screen shots; I would have expected the broker order stack to have been changed after the daily update. With regards to the contract orders not resolving to broker orders; the documentation section about broker order creation lists several conditions that the code checks before issuing an order, one of them being instrument lock. Is there any way to check the instrument lock to see if this is an issue? I have done some checks with regrads to the mentioned conditions. In the case of CORN the system position limit is 1. I remember reading both in the book and in more detail on the blog about the problems with binary forecasts. Is this the issue? Is the position limit too small for the system to trade the instrument in a sensible manner? Hope someone can shed some light on what is going on here - would be very much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Best way to debug is to trade in 'manual mode' So turn off the run_stack_handler (interactive_controls) and fire up interactive_order_stack. Delete all the order stacks (option 4/42). Then run update_strategy_orders in another window. You should then see a bunch of instrument_orders appear (option 0/1). Pick one (maybe from a market that is from the list above but also that is currently trading). Spawn a contract order (1/10). Then try and execute the order (1/12). The whole time you need to be copying and pasting all the diagnostic text. Hopefully it will become clear what the problem is. If not then post the trace here. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Best way to debug is to trade in 'manual mode'
So turn off the run_stack_handler (interactive_controls) and fire up interactive_order_stack. Delete all the order stacks (option 4/42). Then run update_strategy_orders in another window. You should then see a bunch of instrument_orders appear (option 0/1). Pick one (maybe from a market that is from the list above but also that is currently trading). Spawn a contract order (1/10). Then try and execute the order (1/12). The whole time you need to be copying and pasting all the diagnostic text. Hopefully it will become clear what the problem is. If not then post the trace here.