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
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by RookieTrader, Today, 09:37 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by kulwinder73, Today, 10:31 AM
    0 responses
    6 views
    0 likes
    Last Post kulwinder73  
    Started by terofs, Yesterday, 04:18 PM
    1 response
    24 views
    0 likes
    Last Post terofs
    by terofs
     
    Started by CommonWhale, Today, 09:55 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Gerik, Today, 09:40 AM
    2 responses
    7 views
    0 likes
    Last Post Gerik
    by Gerik
     
    Working...
    X