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 szferi, Today, 02:04 AM
      0 responses
      2 views
      0 likes
      Last Post szferi
      by szferi
       
      Started by MidenThur, Today, 12:52 AM
      0 responses
      6 views
      0 likes
      Last Post MidenThur  
      Started by seseoraf, Today, 12:51 AM
      1 response
      6 views
      0 likes
      Last Post charmingishagarg  
      Started by Rosario, Today, 12:50 AM
      0 responses
      4 views
      0 likes
      Last Post Rosario
      by Rosario
       
      Started by kemoyums, Today, 12:38 AM
      0 responses
      3 views
      0 likes
      Last Post kemoyums  
      Working...
      X