Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawRegion bugs

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

    DrawRegion bugs

    Hello,

    I and friends encounter bugs using DrawRegion code.

    First, the filling appears on the screen of the refresh (F5) and when you go forward away from it (on the time/historical data scale) but as soon as we go backward, the filling goes at weird random places - not intented within the code itself - on the chart.

    Sometimes when going backward, instead of filling random places, it will fill the whole screen/chart.

    Using the very same DrawRegion code, it works sometimes for specific indicators and will not work (bugs) with other indicators. Totally awkward.

    Is this a known issue ?

    We are using NT7 beta 17

    Thank you

    #2
    The first picture shows the random fillings after going backward in time.



    If I refresh (F5), then the indicator almost goes normal but you can still see it is bugging on the very left side.



    If ever go back in time, it does stupid things.

    The lines used in this indicator are :

    Code:
                    DrawRegion("Zone tampon long"+CurrentBar.ToString(), 1, 0, mbZoneL, mb2L2, Color.Empty, Color.Lime, 1);            
                    DrawRegion("Zone tampon short"+CurrentBar.ToString(), 1, 0, mb2S2, mbZoneS, Color.Empty, Color.Red, 1);
    Thanks again.
    Last edited by SARdynamite; 06-29-2010, 04:48 AM.

    Comment


      #3
      SARdynamite, I tried on my end with a few indicators using DrawRegion calls and I did not see an issue - could you please direct an indicator that exhibits this issue for you to support at ninjatrader dot com to my Attn? Please also include datafeed and symbols / timeframes / barsTypes you were testing with.

      Thanks

      Comment


        #4
        Hello,

        I'm running it on CAC40 futures (exchange=Matif) 07-10
        Timeframe 5 minutes
        Data seed : Zen-Fire

        I'm sending the indicator by mail.

        Thank you

        Comment


          #5
          Thanks - so please either send to support at ninjatrader dot com to my Attn, or send me a PM directly - I follow up then this way...

          Comment


            #6
            Hello,

            I installed NT7 beta 18 and the bug is still here. Even with "Infinite" setting ON.

            The version upgrade did not solve the problem.
            How to correct this ?

            Thanks for your help

            Comment


              #7
              Just retried and was unfortunately unable to reproduce an issue here on Beta18 - please check your inbox on the note I just sent through support - thanks.

              Comment


                #8
                Right, a fresh reinstall of NT7b18 solved the problem + the use of MaximumLookBars set to Infinite.

                Thank you

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by kinfxhk, 07-13-2026, 10:18 AM
                0 responses
                43 views
                0 likes
                Last Post kinfxhk
                by kinfxhk
                 
                Started by kinfxhk, 07-13-2026, 09:50 AM
                0 responses
                33 views
                0 likes
                Last Post kinfxhk
                by kinfxhk
                 
                Started by kinfxhk, 07-13-2026, 07:21 AM
                0 responses
                39 views
                0 likes
                Last Post kinfxhk
                by kinfxhk
                 
                Started by kinfxhk, 07-11-2026, 02:11 AM
                0 responses
                33 views
                0 likes
                Last Post kinfxhk
                by kinfxhk
                 
                Started by SalmaTrader, 07-07-2026, 10:26 PM
                0 responses
                147 views
                0 likes
                Last Post SalmaTrader  
                Working...
                X