• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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]r.com

    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 AxelrodWins, Yesterday, 09:56 PM
      0 responses
      11 views
      0 likes
      Last Post AxelrodWins  
      Started by trader14, Yesterday, 08:12 PM
      0 responses
      8 views
      0 likes
      Last Post trader14  
      Started by ypbtrainer, Yesterday, 05:38 PM
      0 responses
      2 views
      0 likes
      Last Post ypbtrainer  
      Started by GARZONJ, 01-17-2020, 11:22 PM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by mike09, 01-17-2020, 07:37 PM
      1 response
      25 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Working...
      X