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

Error on indicator can not save workspace

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

    Error on indicator can not save workspace

    I have a new error. The indicator works but this is the error on the log file Thre was an error reflecting Type

    #2
    Ok I figured what the issue is but I don't know how to solve this

    I have 1 indicator getting information from another indicator

    public Series<int> SeriesIMySeries;

    The issue is this.

    If I have the Series private my other indicator can not access the Series.

    If I have the Series public the indicator works but if I save workspace I get this error.
    There was an error reflecting type in NinjaTrader.NinjaScript.Indicators.MyIndicator.









    Comment


      #3
      SOLVED.
      Well I got it to work. I created a single public int parameter and passed the series value through the public int.

      Comment


        #4
        NOPE not solved. I thought it worked but the other indicator is not updating properly. The data is not passing to my single parameter. How do I make a series public

        Comment


          #5
          Well I got it to work in a round about way. I created a plot and transferred the data, but now the last question is Can you hide 1 plot value. I know you can use ArePlotsConfigurable = false; but I need to hide only 1 plot

          Comment


            #6
            Hello ballboy11,

            Thank you for your notes.

            A Plot is a public series. ArePlotsConfigurable controls if plots can be configured in the indicator dialog and would not be set individually.

            Please note Plots are ONLY visible from the UI property grid when AddPlot() is called from State.SetDefaults. If your indicator or strategy dynamically adds plots during State.Configure, you will NOT have an opportunity to select the plot or to set the plot configuration via the UI.

            You could use AddPlot() within State.Configured and make that plot transparent using Brushes.Transparent. This would hide it from the UI, the Data Box, and the Chart.

            Here is a Help Guide link about how AddPlot may be used - https://ninjatrader.com/support/help...8/?addplot.htm

            Or, you could refer to the following example that demonstrates making a public Series<bool> to have your indicator calculate non-plotted values that you may want to access when using this indicator inside of another indicator or strategy - https://ninjatrader.com/support/help...alues_that.htm

            Please let us know if we may further assist.
            Brandon H.NinjaTrader Customer Service

            Comment


              #7
              Thank you for you help

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Tin34, Today, 03:30 AM
              2 responses
              21 views
              0 likes
              Last Post Tin34
              by Tin34
               
              Started by sastrades, Yesterday, 09:59 AM
              2 responses
              33 views
              0 likes
              Last Post brucerobinson  
              Started by ETFVoyageur, Today, 12:52 AM
              1 response
              18 views
              0 likes
              Last Post Leeroy_Jenkins  
              Started by lollers, Today, 03:26 AM
              0 responses
              19 views
              0 likes
              Last Post lollers
              by lollers
               
              Started by aliyahany, Today, 03:16 AM
              0 responses
              4 views
              0 likes
              Last Post aliyahany  
              Working...
              X