1) When using the OnExection() method, the method will update on the event automatically, so I dont need to call it anywhere (because I tried calling it and I got an error)
2) If that is the case, will the OnExection() method also update on the exit of a position? Does the method know the difference between entreris and exits? Is there a way to call just when the entry is filled
3) With the IOrder I added a Profit and loss target (which I hope i can do), that I assume are submitted when the order is first executed on the entry. I want to cancel those Profit and Loss target after XX bars. So I called the CancelOrder() method after my counter reaches XX, and canceled the original order. Are the profit and loss targets treated as member of the original order, or do I need to make new orders for each
Thank you kindly
Comment