• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Analyzer

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

    Market Analyzer

    Dear Support

    In the Market Analyzer I opened some columns for having a faster overview. Now I like to ad another column as indicator (I'm using the indicator I programmed in the chart) with following result to show in the Market Analyzer - I send you the condition only I use.

    protected override void OnBarUpdate()
    {
    if (BarsInProgress != 0)
    return;

    if (CurrentBars[0] < 1)
    return;

    // set 1
    if ((MACD1.Default[0] >= MACD1.Avg[0])
    && (RSI1.Default[0] >= 50))
    {
    BarBrush = Brushes.LimeGreen;
    }

    This code works very fine in the chart and will color the bar as LimeGreen but in the Market Analyzer it does not work. I see no LimeGreen Background as I defined in the cell condition. Why does not work in Market Analyzer?

    Thanks for your help.
    Best
    Markus

    #2
    Hello FutureTrade,

    Thanks for your post.

    The indicators bar brush or plot color would not color the market analyzer cells.

    The Market Analyzer can only provide simple single value condition evaluations and would not be able to perform if ((MACD1.Default[0] >= MACD1.Avg[0])
    && (RSI1.Default[0] >= 50)).


    What you can do is to add a plot to the indicator for input to the Market Analyzer. This can be a transparent plot so that it does not change the indicators current functionality.
    You can set the value of the plot to be 0 when the condition is not true and then set it to a +1 when it is true and if you have an opposite condition you could then set the plot to be a -1. In the Market Analyzer, when you add the indicator column and select the indicator, you would then be able to select the transparent plot and can then work with the values of +1, 0 and -1 in the cell conditions to color the cells as you wish and/or present text.

    I've previously posted on how to do this, in a short video, in this forum thread: https://ninjatrader.com/support/foru...-analyzer-sort
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Dear Paul
      Thank you very much. I saw the video right now and will try to make the programming. I feel with this instructions, I should be able to do it by my self. Very appreciated.
      Best
      Markus

      Comment


        #4
        Dear Paul
        Now it works very well with your suggestion and your video. Highest appreciated.
        Best
        Markus

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by futures2018!, Yesterday, 05:01 PM
        3 responses
        12 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Splex, Today, 12:04 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by n8dogg59, Today, 06:55 AM
        0 responses
        3 views
        0 likes
        Last Post n8dogg59  
        Started by Tradarr, Yesterday, 07:13 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Started by unlobotrader, Today, 02:46 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChristopherS  
        Working...
        X