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

EnterLong Quantity

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

    EnterLong Quantity

    Hello

    When I use the EnterLong method it appears that the quantity parameter is represented in lots and not in units. For example, if a lot is equal to 10,000 units and I submit EnterLong(1) ,which is the minimum, my trade will be in 10,000 units. This does not allow a lot of flexibility with the trade size. Is there a way to make the EnterLong method to accept units and not lots? If not, is there a way to change the lot size?
    My broker is TradeKing.

    Thanks

    #2
    Hello kiss987,

    Thanks for your post.

    The lot size would be controlled by your broker and you may wish to discuss with them to verify what options they have.

    The enter methods are literal and pass through what integer value is given for quantity.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Paul is there an update for this in NJ8?

      I also would like to open a trade position in my strategy based upon a number of units rather than full Lots.

      Thanks

      Duncan

      Comment


        #4
        Hello Duncan,

        Thanks for your post.

        The broker is still the answer for live accounts.

        You can review all of the forex lot size details here: http://ninjatrader.com/support/helpG...with_forex.htm
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Paul

          I have read the reference material and I am still not very clear. Please clarify if my thinking is correct.

          I open the chart trade. I then use the buy Mkt button with the Order qty set to 10,000. I have just placed a potion valued at 1 mini Lot correct?

          By placing an order with the order qty set to 100,000, I have just placed a position for 1 full Lot correct?

          So using "EnterLong(1, "NameOfTarde"); in a strategy, are you saying I can only enter position sizes of Full Lots?

          If yes why does Chart Trader allow smaller positions?

          If no what is the correct stagey syntax to achieve a position of 10,000 units

          Comment


            #6
            Hello Duncan,

            What datafeed/broker do you use for forex?
            Paul H.NinjaTrader Customer Service

            Comment


              #7
              FXCM via NinjaTrader Brokerage.

              however that does not speak to the question?

              Comment


                #8
                Hello Duncan,

                Thanks for your reply.

                You can set the unit quantity in the strategy.
                Paul H.NinjaTrader Customer Service

                Comment


                  #9
                  Ok??? then what is the purpose of the "quantity" parameter of the EnterLong method. Your instruction manual seems to suggest it is for the purpose of setting the order quantity?

                  If the order quantity is not a Lot size control, what is it?

                  If quantity is a Lot size control, why have you limited it to full Lots?

                  Comment


                    #10
                    Paul

                    Apologies. I misread your answer.
                    You can set the unit quantity in the strategy
                    .

                    if I understand you correctly, 10,000 as a number in the quantity parameter is in units not Lots?

                    And if I wanted to submit an order of a one full lot the quantity parameter would need to be 100,000?

                    Comment


                      #11
                      Hello EastLondonKiwi,

                      Thank you for your response.

                      That is correct, you would 100,000 for 1 lot in the Chart Trader and the Strategies.

                      Please let me know if you have any questions.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by BarzTrading, Today, 07:25 AM
                      2 responses
                      13 views
                      1 like
                      Last Post BarzTrading  
                      Started by devatechnologies, 04-14-2024, 02:58 PM
                      3 responses
                      19 views
                      0 likes
                      Last Post NinjaTrader_BrandonH  
                      Started by tkaboris, Today, 08:01 AM
                      0 responses
                      3 views
                      0 likes
                      Last Post tkaboris  
                      Started by EB Worx, 04-04-2023, 02:34 AM
                      7 responses
                      162 views
                      0 likes
                      Last Post VFI26
                      by VFI26
                       
                      Started by Mizzouman1, Today, 07:35 AM
                      1 response
                      9 views
                      0 likes
                      Last Post NinjaTrader_Gaby  
                      Working...
                      X