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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      160 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      307 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      244 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      348 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      178 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X