I'm posting a lot of questions today, apologies, but I've been pushing myself to self-learn as much as possible, but in this question I'm sure someone has an immediate answer ready:
I want to track two IOrder objects, one is EntryOrder, and one is ExitOrder
I just found out that you can't do this:
protected override void OnOrderUpdate(IOrder EntryOrder)
{
process entryorder state changes
}
AND at the same time have
protected override void OnOrderUpdate(IOrder ExitOrder)
{
process exit order state changes and then submit new entry order
}
And you also can't do this:
protected override void OnOrderUpdate(IOrder EntryOrder, ExitOrder)
{
process entryorder and exitorder state changes
}
And the only thing I can think of is to keep updating the single IOrder values with entry and exit information, but then once I've filled IOrder object with exit order values, I won't be able to reference things like my entry order quantity without creating new variables to hold them.
So then, does anyone know a way to create and track the updates of two IOrder objects?
Thank you again!


Comment