Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Override the value the Price Marker is displayed at

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

    Override the value the Price Marker is displayed at

    I have an indicator I've written that normalizes the Value data from several Plots in the OnRender method. I do this so I can display multiple plots with different value ranges in a single panel using the Overlay scale justification.

    Is there a way I can override the value the Price Marker is displayed at? I'd like to set it to the current bar normalized Close value I'm calculating in OnRender. I'm already using FormatPriceMarker to change what is displayed, but am not able to set where the Priice Marker is displayed on the Chart Scale.
    The Trading Mantis
    NinjaTrader Ecosystem Vendor - The Trading Mantis

    #2
    Originally posted by gregschr View Post
    Is there a way I can override the value the Price Marker is displayed at?
    Price markers are displayed at the [0] index of the plot, so make sure the [0] element
    has your calculated value from OnRender ... and it should work.

    Make sure the plot's color is not Transparent, or the same as chart panel background
    color.

    Comment


      #3
      Thanks for the suggestion bitdavid, I can't change the value of the plot because that data series is used to calculate the normalized values. Changing a plot value would corrupt future normalized value calculations.
      The Trading Mantis
      NinjaTrader Ecosystem Vendor - The Trading Mantis

      Comment


        #4
        Create a new plot just for that value?

        Comment


          #5
          Hello gregschr,

          Thank you for your reply.

          We would suggest trying to use a separate Series<double> for what you are normalizing and to use the plot and FormatPriceMarker to display what you want where you wish. There's no other way to draw a price marker than to use a plot.

          Please let us know if we may be of further assistance to you.

          Comment


            #6
            Thanks, that was my fall back approach. It's a bit messy but doable. I'm actually plotting the normalized values, so I'll store the original values in the separate Series<double>.
            The Trading Mantis
            NinjaTrader Ecosystem Vendor - The Trading Mantis

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            606 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            351 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            560 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            561 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X