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 Waxavi, Today, 02:10 AM
      0 responses
      3 views
      0 likes
      Last Post Waxavi
      by Waxavi
       
      Started by TradeForge, Today, 02:09 AM
      0 responses
      9 views
      0 likes
      Last Post TradeForge  
      Started by Waxavi, Today, 02:00 AM
      0 responses
      2 views
      0 likes
      Last Post Waxavi
      by Waxavi
       
      Started by elirion, Today, 01:36 AM
      0 responses
      4 views
      0 likes
      Last Post elirion
      by elirion
       
      Started by gentlebenthebear, Today, 01:30 AM
      0 responses
      4 views
      0 likes
      Last Post gentlebenthebear  
      Working...
      X