Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLongLimit and EnterShortLimit simultaneously

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    EnterLongLimit and EnterShortLimit simultaneously

    Hello,
    How can I put two Limit Pending Orders on both sides of the price?

    By doing this, only the first one is executed:
    EnterLongLimit(0,true,1, Close[0]-100, @"limitLong");
    EnterShortLimit(0,true,1, Close[0]+100, @"limitShort");

    Thanks in advance,
    Jose



    #2
    Hello toc17,

    Thanks for the post.

    Please see the details on the managed approach here:



    What you are seeing is this rule:

    "
    Methods that generate orders to enter a position will be ignored if:

    ...

    The strategy position is flat and an order submitted by an enter method (EnterLongLimit() for example) is active and the order is used to open a position in the opposite direction

    "

    The unmanaged approach would need to be used to achieve this style of trade.

    Please let me know if I can assist further.

    Comment


      #3
      It works, thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      30 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      47 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X