• 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]

    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

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by roblogic, Yesterday, 04:06 AM
    1 response
    10 views
    0 likes
    Last Post koganam
    by koganam
     
    Started by nepenthean, Today, 08:01 AM
    0 responses
    7 views
    0 likes
    Last Post nepenthean  
    Started by bxl2019, Today, 07:59 AM
    0 responses
    4 views
    0 likes
    Last Post bxl2019
    by bxl2019
     
    Started by tcfcigvo, Yesterday, 11:39 PM
    0 responses
    8 views
    0 likes
    Last Post tcfcigvo  
    Started by BobbyWan, Yesterday, 09:15 PM
    0 responses
    11 views
    0 likes
    Last Post BobbyWan  
    Working...
    X