Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Horizontal Grid Lines On/Off

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

    Horizontal Grid Lines On/Off

    In NT7 I could turn Horizontal Grid Lines on or off using:

    Code:
    ChartControl.HorizontalGridLines = false;

    In NT8 I have tried using the following but it doesn't turn the grid lines on/off:

    Code:
    DrawHorizontalGridLines = false;
    How can I do this in NT8? I want to be able to do this within code and not during the set defaults state.

    Thank you.

    #2
    Hello jhowinvest,

    Thanks for your post.

    From the NT8 helpguide on DrawHorizontalGridLines, "Warning: This property should ONLY bet set from the OnStateChange() method during State.SetDefaults or State.Configure"

    The helpguide further advises, "The indicator panel's parent chart has a similar property 'DrawHorizontalGridLines' which if set to false, will override the indicator's local setting if true."

    Here is the complete reference: http://ninjatrader.com/support/helpG...lgridlines.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    24 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    25 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    18 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 03-23-2026, 11:13 AM
    0 responses
    28 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X