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 Max238, Today, 01:28 AM
        5 responses
        40 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by giulyko00, Yesterday, 12:03 PM
        3 responses
        12 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by habeebft, Today, 07:27 AM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_ChristopherS  
        Started by AveryFlynn, Today, 04:57 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by r68cervera, Today, 05:29 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X