Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Working with Options in NinjaScript

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

    Working with Options in NinjaScript

    I'm running NinjaTrader version 8.0.22.2 64-bit configured to prefer Interactive Brokers for historical and real-time market data for options. Using NT with options is new to me, and I have a couple of questions related to working with them that I hope you will answer.

    Here's some background information to motivate my questions.

    My Interactive Brokers account currently holds a position in Micro E-Mini S&P 500 Futures Options. When I use a NinjaScript Add-On procedure to loop over the positions in my account, I see that the name of the master instrument of the instrument related to the option position is "MES_MESF" (that is, pos.Instrument.MasterInstrument.Name = "MES_MESF"), and that the full name of the instrument related to the option position is "MES_MESF 201218 P 3660" (that is, pos.Instrument.FullName = "MES_MESF 201218 P 3660").

    And here are my questions.

    Q1. Both the name and the full name mentioned above contain the part "_MESF;" what does this mean?

    Q2. The instrument database on my system contains an entry for MES (configured as a futures type), but its doesn't contain an entry for MES_MESF. Where do property values for MES_MESF come from when I use NinjaScript to read them, such as pos.Instrument.MasterInstrument.PointValue or pos.Instrument.MasterInstrument.TickSize?

    Thanks very much in advance for any insight you might provide.


    #2
    Hello NtFan,

    Thank you for your post.

    This would go beyond the means of support that we would be able to provide since Options are not supported for NinjaScript use as stated in the help guide linked below. The thread is open to any community members to share their insight.



    Please let us know if we may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X