Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to get lot size, lot step, and tick size?

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

    How to get lot size, lot step, and tick size?

    Hi,

    Anyone know the NinjaScript code to get the following info for a given instrument...

    1. full contract size or full lot size (ie. a standard lot for EURUSD is 100,000 but in futures 6E is 125,000)
    2. min contract size or aka lot step size (ie. for EURUSD min lot size is any multiple of 0.01)
    3. tick size (ie. tick size for EURUSD is usually 0.00001)

    For number 3 I am using the following code:

    Instrument instrument = Instrument.GetInstrument(name);

    double tickSize = instrument.MasterInstrument.TickSize;

    But not sure how to get number 1 and 2 for the full contract size and the min contract step size?

    TIA

    #2
    Hello defa0009,

    Different brokerages use different lot sizes and have different minimum contract sizes and unfortunately this information is not available in the NinjaTrader Desktop application.

    You would need to reach out to your broker and inquire what lot sizes and minimum contract sizes they use.

    A standard lot is equal to .1M
    A mini lot is equal to .01M
    A micro lot would then be .001M
    1,000 = .001M
    10,000 = .01M
    100,000 = .1M
    1,000,000 = 1.0M


    The TickSize you can get from the Instrument object Instrument.MasterInstrument.TickSize, which you have found.​
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks for clarifying.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      556 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      545 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X