Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawVerticalLine doesn't work but DrawArrowUp works... Why?

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

    DrawVerticalLine doesn't work but DrawArrowUp works... Why?

    In NT6.5 I have very simple code of a strategy I'm trying to develop and am trying to draw a vertical line. In any case it sometimes draws the line on the last white arrow up. However under the same if statement, if I draw an arrow up, it draws. So technically it should draw both the arrow and the line on the same bar, but the vertical line never gets plotted... Why is this? I have a bunch of bars with a white arrows underneath, but no vertical lines. I only get a vertical line with the last bar with a white arrow. Why do these two functions work differently???

    I'm using two draw objects to test it with, the arrows always draw, but the vertical line, rarely gets drawn.

    Code:
           if( (Time[0].Minute == Time[1].Minute) )     //test
            {
                DrawArrowUp("Same minute" + CurrentBar, false, 0, Low[0] - .25, Color.White);    
                DrawVerticalLine("Same minute",0,Color.White,DashStyle.Dash,2);
            }
    In the end I plan on using the vertical lines only, and removing the arrows. I just had issues drawing lines and used arrows in place to test and only arrows seem to work correctly.
    Last edited by dennho; 03-25-2011, 03:50 AM.

    #2
    Please take a look at your tag id's used for the draw objects, the Arrow is drawn with a unique one for each object - while the Vertical Line just redraws only one object using the 'Same minute' tag.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    368 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X