• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to get price scale min and max values at any time?

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

    How to get price scale min and max values at any time?

    The Plot method exposes the min and max values corresponding to the displayed price scale and that is great, but I want to retrieve the min and max values when a bar closes, or triggered by some arbitrary event. Can this be done?

    Thanks for helping,
    Steve

    #2
    Hi Steve, there's unfortunately limited support we could offer in that area. I don't think though I'm following your question here - why would the panel scale boundaries change when a bar closes? You would have that either on Fixed scale or AutoScale.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I should explain what exactly I want to achieve. I want to place a string at a fixed X location but have the string hug the bottom of the price panel while the panel is being scrolled. For example print the Day of Week at the first bar of the day, and have it hug the bottom of the price panel while the chart is manually scrolled horizontally. I was exploring the possibility of using the Plot method min value for this because it represents the lower price scale value displayed on the screen at any point in time.

      Comment


        #4
        Thanks Steve for the clarification - that should be possible within the plot method yes, I would suggest to check into the Pivots indicator Misc section a potential approach.

        Easier would be of course using DrawTextFixed, but this would mean you draw one of five predefined fixed locations on the panel.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Can you please provide a link to the Pivots indi Misc section? I can't seem to find it.

          Comment


            #6
            That would be preinstalled on your Ninjatrader platform via the Pivots.cs file. Just expand the misc section in your NinjaScript editor, this will cover the Plot method parts.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              got it. thanks.

              Comment


                #8
                Originally posted by stevew View Post
                I should explain what exactly I want to achieve. I want to place a string at a fixed X location but have the string hug the bottom of the price panel while the panel is being scrolled. For example print the Day of Week at the first bar of the day, and have it hug the bottom of the price panel while the chart is manually scrolled horizontally. I was exploring the possibility of using the Plot method min value for this because it represents the lower price scale value displayed on the screen at any point in time.
                If that is your purpose, you might be better off using the bounds of the ClientArea Rectangle. That is the Rectangle that you pass to the custom Plot().

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Zuhier Dourgham, Yesterday, 03:55 AM
                1 response
                26 views
                0 likes
                Last Post NinjaTrader_Jim  
                Started by b16_aln, Today, 12:47 AM
                1 response
                12 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by Fiocco, Today, 04:25 AM
                1 response
                3 views
                0 likes
                Last Post NinjaTrader_Jim  
                Started by Perceivedshift, Today, 07:08 AM
                1 response
                6 views
                0 likes
                Last Post NinjaTrader_ChrisL  
                Started by J_o_s, Yesterday, 12:29 AM
                1 response
                8 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Working...
                X