Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot.Min/Plot.Max properties

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

    Plot.Min/Plot.Max properties

    The examples that I have seen using these properties have these statements in the Initialize method. Is there anything that prevents from putting these statements in the OnBarUpdate method so that one could dynamically set the Max/Min for a particular Plot in an indicator?

    #2
    scjohn,

    I believe it would work in OnBarUpdate(), but not sure if it will do what you are expecting. You can give it a shot to see what it does and if that is what you desired.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by scjohn View Post
      The examples that I have seen using these properties have these statements in the Initialize method. Is there anything that prevents from putting these statements in the OnBarUpdate method so that one could dynamically set the Max/Min for a particular Plot in an indicator?
      It won't give you any errors, but the result will not be what you are expecting.
      If you change Min Max dynamically, keep in mind that it will change for all bars, not for current bar only.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      662 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      376 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      110 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      574 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      580 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X