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

get the Text size used in the right scale

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

    get the Text size used in the right scale

    How can I get (return) properties of the text used to draw the right scale? For instance, height, font, etc.

    #2
    Hello swcooke

    Thanks for the post.

    The ChartControl object has many properties that can be accessed, including the Charts properties:



    See the many properties available through ChartControl and the ChartPanel here:




    Please let me know if I can assist further.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks for that. I am trying to draw on the Right scale however, my drawing is going under the scale. I tried adding:
      Code:
      SetZOrder(int.MaxValue);
      to my State.Historical block but that did not help. Can you give me a push in the right direction? I think I am missing something.

      Comment


        #4
        Hello swcooke,

        Thank you for the reply.

        This is unsupported, so I would be unable to assist further with this, but you can pop the clipping from the render target and add your own to get access to the entire chart. I have attached an example that my colleague NinjaTrader_Jim created.

        Code:
        RenderTarget.PopAxisAlignedClip();
        RenderTarget.PushAxisAlignedClip(new SharpDX.RectangleF((float)0f, (float)0f, (float)startPoint.X, (float)chartControl.ActualHeight - (float)chartControl.AxisXHeight), RenderTarget.AntialiasMode);
        Please let me know if you have any questions.
        Attached Files
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bmartz, 03-12-2024, 06:12 AM
        4 responses
        31 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by Aviram Y, Today, 05:29 AM
        4 responses
        12 views
        0 likes
        Last Post Aviram Y  
        Started by algospoke, 04-17-2024, 06:40 PM
        3 responses
        28 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by gentlebenthebear, Today, 01:30 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by cls71, Today, 04:45 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X