Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Grid lines adjustment
Collapse
X
-
Grid lines adjustment
Is it possible to make an indicator that will change horizontal grid lines interval depending on current instrument? I'm talking about that setting: Chart panel - Properties - Horizontal rid lines interval value. Can I change it within an indicator? If no, I will code indicator that will plot own lines but I'm afraid it might be CPU intensive. Any suggestions?Tags: None
-
Hello Leeroy_Jenkins,
Thank you for your post.
There is a way to do so, however, there is the caveat that this can be overridden by the user in the UI. You'd want the HorizontalGridlinesInterval property of ChartScale:
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
if (chartScale.Properties.HorizontalGridlinesInterval == 1.5)
{
// do something
}
}
Please let us know if we may be of further assistance to you.
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
578 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment