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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    51 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    31 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    99 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    177 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    170 views
    0 likes
    Last Post CarlTrading  
    Working...
    X