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

instrument settings

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

    instrument settings

    I have an indicator that requires the chosen instrument to start Jan 1 of a chosen year, otherwise the calculated graph will not sync with the chart.

    How do I adjust the instrument settings, or format the symbol, to be sure it starts on Jan 1?

    Thank you.

    #2
    Hello,

    Thank you for the question.

    There is no supported method to get the amount of days on the chart from a script, so there really would not be a way to make a condition based on this.

    Also the instrument its self will not decide the days to load on the chart, this is a user selectable option so there would be no setting in the instrument for this.

    In order to get a specific time range on the chart you would need to use the DataSeries window and choose a specific date range. In the DataSeries window you would need to select "Load data based on: Custom Range"

    Please let me know if I may be of additional assistance
    JesseNinjaTrader Customer Service

    Comment


      #3
      I've inserted an image of a Tradestation screen which is exactly what I want to do in NT.

      Will your suggestion give me the comparable result? Thanks.

      Comment


        #4
        Hello,

        Yes, In order to get a specific time range on the chart you would need to use the DataSeries window (File -> New -> Chart OR Right click in a chart -> DataSeries) and choose a specific date range.

        In the DataSeries window you would need to look for "Load data based on:" and select " Custom Range"

        Please let me know if I may be of additional assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Rogers101, 05-05-2024, 11:30 AM
        16 responses
        48 views
        0 likes
        Last Post Rogers101  
        Started by ninza33, Today, 12:31 PM
        2 responses
        9 views
        0 likes
        Last Post ninza33
        by ninza33
         
        Started by Bobin, 03-12-2024, 08:51 AM
        15 responses
        481 views
        0 likes
        Last Post fiddich
        by fiddich
         
        Started by Skifree, Today, 11:21 AM
        4 responses
        13 views
        0 likes
        Last Post Skifree
        by Skifree
         
        Started by Bogdan097, Today, 03:25 PM
        0 responses
        7 views
        0 likes
        Last Post Bogdan097  
        Working...
        X