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 cmoran13, 04-16-2026, 01:02 PM
          0 responses
          43 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          25 views
          0 likes
          Last Post PaulMohn  
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          163 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          98 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          158 views
          2 likes
          Last Post CaptainJack  
          Working...
          X