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

How to determine minimal lot for given instrument and account?

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

    How to determine minimal lot for given instrument and account?

    Hello.

    How to determine minimal lot How to determine minimal lot for given instrument and account?

    I found only this: Account.ForexLotSize, while possible values of InstrumentType can be:
    Code:
    InstrumentType.Forex
    InstrumentType.Future
    InstrumentType.Index
    InstrumentType.Stock
    InstrumentType.Cfd
    InstrumentType.Option
    InstrumentType.Spread
    Does it mean, that minimal lot for all instruments types (except Forex), for all instruments, for all brokers is 1?
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello fx.practic,

    Thanks for opening the thread.

    Account.ForexLotSize is a property that gets set per account and does not get assigned per instrument. This essentially acts as a multiplier so order submission so Forex orders can be submitted in terms of lots, mini lots and micro lots.

    This value won't change based on the instrument used, and only orders submitted to Forex instruments will use it.

    If you have any additional questions, please don't hesitate to ask.
    JimNinjaTrader Customer Service

    Comment


      #3
      Is it possible to determine within NinjaScript minimal lot for particular forex instrument for given broker?
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment


        #4
        Hello fx.practic,

        When you refer to "minimal lot," are you referring to the minimum number of units (smallest lot size) that you can use for order submission, or are you referring to calculating the value of a mini lot of a given instrument?

        I look forward to your reply.
        JimNinjaTrader Customer Service

        Comment


          #5
          Do I have a choice?

          I mean just anything can avoid additional parameter in strategy.
          If I can get both - I'd like to know how to get (or calculate) both.

          But. of course, "minimum number of units (smallest lot size) that you can use for order submission" interesting me more.

          I creating strategy, that determine stop loss in ticks, and then calculate lot keeping stop loss in USD constant.

          I'd like to know how let it work on any instrument type, including Futures, Forex, Cfd.
          And let it work on different brokers accounts.
          Last edited by fx.practic; 09-08-2017, 03:47 PM.
          fx.practic
          NinjaTrader Ecosystem Vendor - fx.practic

          Comment


            #6
            Hello fx.practic,

            Thanks for the detail.

            There are a lot of factors to consider to model position sizing behaviors that will work well between multiple broker accounts, instruments and instrument types. There is not a way for NinjaTrader to dynamically get margin information from your broker so it can be used for calculations in a NinjaScript.

            Additionally, I cannot suggest a way to get commissions on an instrument before submitting an order. I can only suggest to getting the commission after an execution has been made and caught in OnExecutionUpdate().

            A minimum order size would also be something specific to your broker and would be best checked with them.

            As these values would change between brokers, I would not advise an approach to develop a universal calculation for position sizing.

            If there is anything else I can do to assist, please let me know.
            JimNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by sidlercom80, 10-28-2023, 08:49 AM
            166 responses
            2,234 views
            0 likes
            Last Post sidlercom80  
            Started by thread, Yesterday, 11:58 PM
            0 responses
            1 view
            0 likes
            Last Post thread
            by thread
             
            Started by jclose, Yesterday, 09:37 PM
            0 responses
            6 views
            0 likes
            Last Post jclose
            by jclose
             
            Started by WeyldFalcon, 08-07-2020, 06:13 AM
            10 responses
            1,414 views
            0 likes
            Last Post Traderontheroad  
            Started by firefoxforum12, Yesterday, 08:53 PM
            0 responses
            11 views
            0 likes
            Last Post firefoxforum12  
            Working...
            X