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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      35 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      13 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      19 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      22 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X