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

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:	201
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 bortz, 11-06-2023, 08:04 AM
          47 responses
          1,605 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          8 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          18 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          4 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          13 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X