Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart Price Range Displayed

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

    Chart Price Range Displayed

    Hi,

    is there a way to determine the maximum and minimum price range displayed currently on the chart?

    Thanks,
    Will.

    #2
    Hi Will, I would probably look into getting those directly from the overriden Plot / ChartControls (althought nothing directly documented here by us). A simple idea attached to get started...
    Attached Files

    Comment


      #3
      Thanks Bertrand,

      If I have to use plot override, wouldnt that mean I would have to write all the plotting code for my indicator? That would not really be an option.

      Is there any way to get the values from ChartControls, or any other way, without doing a plot override?

      thanks,
      Will.

      Comment


        #4
        No, the base plotting could be triggered as well, so both approaches would be there. Just add

        base.Plot(graphics, bounds, min, max);

        to the Plot override handler...

        Comment


          #5
          Ok thanks,
          I will give that a try,
          Will.

          Comment


            #6
            Hi, one other problem I'm having related to this is drawing text on a new panel. I created a basic indicator to test with the following code :-

            Plot0.Set(Close[0]);
            DrawText("mytag","mytext",0,1372,Color.Blue); // using instrument GC

            when I set the panel to "new panel" or panel 2, the plot appears on the new panel but the text appears on the price panel.

            is there something extra I have to do to get the text on the new panel?

            Ta,
            Will.

            Comment


              #7
              Sorry, nevermind I discovered DrawOnPricePanel=false;

              Will.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Hwop38, 05-04-2026, 07:02 PM
              0 responses
              161 views
              0 likes
              Last Post Hwop38
              by Hwop38
               
              Started by CaptainJack, 04-24-2026, 11:07 PM
              0 responses
              309 views
              0 likes
              Last Post CaptainJack  
              Started by Mindset, 04-21-2026, 06:46 AM
              0 responses
              245 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by M4ndoo, 04-20-2026, 05:21 PM
              0 responses
              349 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Started by M4ndoo, 04-19-2026, 05:54 PM
              0 responses
              179 views
              0 likes
              Last Post M4ndoo
              by M4ndoo
               
              Working...
              X