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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    672 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    379 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    577 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    582 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X