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 pechtri, 06-22-2023, 02:31 AM
        9 responses
        122 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by frankthearm, 04-18-2024, 09:08 AM
        16 responses
        66 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by habeebft, Today, 01:18 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by benmarkal, Today, 12:52 PM
        2 responses
        13 views
        0 likes
        Last Post benmarkal  
        Started by f.saeidi, Today, 01:38 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X