Hello everyone,

I'm working on a strategy where I have multiple long positions in USDCAD with different entry prices. Here's a simplified example of my challenge:

  1. I open a long position at a price of 90 with a take-profit of 20 pips.
  2. The price drops to 60, and I open another long position with a take-profit of 20 pips.
  3. The price rises to 80, triggering the take-profit for the second position.
     

Question:
How can I ensure that the take-profit at 80 closes the position opened at 60 and not the one opened at 90?

I know Interactive Brokers and other broker support that natively already; I understand that QuantConnect doesn't natively support attaching take-profit orders to specific entries like some broker APIs do. What is the recommended approach to handle such scenarios in QuantConnect?