For China Stock Market, since there is 12 hour time difference, the only suitable order type for me is Market Order. That's why I want to change the limit order in the preload strategy to be the market order.
Say, there is a order: SellAtLimit(bar+1, p, 10.00, "LMT"). I modify this order to be the combination as the following:
CODE:
Please log in to see this code.
However, it shows error message: Error processing symbol SZ001696 Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
If I modify it to be:
CODE:
Please log in to see this code.
It shows the same error.
What's wrong with it please? Could you please help? Thanks.