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

Market Analyzer Cell colors

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

    Market Analyzer Cell colors

    Is it possible to programmatically define Market Analyzer cell foreground or background colors in NT8 via Ninja Script.? If not, is it possible to reference values from various outputs within a script when setting cell color conditions within a Market Analyzer template? For example if Values[0][0]>Values[1][0] color the cell green. Thanks in advance.

    #2
    Hello Hawk Arps,

    Thanks for opening the thread.

    There currently is not a way to color Market Analyzer column though NinjaScript.

    If not, is it possible to reference values from various outputs within a script when setting cell color conditions within a Market Analyzer template?
    As the Cell window in the Market Analyzer limits you to comparing values of a Market Analyzer cell and numeric values, you would not be able to use the plots from 2 indicators to create your cell color.

    As a work around, you could create a simple indicator that has the condition you wish to use to color a cell. You could have the plot output a certain value once a condition has been met, and you can use a Market Analyzer cell condition to color the cell based off of the indicator plot. This Market Analyzer could then be saved as a template so the colored cell conditions can be remembered.

    Attached is a sample indicator that checks for a cross over and plots a -1, 0 , or 1 depending on the crossover conditions. These values can then be used in a Market Analyzer to create conditional cell colors.

    Please let me know if I may be of further assistance.
    Attached Files
    JimNinjaTrader Customer Service

    Comment


      #3
      Thanks Jim. Is it possible to use the cross detection logic as the cell color condition but still have the Market Analyzer column plot one of the values within the indicator such as the SMA value within that colored cell?

      Comment


        #4
        Hello Hawk Arps,

        This would not be possible, as the workaround is to have an additional indicator plot a value that can be easily translated into some data that the Market Analyzer can use to change the color of the cell. Since the Market Analyzer cell only receives one plot value, it can either be the actual value of the plot, or some other value we replace the plot with to trigger the cell color changes.

        I would advise to create "MarketAnalyzerCellAlert" versions of your indicators so they can plot a value that can be turned into a color, and then include the actual indicator so it's actual plot value can be referenced along side the "MarketAnalyzerCellAlert" version.

        If you have any additional questions, please don't hesitate to ask.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by The_Sec, Today, 02:29 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by jeronymite, 04-12-2024, 04:26 PM
        2 responses
        29 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by Mindset, 05-06-2023, 09:03 PM
        10 responses
        265 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by michi08, 10-05-2018, 09:31 AM
        5 responses
        743 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by tsantospinto, 04-12-2024, 07:04 PM
        4 responses
        63 views
        0 likes
        Last Post aligator  
        Working...
        X