My strategy is going to work like this:
When certain requirements are met, two pending orders are placed: buy stop limit and sell stop limit. If I understand correctly, I cannot achieve it in one strategy - I have to code two.
The next feature I'd like to have is to cancel one pending order when another is filled. Is it possible?
I tried to search for global variables so that my strategies could communicate - I found nothing. I though that maybe OnExecution() could help - but apparently this is not how it works (I guess it works only for executions made by strategy which contains OnExecution() ).
Any advice?

Comment