Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Display String in Market Analyzer

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

    Display String in Market Analyzer

    Hi,

    Is it possible to display string in the market analyzer? XXX.set() seems to only take numbers. Or perhaps more generally, can I set an output of an indicator as string?

    Thank you

    #2
    Hello Usuallywin,

    Thank you for your note.

    You would need to override the Price Marker from the code in order to do this.

    Code:
    public override string FormatPriceMarker(double price)
    {
         return myString;
    }
    http://www.ninjatrader.com/support/h...ricemarker.htm

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Thank you so much for this! Exactly what I was looking for.

      On a related note, is it possible to set the "cell conditions" programmatically? Specifically, setting the background color based on a particular value (greater/less than zero, for example).

      (I know how to do this manually within the Market Analyzer.)

      Thanks in advance!

      Comment


        #4
        Hello Neokin,

        Thank you for your post.

        Why you can't directly program this functionality, you could set a data series inside the script to be a 1 or what value to want to test against the manual cell conditions that you would set up.

        I.E. i have a condition in my script that sets the Data series value to 1. My cell condition is set to turn green with specified data series is 1 or greater

        Let me know if I can be of further assistance.
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          Thanks for the idea. For now, it seems I can just do it manually based on my existing output.

          A couple other Market Analyzer programming questions:

          Is it possible to create a single indicator that outputs multiple columns in MA? (right now, I am simply using multiple indicators; one per column)

          Also, can you set the column name programmatically? (right now, I am setting it manually)

          I see how you can set MaximumBarsLookBack to Infinite, but can you set the "# of bars to look back" programmatically? (right now, I'm setting it manually)

          Anything that I can do in the code is one less thing that needs to be done manually by another user.

          Thank you!

          Comment


            #6
            Hello Neokin,

            All you are suggesting is unsupported and undocumented.
            I don't have a lot of resources for programming this for the Market Analyzer.

            However, if you are worried about your user base, you can create a Market Analyzer template that they can load into their side and then apply an Instrument list for that template.

            Let me know if I can be of further assistance.
            Cal H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by pibrew, Today, 06:37 AM
            0 responses
            0 views
            0 likes
            Last Post pibrew
            by pibrew
             
            Started by rbeckmann05, Yesterday, 06:48 PM
            1 response
            12 views
            0 likes
            Last Post bltdavid  
            Started by llanqui, Today, 03:53 AM
            0 responses
            6 views
            0 likes
            Last Post llanqui
            by llanqui
             
            Started by burtoninlondon, Today, 12:38 AM
            0 responses
            10 views
            0 likes
            Last Post burtoninlondon  
            Started by AaronKoRn, Yesterday, 09:49 PM
            0 responses
            15 views
            0 likes
            Last Post AaronKoRn  
            Working...
            X