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 pechtri, 06-22-2023, 02:31 AM
          9 responses
          122 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by frankthearm, 04-18-2024, 09:08 AM
          16 responses
          66 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by habeebft, Today, 01:18 PM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by benmarkal, Today, 12:52 PM
          2 responses
          13 views
          0 likes
          Last Post benmarkal  
          Started by f.saeidi, Today, 01:38 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Working...
          X