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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    94 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    140 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    74 views
    0 likes
    Last Post PaulMohn  
    Working...
    X