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

programming question

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

    programming question

    hello,

    I'm creating a new indicator which is plot in a separate panel, I want to know if I can fix the Y scale and how to do it? This indicator only take values from 1 to -1 and I want the Y axis show only and alway that range only.

    I also have another question, I tested the indicator in a chart window connected to a real time data source, and when I scroll the chart horizontally I loss the indicator lines, what could be happening?

    thanks in advance

    #2
    telbentel,

    Fixed scaling will be available in NT7.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      And what can be happening when I scroll the chart or compress the x scale that the indicator lines and plot disappear?

      Comment


        #4
        telbentel,

        I guess I do not fully understand what you are experiencing. If you could put up a few screenshots that would help. Thank you.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          I think he means the common 'flatlining' problem. Scale interference.

          Comment


            #6
            Flatlining happens when you add an indicator to a panel with a scale outside the normal range of the indicator. For instance, if you added a MACD and an SMA together into the same panel, because the SMA could have values in the hundreds while the MACD would be near 0 and 1. To show both in the same panel you end up with very squished lines as NT tries to create a scale to allow for both indicators.

            Multiple scales and overlaying will be available in NT7.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by kevinenergy, 02-17-2023, 12:42 PM
            117 responses
            2,766 views
            1 like
            Last Post jculp
            by jculp
             
            Started by Mongo, Today, 11:05 AM
            5 responses
            15 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by traderqz, Today, 12:06 AM
            8 responses
            16 views
            0 likes
            Last Post traderqz  
            Started by SightCareAubetter, Today, 12:50 PM
            0 responses
            2 views
            0 likes
            Last Post SightCareAubetter  
            Started by Skifree, Today, 03:41 AM
            5 responses
            14 views
            0 likes
            Last Post Skifree
            by Skifree
             
            Working...
            X