Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Limit orders on multi instruments

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

    Limit orders on multi instruments

    Currently I am entering using market orders to enter multi instrument orders, like this:

    Code:
    The above says limit order
    
    EnterLong(1,instru1, "Weakbuy");
    EnterShort(0,instru2, "Strongsell");
    I want to enter limit orders, so I tried this:

    Code:
         
    EnterLongLimit(1,instru1, Closes[1][0], "Weakbuy");
    EnterLongLimit(0,instru2, Close[0], "Strongsell");
    but I got this error:

    error =
    Strategy\Spread.cs No overload for method 'EnterLongLimit' takes '4' arguments CS1501 - click for info 62 14

    #2
    Hello calhawk01,

    I'm not quite sure what these overloads are suppose to represent.

    Here are the overloads from the help guide:

    EnterLongLimit(int quantity, double limitPrice, string signalName)

    EnterLongLimit(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double limitPrice, string signalName)
    http://www.ninjatrader.com/support/h...rlonglimit.htm

    What is instru1 and instru2 representing here? Is this a price?

    When you have EnterShort(0,instru2, "Strongsell"); is 0 the quantity? Is instru2 the price?
    If so that will not place an order.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello calhawk01,

      I'm not quite sure what these overloads are suppose to represent.

      Here are the overloads from the help guide:




      What is instru1 and instru2 representing here? Is this a price?

      When you have EnterShort(0,instru2, "Strongsell"); is 0 the quantity? Is instru2 the price?
      If so that will not place an order.
      When you have EnterShort(0,instru2, "Strongsell"); is 0 the quantity? Is instru2 the price?
      zero is the dataseries. and instru2 is the quantity.

      EnterLongLimit(Dataseries,int quantity, double limitPrice, string signalName) doesnt work. What is the correct way to enter limit price on second data series?
      Last edited by staycool3_a; 04-22-2015, 11:47 AM.

      Comment


        #4
        Hello calhawk01,

        That I know of there are no overloads that take:

        EnterLongLimit(int barsInProgressIndex, int quantity, string signalName)

        This is not in the help guide.

        You must use an overload that is available in the help guide or the call will not work.

        Below is a link to the help guide on EnterLongLimit().
        http://www.ninjatrader.com/support/h...rlonglimit.htm
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hello calhawk01,

          That I know of there are no overloads that take:

          EnterLongLimit(int barsInProgressIndex, int quantity, string signalName)

          This is not in the help guide.

          You must use an overload that is available in the help guide or the call will not work.

          Below is a link to the help guide on EnterLongLimit().
          http://www.ninjatrader.com/support/h...rlonglimit.htm

          I know how to enter a limit order. You and I both posted the code for it over 4 times within this thread. What is the code for enter limit orders on multiple data series? Or does that not exist? Thanks. BTW, the above code I posted does work for market orders:

          Comment


            #6
            Hello calhawk01,

            The overload parameters for market orders are not the same as for limit orders.

            Please compare the overloads found on the EnterLong page with the EnterLongLimit page.

            EnterLong - http://www.ninjatrader.com/support/h.../enterlong.htm

            EnterLongLimit - http://www.ninjatrader.com/support/h...rlonglimit.htm

            I am suggesting that you do not know the overload parameters for EnterLongLimit and I have provided you with a link that shows the overload parameter that allows you to select a bars in progress for the instrument index. There is only one overload parameter that will allow you to select a bar index.

            The overload parameters you are using may work for EnterLong() but do not match any overload parameters for EnterLongLimit().

            Please review the help guide for the proper overload parameters.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by andrewtrades, Today, 04:57 PM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by chbruno, Today, 04:10 PM
            0 responses
            3 views
            0 likes
            Last Post chbruno
            by chbruno
             
            Started by josh18955, 03-25-2023, 11:16 AM
            6 responses
            436 views
            0 likes
            Last Post Delerium  
            Started by FAQtrader, Today, 03:35 PM
            0 responses
            6 views
            0 likes
            Last Post FAQtrader  
            Started by rocketman7, Today, 09:41 AM
            5 responses
            19 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X