Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem Plots

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

    Problem Plots

    In 6.5 if you used something like DrawDot() you would have to test to see if the dot should be removed if the condition changed. It was always much easier to use a dot Plot which would automatically be removed if the condition changed. With NT7 I am having problems with dot Plots on an oscillator line which sometimes persist when the condition goes away. These work perfectly in NT6.5. I have tried a number of ways of recoding but can't get to the bottom of the problem. Did I miss something very basic in the changes for NT7? Of course refreshing the chart fixes it up to that point but the problem comes back.
    Attached Files
    eDanny
    NinjaTrader Ecosystem Vendor - Integrity Traders

    #2
    eDanny,

    Try removing all indicator logic and just have very basic condition that will turn to false and should theoretically turn your dot off. See what happens on this base case.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Here is a sample indicator I just made by combining Stochastics and MACD which illustrates the problem. It is in the bottom panel on the chart. If the plotted line temporarily plots in a position and a dot plots, sometimes when the line moves the dot persists.
      Attached Files
      eDanny
      NinjaTrader Ecosystem Vendor - Integrity Traders

      Comment


        #4
        Suggest you print values of your plot to see if they are actually updating based on your logic.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Not sure I understand why. Seems every indicator I have from 6.5 exhibits the same behavior, and they all work correctly on 6.5.
          eDanny
          NinjaTrader Ecosystem Vendor - Integrity Traders

          Comment


            #6
            eDanny,

            Things have changed on 7 and as such indicators need to be converted. Just because it worked in 6.5 does not guarantee it will work in 7 as-is. First step is to see if your code blocks are even being evaluated hence the prints.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Thanks for the reply Josh. I know there are changes but this has nothing to do with any indicator breaking code. This is straight forward testing and plotting and the sample code I sent was just made up from two standard NT7 indicators. If the chart is refreshed (F5) every plot is correct. In real time they are not updated correctly and there is no convoluted code involved.
              eDanny
              NinjaTrader Ecosystem Vendor - Integrity Traders

              Comment


                #8
                eDanny, I just spent some time trying to figure out what is happening here. I believe the code behaves exactly like it is supposed to. I edited your code a bit to add some print statements to verify. Please try the attached code and notice how an OnBarUpdate() does not always result in a dot being re-drawn.
                Attached Files
                AustinNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                607 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                353 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                105 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                560 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                561 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X