• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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, 02: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 tecmisc1, Today, 09:57 AM
            0 responses
            2 views
            0 likes
            Last Post tecmisc1  
            Started by mbesha, Today, 09:26 AM
            0 responses
            1 view
            0 likes
            Last Post mbesha
            by mbesha
             
            Started by Brillo, Today, 08:58 AM
            0 responses
            6 views
            0 likes
            Last Post Brillo
            by Brillo
             
            Started by avrege, Today, 01:48 AM
            2 responses
            14 views
            0 likes
            Last Post avrege
            by avrege
             
            Started by markbb10, Today, 07:14 AM
            0 responses
            7 views
            0 likes
            Last Post markbb10  
            Working...
            X