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 aligator, Today, 02:38 PM
          0 responses
          5 views
          0 likes
          Last Post aligator  
          Started by Stett0002, Yesterday, 11:55 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_ShawnB  
          Started by KasLB, Today, 05:12 AM
          2 responses
          17 views
          1 like
          Last Post KasLB
          by KasLB
           
          Started by LeitoGTR, Yesterday, 06:41 PM
          2 responses
          13 views
          0 likes
          Last Post LeitoGTR  
          Started by Prisalice, Today, 07:07 AM
          1 response
          10 views
          0 likes
          Last Post NT-Roland  
          Working...
          X