Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Horizontal and Vertical Grid Lines

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

    Horizontal and Vertical Grid Lines

    I have built an indicator and I draw many objects on the chart from OnRender method.

    Now I cannot apply the Grid lines. ( Horizontal and vertical )
    On StateChange State.SetDefaults :

    DrawHorizontalGridLines = true;
    DrawVerticalGridLines = true;

    From the Chart Property Grid Lines are visible

    but I can't see the grid lines !

    Any idea ?

    #2
    Hello blar58,
    Thanks for your post.

    Can I confirm that you are only setting these properties in State.SetDefaults?
    Did you set these properties after applying the indicator to your chart?

    Also, please send me a screenshot of your chart and its settings.
    To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.

    Click here for instructions

    Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

    Click here for detailed instruction

    I look forward to assisting you.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Yes I am confirming that I am setting these properties in State.Defaults

      I am attaching the full screen capture

      Thank you !
      Attached Files

      Comment


        #4
        Hello blar58,
        Thanks for your note.

        I have a few more questions for you.
        • Did you change these properties in your script after applying the indicator to the chart?

        • Are the grid lines still absent if you remove all other indicators/strategies from the chart?

        • If you right-click in your chart>Properties>Lines , are both the horizontal and vertical grid line "Visible" properties set to true? What color are they each set to?

        I look forward to your reply.
        Josh G.NinjaTrader Customer Service

        Comment


          #5
          Josh

          It works now.

          Don't know what happened


          Thank you!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          627 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          359 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          562 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          568 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X