Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw.TriangleUp issue (Beta 9)

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

    Draw.TriangleUp issue (Beta 9)

    Hello!

    There is an issue with Draw.TriangleUp and Draw.ArrowUp (I guess other Draw methods have it too).

    While this code sample works fine:
    Code:
    entryOrder = EnterLongStopMarket(0, true, 1, entryValue, "Long Entry");
    Draw.TriangleUp(this, "triangleUp" + CurrentBar, false, 0, entryValue, Brushes.Green);
    the following one doesn't draw the triangle at all or it draws it a few bars later:
    Code:
    entryOrder = EnterLongLimit(0, true, 1, entryValue, "Long Entry");
    Draw.TriangleUp(this, "triangleUp" + CurrentBar, false, 0, entryValue, Brushes.Green);
    The difference in the code samples is in the order types (and the entry values, of course). The sequence of the code lines in each sample doesn't make any difference.

    I tried the code samples on ES, 1 Renko. The first one has been working fine in my strategy for a long time, but the second one doesn't work as expected. Could you check that please?

    #2
    Hello quicktrick,

    Thanks for your post.

    Testing with both cases provides the triangle.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hello Paul,

      I made a simple test. It draws green and red dots above each bar of a chart. Each dot has a bar index in its properties, so you can see what bar it should be above. Look at the pictures and try the test yourself (I've attached the test's code). Some dots are shifted from the bars they should be above to other bars.

      Try the test on 1 Renko and set 1 or 2 days to load. You'll certainly find such places yourself. But when you are trying to see a dot's properties to find the dot's bar index, be patient, the properties take some time to load because of huge quantity of the dots.

      That issue happens with any Draw methods, not only Draw.Dot.
      Attached Files

      Comment


        #4
        Hello quicktrick,

        Thanks for your post.

        I have been able to replicate and have submitted a bug report.
        I will update this thread when I have further information.

        Thank-you for reporting the issue.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by algospoke, Yesterday, 06:40 PM
        2 responses
        19 views
        0 likes
        Last Post algospoke  
        Started by ghoul, Today, 06:02 PM
        3 responses
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        45 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        20 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        181 views
        0 likes
        Last Post jeronymite  
        Working...
        X