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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    63 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    54 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    61 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    48 views
    0 likes
    Last Post CarlTrading  
    Working...
    X