• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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:

    https://ninjatrader.com/support/help...d_approach.htm

    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.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      It works, thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by vpzdcv, Today, 02:31 AM
      0 responses
      7 views
      0 likes
      Last Post vpzdcv
      by vpzdcv
       
      Started by YevhenShynkarenko, Today, 01:22 AM
      0 responses
      14 views
      0 likes
      Last Post YevhenShynkarenko  
      Started by ttodua, Today, 12:52 AM
      0 responses
      6 views
      0 likes
      Last Post ttodua
      by ttodua
       
      Started by ttodua, Today, 12:50 AM
      0 responses
      5 views
      0 likes
      Last Post ttodua
      by ttodua
       
      Started by mulshah, Yesterday, 11:12 PM
      0 responses
      7 views
      0 likes
      Last Post mulshah
      by mulshah
       
      Working...
      X