Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

3 coding questions

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

    3 coding questions

    Sorry to put a three in one question, but I am having problems carrying out the following:

    1. Is it possible to change the colour of the price bar dynamically, e.g. have the price displayed as a line, and have one segment displayed one colour if one of my criteria is true and another segment a second colour if a second criteria is true?

    2. Is it possible to have two vertical scales on an indicator, one on the left one on the right, since the indicators I want to view have largely differing ranges ones in 1 - 6 the is 100- 1000's? I know that the easiest way to do this would be to just display two indicators, but I thought I would ask

    3. Is it possible to put text into the data window? The reason I ask is that I am using the data window to display the contents of a structure that I am using to check on the calculation of the indicator and some of the data held within is string based.

    Any help that you can give would be gratefully received.

    TIA,

    Graham.

    #2
    Hello,

    1) You state 'bar' then talk about 'line' so I'm not sure what you need/want, but it sounds like you want a line that changes color. You can't do this without programming. Here is one way to do it: build an indicator that plots on the close of each bar then build a color change into that indicator line via this link:


    2) No, sorry.

    3) By data window do you mean the data box? If so, this is not supported. You can draw data on the panels though:
    DenNinjaTrader Customer Service

    Comment


      #3
      Ben,

      Thanks for your help, you were right it was the line that I needed to change colour. The coding shed light onto the bits I was missing.

      Everything worked out OK.

      Graham.

      Comment


        #4
        Ben,

        Sorry to write again, but I cannot get the second link (re data on panels) to work? Any ideas?

        TIA,

        Graham.

        Comment


          #5
          Graham,

          I am not sure which link Ben was trying to show, but to get information into the Data Box it has to be a plot. Only plots are shown and if you stored your information in there, then you can show it.
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          571 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          331 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
          549 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          549 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X