Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change Plot color in Market Analyzer

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

    Change Plot color in Market Analyzer

    Hi, I use
    Code:
    Plots[0].Pen.Color = Color.Red;
    to change the plot color for an indicator. This works when I have it on the chart, but when I add the indicator plot to a market analyzer window, it does not show the plot colors I set in the code. How do I colorize plots in market analyzer? foreground, and background.

    I know I can apply alert colors based on basic operators, but these calculations need to be done by code.

    Thanks

    #2
    Tight Face,

    You cannot programmatically set this for the Market Analyzer. Plot colors are for charts.

    If your calculations need to be done by code I suggest you create an intermediary plot that takes on predefined known values when certain conditions are true. Say, when you want to go long, set the plot to 1; when you want short, set the plot to -1. Then in the cell conditions for the Market Analyzer you can compare it directly to the known value states.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      understand. thanks. Can I elect the ability to have programmatic control of cell formating for NT7?

      Comment


        #4
        Thank you for the suggestion. We will add it to the list of future considerations.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        43 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        158 views
        2 likes
        Last Post CaptainJack  
        Working...
        X