Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 quantismo, 04-17-2024, 05:13 PM
        5 responses
        32 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by proptrade13, Today, 11:06 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by love2code2trade, 04-17-2024, 01:45 PM
        4 responses
        34 views
        0 likes
        Last Post love2code2trade  
        Started by cls71, Today, 04:45 AM
        2 responses
        10 views
        0 likes
        Last Post eDanny
        by eDanny
         
        Started by kulwinder73, Today, 10:31 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Erick  
        Working...
        X