Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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

    Comment


      #3
      It works, thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by f.saeidi, Today, 08:01 PM
      0 responses
      1 view
      0 likes
      Last Post f.saeidi  
      Started by Rapine Heihei, Today, 07:51 PM
      0 responses
      3 views
      0 likes
      Last Post Rapine Heihei  
      Started by frslvr, 04-11-2024, 07:26 AM
      5 responses
      96 views
      1 like
      Last Post caryc123  
      Started by algospoke, 04-17-2024, 06:40 PM
      6 responses
      49 views
      0 likes
      Last Post algospoke  
      Started by arvidvanstaey, Today, 02:19 PM
      4 responses
      11 views
      0 likes
      Last Post arvidvanstaey  
      Working...
      X