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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          136 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          293 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          238 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          334 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          171 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X