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

Draw.Region bug

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

    Draw.Region bug

    Hi,

    I am getting a draw region bug, where parts of the region isnt painted, until i right mouse click "reload ninjascript"..

    Below is the code and the screenshots of what I am talking about. (the code is for the green one, i have similar statement for red one)

    Code:
    Draw.Region(this,"Cld" + CurrentBar ,1,0,Span_A,Span_B,Brushes.DarkGreen,Brushes.DarkGreen,100,26);
    *** i fire this above code only on the first tick of the bar, i dont paint it every tick.
    Attached Files
    Last edited by KhaosTrader; 04-26-2017, 07:55 AM.

    #2
    Hello KhaosTrader,

    What version of NinjaTrader are you on?

    Have you upgraded to 8.0.6.1?

    Did you experience this in a previous version of NT8?

    Without the full code we're unable to test on our end.

    If you'd like to upload the full code I can take a look and see if anything jumps out. Or if you'd prefer to email a copy, send to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread, and the files.

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      i have latest version 8.0.6.1, i didnt try this code on earlier version.

      If I draw on each tick, it works, it has issues if it draws only on first tick...

      Comment


        #4
        Hello KhaosTrader,

        Without the full code we're unable to test on our end.

        If you'd like to upload the full code I can take a look and see if anything jumps out. Or if you'd prefer to email a copy, send to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread, and the files.

        I look forward to your reply.
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          Hi Alan,

          The code is part of a larger system, which i rather not send. I will be rewriting the whole system in the next couple of months, which will be much more modular and object oriented, such that I could easily put in parts in a "test project" and then send it. So I will wait until I have written that... As of now, I think I have solved it by updating each tick (which is not so efficient, but it works).

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ScottWalsh, 04-16-2024, 04:29 PM
          7 responses
          34 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cls71, Today, 04:45 AM
          0 responses
          3 views
          0 likes
          Last Post cls71
          by cls71
           
          Started by mjairg, 07-20-2023, 11:57 PM
          3 responses
          214 views
          1 like
          Last Post PaulMohn  
          Started by TheWhiteDragon, 01-21-2019, 12:44 PM
          4 responses
          546 views
          0 likes
          Last Post PaulMohn  
          Started by GLFX005, Today, 03:23 AM
          0 responses
          3 views
          0 likes
          Last Post GLFX005
          by GLFX005
           
          Working...
          X