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 bortz, 11-06-2023, 08:04 AM
          47 responses
          1,611 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          9 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          19 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          6 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          22 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X