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

Multiple EnterLimit

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

    Multiple EnterLimit

    Hi,

    I would like to ask if is possible to have open more position in one time.

    For eg:

    Open long on 1.3440
    Open long on 1.3450

    I need open 2nd order when first wasn't filled yet.

    Is this possible please if yes can you move to right way how to do it?

    #2
    Hello patriczek,

    Thanks for the post.

    You would need to use one of the limit/stop order entry methods that takes a signal name and assign your orders to Order objects.



    The OnOrderUpdate method help guide page shows how to set up a class level order object and initialize it in OnOrderUpdate. From that, you can manage what orders are exited at a particular time.

    This reference sample is somewhat related, it shows how you would scale out of a position.


    A brief example of how to submit long limit orders:

    OnBarUpdate()
    {
    //...
    if(condition)
    {
    EnterLongLimit(1234, "LongLimit1");
    EnterLongLimit(1236, "LongLimit2")
    }
    //...

    }

    Please let me know if I may be of any further assistance.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thank you so much for your help,

      this helped me, but also i had to change properties

      EntriesPerDirection and EntryHandling for allowing multiple order in same direction.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bortz, 11-06-2023, 08:04 AM
      47 responses
      1,603 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      8 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      18 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      4 views
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      12 views
      0 likes
      Last Post Javierw.ok  
      Working...
      X