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

Min Value in Pane

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

    Min Value in Pane

    Hi

    Is there any way to set a min plot value in a pane .. my lowest value is 15 but the mib always goes to 0

    Thanks

    #2
    Hello murfinp,
    Thanks for your post.

    You can set a Min value in the following way

    Code:
    Plots[0].Min = 15;
    You can put the code in Initialize

    Let me know if I can be of any further assistance.

    Regards,
    Joydeep.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Hi Joydeep

      Even with this it still plots from 0

      protected override void Initialize()
      {
      Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Orange),1), PlotStyle.Line, "IExtremelyHigh"));
      Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Green),1), PlotStyle.Line, "IVeryHigh"));
      Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.DarkViolet),1) , PlotStyle.Line, "IHigh"));
      Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Firebrick),1), PlotStyle.Line, "IAverage"));
      Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.DarkViolet),1) ,PlotStyle.Line,"ILow"));
      Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Green),1),Plot Style.Line,"IVeryLow"));
      Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Orange),1),Plo tStyle.Line,"IExtremelyLow"));
      Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Blue),3),PlotS tyle.Bar,"IVolume"));

      Overlay = false;
      BarsRequired = averageLength*2;
      CalculateOnBarClose = true;

      logVolume = new DataSeries(this,MaximumBarsLookBack.Infinite);

      Plots[0].Min = 15;
      Plots[1].Min = 15;
      Plots[2].Min = 15;
      Plots[3].Min = 15;
      Plots[4].Min = 15;
      Plots[5].Min = 15;
      Plots[6].Min = 15;
      Plots[7].Min = 15;

      }

      Comment


        #4
        Semmks to be coz the last plot type is bar ... changwe this and it works ok

        Comment


          #5
          Hello murfinp,
          Glad you figured it out.

          Please let me know if I can assist you any further.
          JoydeepNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by daniel_weber8, Today, 01:21 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_ChristopherS  
          Started by jungsoohuh, Today, 12:07 PM
          1 response
          23 views
          0 likes
          Last Post NinjaTrader_PaulH  
          Started by SharonSS, Today, 11:54 AM
          1 response
          15 views
          0 likes
          Last Post NinjaTrader_Jim  
          Started by crystalet, Today, 11:20 AM
          3 responses
          17 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by SuperDude123, Today, 09:23 AM
          1 response
          34 views
          0 likes
          Last Post NinjaTrader_JustinD  
          Working...
          X