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 bortz, 11-06-2023, 08:04 AM
            47 responses
            1,603 views
            0 likes
            Last Post aligator  
            Started by jaybedreamin, Today, 05:56 PM
            0 responses
            8 views
            0 likes
            Last Post jaybedreamin  
            Started by DJ888, 04-16-2024, 06:09 PM
            6 responses
            18 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by Jon17, Today, 04:33 PM
            0 responses
            4 views
            0 likes
            Last Post Jon17
            by Jon17
             
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            12 views
            0 likes
            Last Post Javierw.ok  
            Working...
            X