• 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

Vertical lines at times

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

    Vertical lines at times

    I am looking to automatically add a vertical line at two times daily. I coincidentally found an indicator entitled "Vertical Line at Time". This indicator appears to do exactly what I want it to do, but when I apply the indicator it removes the horizontal and vertical gridlines from the chart. I thought the indicator might have disabled the "Grid Line - horizontal" and "Grid Line - vertical" options in the chart properties, but those are still enabled. I would like to be able to add two vertical lines two times daily (8:30am and 2pm) and still retain the overall chart gridlines. I wanted to make sure I'm not overlooking something with this indicator, or to see if someone knows of another script that would work. Thanks!

    #2
    Hi LANwarr1or, thanks for your question and welcome to the NinjaTrader forum.

    The in State.SetDefaults state of the script on lines 64 and 65 these properties are set to false, which will remove the grid lines:

    Code:
    DrawHorizontalGridLines                    = false;
    DrawVerticalGridLines                        = false;
    You can open up the indicator from the NinjaScript editor and change the "false" to "true", then press F5 on the keyboard to compile, then re-add the indicator to your chart and the grid lines will stay rendered.

    Please let me know if I can assist any further.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      That worked perfectly. I was able to make the changes, compile the code, and re-add the indicator. Thanks for the quick help!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by HiddenPhilosopher, Yesterday, 11:58 PM
      3 responses
      17 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by Mykro, Yesterday, 09:48 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by Brillo, Today, 12:40 PM
      0 responses
      4 views
      0 likes
      Last Post Brillo
      by Brillo
       
      Started by authenticx, 05-29-2020, 03:51 PM
      3 responses
      64 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by nikolaalx, Today, 07:31 AM
      10 responses
      44 views
      0 likes
      Last Post bltdavid  
      Working...
      X