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:
Code:DrawHorizontalGridLines = false; DrawVerticalGridLines = false;
Please let me know if I can assist any further.Chris L.NinjaTrader Customer Service
-
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 samish18, 04-17-2024, 08:57 AM
|
16 responses
55 views
0 likes
|
Last Post
by samish18
Today, 03:30 PM
|
||
Started by arvidvanstaey, Today, 02:19 PM
|
3 responses
9 views
0 likes
|
Last Post Today, 03:23 PM | ||
Started by jordanq2, Today, 03:10 PM
|
2 responses
8 views
0 likes
|
Last Post
by jordanq2
Today, 03:23 PM
|
||
Started by traderqz, Today, 12:06 AM
|
10 responses
18 views
0 likes
|
Last Post
by traderqz
Today, 02:49 PM
|
||
Started by algospoke, 04-17-2024, 06:40 PM
|
5 responses
47 views
0 likes
|
Last Post Today, 02:36 PM |
Comment