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 muratb35, Today, 03:36 AM
      0 responses
      3 views
      0 likes
      Last Post muratb35  
      Started by fernlicht, Today, 02:16 AM
      2 responses
      13 views
      0 likes
      Last Post fernlicht  
      Started by fernlicht, 04-12-2021, 06:01 PM
      1 response
      29 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by memonolog, Today, 02:10 AM
      3 responses
      9 views
      0 likes
      Last Post memonolog  
      Started by orenytz, Today, 12:25 AM
      0 responses
      10 views
      0 likes
      Last Post orenytz
      by orenytz
       
      Working...
      X