Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw.VerticalLine barsAgo not working

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

    Draw.VerticalLine barsAgo not working

    I have been trying to add a basic vertical line to my chart that appears on 25 bars back however, the bar will only show if I put Zero or a Negative number in the barsAgo parameter, which of course pushes it out to the future. I have successfully added a vertical bar using the time parameter, but that is not what I am looking for.

    Some code I have tried with no luck is:

    Code:
    Draw.VerticalLine(this, "vlBarsBack", 25, Brushes.Red); //-FAILS
    VerticalLine vl = Draw.VerticalLine(this, "vlBarsBack", 25, false, ""); //-FAILS
    
    DateTime date1 = new DateTime(2019, 5, 15, 18, 0, 0);
    Draw.VerticalLine(this, "vlBarsBackTime", date1, Brushes.Blue); //- WORKS but not what I am looking for.
    Any thoughts? This seems like a bad question, but I cannot figure out where I am going wrong. All code is located in OnBarUpdate method.

    #2
    Hello [email protected]

    Thanks for your post.

    I have answered your post in this thread: https://ninjatrader.com/support/foru...go-not-working

    Please help keep the forum organized by not placing duplicate posts in different forum sections, thanks for your understanding.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      No problem. I'm sure you saw my post 13 minutes before you posted this stating it been deleted.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by JobDjassem, Today, 05:24 PM
      0 responses
      1 view
      0 likes
      Last Post JobDjassem  
      Started by Kirk Thorns, Today, 05:06 PM
      0 responses
      5 views
      0 likes
      Last Post Kirk Thorns  
      Started by CyberNate, Today, 03:11 PM
      5 responses
      25 views
      0 likes
      Last Post CyberNate  
      Started by NinjaTrader_ChrisL, Today, 03:44 PM
      0 responses
      4 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by TheBean236, Today, 12:57 PM
      5 responses
      17 views
      0 likes
      Last Post TheBean236  
      Working...
      X