Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to retrieve StringSeries information from the Market Analyser

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

    How to retrieve StringSeries information from the Market Analyser

    Hi,

    I've got a NinjaTrader indicator which generates a StringSeries and I'd like to retrieve this String info from the Market Analyser window.

    I've tried to declare the StringSeries like a plot

    Code:
    [Browsable(false)]
    [XmlIgnore()]
    public StringSeries MyComplexStringForMA
    {
         get
            {
            return StringWithinCode;
            }
    }
    but I still can't access it from the Market Analyser.

    Is there a way to achieve that ?
    Or is the Market Analyser doomed to get only DataSeries (double) info ?

    I need to say that the String is complex. So I can't use a number to correspond to a string.

    Thank you in advance for your help
    Last edited by kriss SARdine; 01-04-2012, 08:46 AM.

    #2
    Kriss,

    I am happy to assist you.

    Here is a forum thread on this topic : http://www.ninjatrader.com/support/f...ad.php?t=45537

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Thank you AdamP,
      Actually I've seen this post before asking on the forum and I tried to do what it is explain in quotes below.
      Because the string is complex I can't use the solution number one.
      So I've tried to do the solution number 2 "exposing Indicator values that are not plots".
      But the exposure seems to work only in other script, not in the market analyser.

      Spacefaring,

      What Bertrand is saying is to have some simple output plot an integer, then set up market analyzer to have a different string for 1, or for 2, or for 3. Its not incredibly complex, just checking in your indicator if the string is say A, then assign the dataseries a value of 1, if it is B, assign a dataseries value of 2, etc. You can then set up the Market Analyzer to output the string A if it gets a 1, or the string B if it gets a 2, etc from this plot.

      That being said, here is another way you could try to do this but it requires intermediate programming abilities :

      Here is a reference sample on exposing Indicator values that are not plots : http://www.ninjatrader.com/support/f...ead.php?t=4991

      Please let us know if you require additional assistance.
      Last edited by kriss SARdine; 01-04-2012, 09:14 AM.

      Comment


        #4
        kriss,

        Here is another thread on this subject : http://www.ninjatrader.com/support/f...ad.php?t=41169

        Market Analyzer can only display plots for indicators, which are dataseries. Apparently you can modify the description type found under MyDocuments\NinjaTrader 7\bin\Custom\MarketAnalyzer to make a new type of column that is capable of displaying text. You would need to use the "Exposing indicator properties that are not plots" reference sample.

        Essentially the main issue it that plots are dataseries and these store doubles. Its possible you could find a work around by creating some sort of string dataseries.

        Apologies for any confusion.

        Please let me know if I may assist further.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Apparently you can modify the description type found under MyDocuments\NinjaTrader 7\bin\Custom\MarketAnalyzer to make a new type of column that is capable of displaying text
          Hi again,
          Thank you for your answer. I didn't know that.
          I'm trying with no success, but I will continue before asking your help.

          Thanks a lot

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by alifarahani, Today, 09:40 AM
          6 responses
          36 views
          0 likes
          Last Post alifarahani  
          Started by Waxavi, Today, 02:10 AM
          1 response
          17 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by Kaledus, Today, 01:29 PM
          5 responses
          14 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by Waxavi, Today, 02:00 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by gentlebenthebear, Today, 01:30 AM
          3 responses
          17 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X