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 frankthearm, Today, 09:08 AM
        3 responses
        9 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by yertle, Today, 08:38 AM
        5 responses
        15 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by adeelshahzad, Today, 03:54 AM
        3 responses
        16 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by bill2023, Yesterday, 08:51 AM
        6 responses
        27 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by NinjaTrader_ChelseaB, 01-08-2017, 06:59 PM
        80 responses
        19,667 views
        5 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X