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 Mindset, Today, 06:46 AM
    0 responses
    8 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, Yesterday, 05:21 PM
    0 responses
    14 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    15 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    82 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    48 views
    0 likes
    Last Post PaulMohn  
    Working...
    X