1. How do I disable 'Exit on session close' for a strategy?
Orders:
1. My strategy creates the stop and limit order in State.Configure:
A. Are the stop and limit orders all them same position when I loop through Order[i]?
B. Why would there be a market order in the Orders collection? It was always the first ordertype.
Print("Order Count: " + Orders.Count());
for (int z = 0; z < Orders.Count(); z++)
{
Print(Orders[z].OrderTypeString);
}
C. Why is there still Orders in the order collection after the position is closed? I looped through the orders collection and even after my position was closed and the orders cancelled it kept showing order info.
I did all this testing using the playback connection.
Thanks!
Comment