Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple data streams in Market Analyzer

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

    Multiple data streams in Market Analyzer

    Hi,
    I want to use an indicator I have written that uses multiple data streams in Market Analyzer. Is this possible?
    Secondly, is it possible to reference previous values in data series in this indicator?
    Thanks for any help.
    Regards,
    iq

    #2
    Hello iq200,

    Thanks for your post.

    I'm not entirely sure what you mean by "multiple data streams" but if you mean that the indicator adds other data series, that would not be an issue.

    You can use the market analyzer "Indicator" Column to add your indicator.

    Generally, if the indicator has one or more plots you would be able to see the value of a selected plot.

    The Market analyzer will only display what the current value of a plot is.

    Comment


      #3
      Yes I was referring to multiple data series.
      Many thanks Paul.

      Comment


        #4
        Hi Paul - do you have any example of using multiple data series AND previous Series values in Market Analyzer indicator code?
        Thanks,
        iq

        Comment


          #5
          Secondly, Is there a guide to creating an indicator for Market Analyzer?

          Comment


            #6
            Hello iq200,

            Thanks for your reply.

            "do you have any example of using multiple data series AND previous Series values in Market Analyzer indicator code?" I do not.

            If in your custom indicator you wanted to display, for example, the current value of some multi-time frame calculation then you would need a plot that provides that value. If you wanted to display some prior bar value then you would need to provide a plot that provides the value. If you wanted to show both, then you would need to use two columns where one has one plot value and the other shows the other plot value.

            The market analyzer indicator column will display the value of the selected plot of the indicator. For example, if you add the MACD to the indicator column, you can display the MACD value, or the Avg value, or the Diff value.

            One particular use of the Market analyzer indicator column is to display "signal" type plots from an indicator. For example, if you created an indicator and wanted to know when the Stochastics is overbought or oversold and perhaps some other conditions to support those oversold or overbought conditions are true, you can have the indicator plot a signal type plot that is +1 when one condition is true, -1 when the opposite condition is true or 0 to indicate neither condition is true. In the market analyzer, you can then set cell conditions to react to the +1/-1 values. The indicator CandlestickPattern has a signal plot that provides a +1 value when the selected pattern is found. You can create signal plots where you have a range of values that can be interpreted as you wish.

            Comment


              #7
              Hi Paul.
              Thank-you for the detailed post. I appreciate the time you took.
              I have coded up Market Analyzer indicators before and am aware of the concepts you described. I was asking for example code that used the concepts I asked about.

              1) So going back to the questions I asked earlier, are saying that I can load up additional time series using the following in a Market Analyzer indicator:
              AddDataSeries(BarsPeriodType.Tick, 1);

              2) If I have a data series declared as follows:
              private Series<int> direction;

              Say direction[5] in the past was 0 and after more data has come in, I need to change this value. Can I change this older value at the current time in a Market Analyzer indicator using the following:
              direction[5] = 1;

              Many thanks,
              iq

              Comment


                #8
                Hello iq200,

                Thanks for your reply.

                We are talking about an indicator that could be applied on the chart and/or in the market analyzers indicator column.

                To display the value in the market analyzer column, you would need to provide it through a plot. You can change the value of a plot 5 bars ago.
                Note that you can make the plot a transparent color so it does not change the indicators chart display and a transparent plot can be read in the market analyzer indicator column.

                If you also want to check the value of the transparent plot in a chart databox, you would need to set the property ShowTransparentPlotsInDatabox to be true in the Onstatechange, state.defaults section of the indicator: https://ninjatrader.com/support/help...sindatabox.htm

                Comment


                  #9
                  Hi Paul.
                  I'll look into it and get back to you if I have any issues. Many Thanks.
                  Regards,
                  iq

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  577 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  334 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  101 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  553 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  551 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X