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

Exposing indicator values in Market Analyzer

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

    Exposing indicator values in Market Analyzer

    I have a simple indicator that uses two SMA's and plots those. I've also added two IntSeries variables to hold the count since the last crossover and the direction of the crossover (1, -1).

    I want to be able to display the count and direction in the Market Analyzer. If I store those values in a plot I can access them in the MA, but in some cases, like when the stock price is small, the plats show on the chart and is not clean. Setting them to transparent removes the values too.

    What do I need to do to expose these Series in Market Analyzer?

    #2
    Thanks for the post dynoweb, you don't have to use a plot then, but just can expose the custom int series directly for access - here's a sample on this technique http://www.ninjatrader.com/support/f...ead.php?t=4991
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by dynoweb View Post
      I have a simple indicator that uses two SMA's and plots those. I've also added two IntSeries variables to hold the count since the last crossover and the direction of the crossover (1, -1).

      I want to be able to display the count and direction in the Market Analyzer. If I store those values in a plot I can access them in the MA, but in some cases, like when the stock price is small, the plats show on the chart and is not clean. Setting them to transparent removes the values too.

      What do I need to do to expose these Series in Market Analyzer?
      Expose the data as a DataSeries instead of as an IntSeries.

      Comment


        #4
        Originally posted by NinjaTrader_Bertrand View Post
        Thanks for the post dynoweb, you don't have to use a plot then, but just can expose the custom int series directly for access - here's a sample on this technique http://www.ninjatrader.com/support/f...ead.php?t=4991
        The SampleBoolSeries is what I based my indicator on. Instead of using the BoolSeries I used IntSeries. Loading the SampleBoolSeries indicator in MA only shows one object exposed which is the SampleBoolSeries. This is the same as my indicator only showing the DataSeries plots.

        Comment


          #5
          Originally posted by koganam View Post
          Expose the data as a DataSeries instead of as an IntSeries.
          Thanks, I changed it to DataSeries and it worked. Now do you know how to force it show those values as an integer? for example 3 instead of 3.00

          Comment


            #6
            Originally posted by dynoweb View Post
            The SampleBoolSeries is what I based my indicator on. Instead of using the BoolSeries I used IntSeries. Loading the SampleBoolSeries indicator in MA only shows one object exposed which is the SampleBoolSeries. This is the same as my indicator only showing the DataSeries plots.
            You are correct, should have clarified further that this is just a generalized example of how to expose something internal like a variable or non plotted series.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Originally posted by dynoweb View Post
              Thanks, I changed it to DataSeries and it worked. Now do you know how to force it show those values as an integer? for example 3 instead of 3.00
              FormatPriceMarker()?

              ref: http://www.ninjatrader.com/support/h...ricemarker.htm

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by pmachiraju, 11-01-2023, 04:46 AM
              8 responses
              149 views
              0 likes
              Last Post rehmans
              by rehmans
               
              Started by mattbsea, Today, 05:44 PM
              0 responses
              5 views
              0 likes
              Last Post mattbsea  
              Started by RideMe, 04-07-2024, 04:54 PM
              6 responses
              33 views
              0 likes
              Last Post RideMe
              by RideMe
               
              Started by tkaboris, Today, 05:13 PM
              0 responses
              5 views
              0 likes
              Last Post tkaboris  
              Started by GussJ, 03-04-2020, 03:11 PM
              16 responses
              3,283 views
              0 likes
              Last Post Leafcutter  
              Working...
              X