Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Vertical lines at times
Collapse
X
-
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!
Tags: None
-
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:
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.Code:DrawHorizontalGridLines = false; DrawVerticalGridLines = false;
Please let me know if I can assist any further.
-
That worked perfectly. I was able to make the changes, compile the code, and re-add the indicator. Thanks for the quick help!
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
666 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
376 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
110 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
580 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment