Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Right justified profile anchor

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

    Right justified profile anchor

    Hello!

    I am trying to update an indicator that I am looking to anchor within the chart in a slightly different way. I am hoping to be able to anchor the profile rendering in a right justified manner, but in a way that pushes the Bar Chart render area to the left. Similar to how the OrderFlow Heat Map maintains its clamped right justification and allows the "Realtime Depth Width" to be adjusted (Its this real time depth width being right justified and pushing out the bars that I am looking for). I was digging through the reference material but was struggling to find something along these lines.

    Is there an existing example of implementing this behavior via OnRender?

    #2
    Hello BraisedInBlue,

    Thanks for your post.

    You can change the Right bar margin, please see https://ninjatrader.com/support/help...properties.htm

    ChartControlProperties myProperties = chartControl.Properties;
    myProperties.BarMarginRight = RSmargin; // write the new right side margin property
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Once you modify the right margin, would you still be able to render in the extra margin like normal?

      Comment


        #4
        Hello BraisedInBlue,

        Thanks for your reply.

        Yes. In the screenshot example below the plot text is rendered in the area to the right of the bar margin value and its area is colored differently than the chart.

        Click image for larger version

Name:	Braisedinblue-1.PNG
Views:	22
Size:	58.3 KB
ID:	1152213
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Thank you, I will try this out and report back if I have any questions.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jeronymite, Today, 08:43 PM
          0 responses
          2 views
          0 likes
          Last Post jeronymite  
          Started by jeronymite, Today, 07:01 PM
          0 responses
          7 views
          0 likes
          Last Post jeronymite  
          Started by LeitoGTR, Today, 06:41 PM
          0 responses
          6 views
          0 likes
          Last Post LeitoGTR  
          Started by 2inthebush, Today, 03:29 PM
          2 responses
          12 views
          0 likes
          Last Post 2inthebush  
          Started by forrestang, Today, 02:17 PM
          5 responses
          24 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Working...
          X