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

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
    BertrandNinjaTrader Customer Service

    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...
        BertrandNinjaTrader Customer Service

        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 jxs_xrj, 01-12-2020, 09:49 AM
              4 responses
              3,284 views
              1 like
              Last Post jgualdronc  
              Started by Option Whisperer, Today, 09:55 AM
              0 responses
              5 views
              0 likes
              Last Post Option Whisperer  
              Started by geddyisodin, 04-25-2024, 05:20 AM
              8 responses
              58 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by halgo_boulder, 04-20-2024, 08:44 AM
              2 responses
              22 views
              0 likes
              Last Post halgo_boulder  
              Started by mishhh, 05-25-2010, 08:54 AM
              19 responses
              6,189 views
              0 likes
              Last Post rene69851  
              Working...
              X