I am confused how to pair up the executions since I do not ever know the order id of any particular execution.
Can you point me in the right direction (I can handle the writing to a file--assuming it can be done within one of the order execution/position update methods)--but which of the events would allow me to capture the entry price (and the SMA value)---at the time of execution (entry) and pair it with the exit price after the trade is completed?
Thanks for any help you can offer to get me started with the correct event-driven order handling methods...
Comment