Depending on certain conditions in a strategy, I want to place a long order with a limit, a stop loss and a profit target such that

  • A long position is opened once the equity price reaches the limit 
  • The long position is closed once the equity price either reaches the stop loss (lower boundary) or the profit target (upper boundary)
How can I realise that with LEAN?