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 DavidHP, Today, 07:56 AM
        0 responses
        0 views
        0 likes
        Last Post DavidHP
        by DavidHP
         
        Started by Aviram Y, 08-09-2023, 09:04 AM
        10 responses
        298 views
        0 likes
        Last Post MrHump
        by MrHump
         
        Started by jpapa, Today, 07:22 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by kevinenergy, 02-17-2023, 12:42 PM
        116 responses
        2,758 views
        1 like
        Last Post kevinenergy  
        Started by franatas, 12-04-2023, 03:43 AM
        7 responses
        106 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X