Whenever you're working with a new concept, try to isolate the new part from any existing code, so you can more easily follow its behavior. With OnExecution(), this means maybe just a simple example printing its events without any other complicated order condition logic. It's difficult to create all parts of your strategy all at once, especially if you're working in new territory. It's really a methodical process where you are checking one thing at a time, confirming behavior, and only then adding additional items/complexity to it.
You can always work with one of our 3rd party consultants if you have an idea but necessarily the time or programming experience to work through these items.

Comment