Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjascript Q for Market Analyzer

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

    Ninjascript Q for Market Analyzer

    Hi guys,

    When we set a cell value using CurrentText or CurrentValue in a custom Market Analyzer column, is there a way we can set the font colours and background colour from the script as well? (i.e. to get the same effect as we can by using a 'condition' on the column).

    I wasn't able to find any info regarding this in the manual.

    Cheers,
    Shane

    #2
    Hi Shane,

    Yes, you can change the colors of the cell.

    ForeColor = Brushes.Aqua;
    BackColor = Brushes.Green;
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      When I used "ForeColor = Brushes.Aqua;" it was changing the font color for all cells in the whole column... Would you be able to give me a quick example on how to limit this to change the fore/back colors in just the cell I am setting?

      Here is the example code:

      else if(HighTFShort)
      {
      CurrentText = "HF Short"; // HF (Short)
      }

      Thanks again for your help.

      Cheers,
      Shane
      Last edited by ShaneAU; 11-06-2015, 08:49 PM.

      Comment


        #4
        Hi Shane,

        Attached is an example of a script that changes based on criteria.

        If the last price without the decimal is even it changes the colors, otherwise it changes the colors back to the original colors.
        Attached Files
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Perfect... thanks Chelsea!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, Yesterday, 06:46 AM
          0 responses
          14 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          23 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          16 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          82 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          51 views
          0 likes
          Last Post PaulMohn  
          Working...
          X