Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.

    Comment


      #3
      Thanks Brett, all is sorted out!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by alifarahani, Today, 09:40 AM
      6 responses
      38 views
      0 likes
      Last Post alifarahani  
      Started by Waxavi, Today, 02:10 AM
      1 response
      17 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by Kaledus, Today, 01:29 PM
      5 responses
      15 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Waxavi, Today, 02:00 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by gentlebenthebear, Today, 01:30 AM
      3 responses
      17 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X