• 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

Export futures contract expiry

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

    Export futures contract expiry

    I would like to create an add-on to export the futures contract titles to a text or csv file including the expiry months from the instrument list. E.g. "ES 03-17" Is there a way to do this with Ninjascript?

    #2
    Hello Matts,

    Yes, this would be possible.

    Below is a link to a reference sample that demonstrates how to do this with an Indicator.
    http://ninjatrader.com/support/forum...ead.php?t=3475

    You would need to adapt this to an Addon and use a BarsRequest to get the data.
    http://ninjatrader.com/support/helpG...arsrequest.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chelsea. I was trying to access the link for the add on example http://ninjatrader.com/support/forum...hp?&linkid=763

      but I'm getting an error to say it doesn't exist. Would it be possible to access a copy of this file?

      Comment


        #4
        Hello Matts,

        I think you are looking for the Addon Framework example, is this correct?

        This was moved to the NT8 help guide on the AddOn Development Overview page.
        http://ninjatrader.com/support/helpG...t_overview.htm

        Below is a direct link.
        http://ninjatrader.com/support/helpG...ript_Basic.zip
        Last edited by NinjaTrader_ChelseaB; 01-16-2017, 10:52 AM.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Yes, that’s the one. The help guide has a link to the old thread from this page http://ninjatrader.com/support/helpG.../?ntwindow.htm which is how I started searching for it. I’ll also read through the AddOn Development Overview page, as I wasn’t aware of that.

          Comment


            #6
            I'd like to add this as a button under a list item on the load tab, in the historical data window. What steps would be needed to do this?

            Comment


              #7
              Hello Matts,

              I have an example that demonstrates opening an Addon window from a chart button you may find helpful.
              Attached Files
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by thgamey, Today, 06:46 PM
              0 responses
              5 views
              0 likes
              Last Post thgamey
              by thgamey
               
              Started by AxelrodWins, Yesterday, 09:56 PM
              2 responses
              22 views
              0 likes
              Last Post AxelrodWins  
              Started by Johnny Santiago, Yesterday, 08:47 AM
              1 response
              13 views
              0 likes
              Last Post NinjaTrader_EricB  
              Started by GLFX005, Today, 05:48 AM
              1 response
              10 views
              0 likes
              Last Post NinjaTrader_ChrisL  
              Started by TSmith, Today, 01:40 AM
              2 responses
              38 views
              0 likes
              Last Post TSmith
              by TSmith
               
              Working...
              X