Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8b10 Drawing problem

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

    NT8b10 Drawing problem

    Hi Ninja Team.
    I think I've found a bug with the NT draw function when bars have the exact same timestamp.
    To reproduce the bug, load the CL 05-16 with a 6 range bartype, and display the 24th of Mars 2016. At 11:59 EST, there is a succesion of bars with the exact same timestamp (to the ms). On this particular bar, it seems that the draw function doesn't plot the object at the correct bar (see image).
    Create an indicator which draw a dot on each bar, load the indicator on the chart and see the result (image below). If you reload the chart, it works fine. If you open the dataseries window and load a different number of days, then the problem appears again.
    Important, you need to put the indicator at the top position in the indicator list. Otherwise you won't see the bug.
    If it's not clear, I can send a short video to the support. Here is the code
    Code:
    protected override void OnStateChange()
            {
                if (State == State.SetDefaults)
                {
                    Description                            = @"Enter the description for your new custom Indicator here.";
                    Name                                = "TESTCode";
                    Calculate                            = Calculate.OnBarClose;
                    IsOverlay                            = false;
                    DisplayInDataBox                    = true;
                    DrawOnPricePanel                    = true;
                    DrawHorizontalGridLines                = true;
                    DrawVerticalGridLines                = true;
                    PaintPriceMarkers                    = true;
                    ScaleJustification                    = NinjaTrader.Gui.Chart.ScaleJustification.Right;
                    //Disable this property if your indicator requires custom values that cumulate with each new market data event. 
                    //See Help Guide for additional information.
                    IsSuspendedWhileInactive            = true;
                }
                else if (State == State.Configure)
                {
                }
            }
    
            protected override void OnBarUpdate()
            {
                if(Time[0].CompareTo(new DateTime(2016,03,24,16,53,00))>0 && Time[0].CompareTo(new DateTime(2016,03,24,17,02,00))<0)
                {
                    Draw.Dot(this, CurrentBar.ToString(), true, 0, High[0] + 2 * TickSize, Brushes.Lime);
                }
            }
    Click image for larger version

Name:	NT8Bug.png
Views:	1
Size:	44.7 KB
ID:	905054
    Last edited by AzurITec_Chris; 03-29-2016, 12:01 PM.

    #2
    Hello AzurITec_Chris,

    Thank you for writing in.

    I was able to reproduce this on my end with Beta 10. However, when testing with our internal continuous build, the behavior no longer persists. It looks like the bug has been fixed for the next release of the beta.

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pechtri, 06-22-2023, 02:31 AM
    9 responses
    122 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by frankthearm, 04-18-2024, 09:08 AM
    16 responses
    64 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by habeebft, Today, 01:18 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by benmarkal, Today, 12:52 PM
    2 responses
    13 views
    0 likes
    Last Post benmarkal  
    Started by f.saeidi, Today, 01:38 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X