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 Stanfillirenfro, Today, 07:23 AM
        9 responses
        23 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by George21, Today, 10:07 AM
        0 responses
        5 views
        0 likes
        Last Post George21  
        Started by DayTradingDEMON, Today, 09:28 AM
        2 responses
        16 views
        0 likes
        Last Post DayTradingDEMON  
        Started by navyguy06, Today, 09:28 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        8 responses
        32 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X