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

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.

    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?
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by tradingnasdaqprueba, 04-09-2024, 09:52 AM
        6 responses
        26 views
        0 likes
        Last Post tradingnasdaqprueba  
        Started by PaulMohn, Today, 02:06 AM
        1 response
        3 views
        0 likes
        Last Post PaulMohn  
        Started by Mindset, Today, 01:27 AM
        0 responses
        5 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by EB Worx, 03-07-2023, 05:05 AM
        4 responses
        99 views
        1 like
        Last Post cls71
        by cls71
         
        Started by patricia70, 11-23-2020, 10:17 AM
        17 responses
        549 views
        1 like
        Last Post PaulMohn  
        Working...
        X