Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Value Set

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

    Indicator Value Set

    Is there a way to not Set the Value.Set parameter within an indicator so the indicator still works when called from a strategy. I have other public DataSeries objects that i am using other than Value.

    By setting one of them to value will override my plot settings for one of the other dataseries objects........Need Fix!

    #2
    Hello,

    Thanks for the forum post.

    Sorry not sure exactly what your trying to do and why setting value is a bad thing in your case?

    I look forward to assisting you further.
    BrettNinjaTrader Product Management

    Comment


      #3
      Its not a bad thing with simple indicators. But if i am using a conditional indicator within an indicator like a crossover or > < 2 values and then setting the resultant to a public DataSeries object to be plotted on a chart. When i do this for an indicator it works fine.

      When i have 2 plots within an indicator, and 2 Parameter DataSeries set as the primary plots i have the "extra" value.set dataseries that i will receive an error when running a strategy if its not set to something other than null, which is apparently what it is set to when its set to nothing.

      Question is, what can i set the value object to so that its not null, but so that it does not affect any of the plots on the chart?

      Comment


        #4
        Ben, have you tried calling .Reset() on this series, so value is 0 for calcs but ignored for plotting?

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        42 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        157 views
        2 likes
        Last Post CaptainJack  
        Working...
        X