Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Tim-c, Today, 02:10 PM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Taddypole, Today, 02:47 PM
          0 responses
          2 views
          0 likes
          Last Post Taddypole  
          Started by chbruno, 04-24-2024, 04:10 PM
          4 responses
          50 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Started by TraderG23, 12-08-2023, 07:56 AM
          10 responses
          399 views
          1 like
          Last Post beobast
          by beobast
           
          Started by lorem, Yesterday, 09:18 AM
          5 responses
          23 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X