Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Only display values greater than

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

    Only display values greater than

    Hi,

    I have an indicator that marks certain bars for me based on criteria. If the criteria are met, I set the plot to the close of the bar, otherwise I set the plot to -1 (due to calling the indicator from a strategy).

    When the indicator plots on the chart, how can I make sure that only values > -1 are the values of the plot that are painted / or how can I exclude plot values < 0, so my chart doesn't come up distorted with all the dots at the -1 level?

    Thanks!

    #2
    Hello,

    Thanks for the forum post.

    You would need to not set the plot with -1. If you do your telling NinjaTrader to plot -1.

    If you simply dont set the plot this will tell NinjaTrader not to plot it.

    Then you can use the following to tell if its set via code.



    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Thanks Brett, all is sorted out!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      581 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      338 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X