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 mattbsea, Today, 05:44 PM
        0 responses
        4 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        31 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        2 views
        0 likes
        Last Post tkaboris  
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,282 views
        0 likes
        Last Post Leafcutter  
        Started by WHICKED, Today, 12:45 PM
        2 responses
        20 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Working...
        X