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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      53 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      34 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      100 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      180 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      170 views
      0 likes
      Last Post CarlTrading  
      Working...
      X