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

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.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pechtri, 06-22-2023, 02:31 AM
    10 responses
    124 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Yesterday, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Yesterday, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Yesterday, 03:01 PM
    2 responses
    22 views
    0 likes
    Last Post helpwanted  
    Working...
    X