Thanks J¨¹rgen!
I made a quick test today an an execution condition on SPY to sell QQQ and it worked.
I will try with options tomorrow using the options contract localSymbol as the symbol:

IB doesn't check if the entered symbol is valid though:

You enter anything as a symbol and it goes through without getting an error: