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 sidlercom80, 10-28-2023, 08:49 AM
        171 responses
        2,273 views
        0 likes
        Last Post QuantKey_Bruce  
        Started by Irukandji, Yesterday, 02:53 AM
        2 responses
        17 views
        0 likes
        Last Post Irukandji  
        Started by adeelshahzad, Today, 03:54 AM
        0 responses
        3 views
        0 likes
        Last Post adeelshahzad  
        Started by CortexZenUSA, Today, 12:53 AM
        0 responses
        3 views
        0 likes
        Last Post CortexZenUSA  
        Started by CortexZenUSA, Today, 12:46 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Working...
        X