Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custome Indictor Plotting in Market Analyzer

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

    Custome Indictor Plotting in Market Analyzer

    Click image for larger version

Name:	es_sample.png
Views:	210
Size:	91.4 KB
ID:	1289638


    In the image above, I have two indictors that work as well without issues. I would like to plot them on a market analyzer window. However, I am having issues getting this to plot the way I want.

    The indicator I am referring to is the one in the price action window. I have a unplotted variable that stores a value with the following logic.

    bvalue[0] = 0
    .. if close[0] < redline[0] bvalue[0] = -1
    if close[0] > grenline[0] bvalue[0] = 1

    if bvalue[0] = bvalue[1] then bc[0] = bc[0] + 1 else bc[0] = 0

    For the market analyzer cell color, I want to plot as follows ...
    if bValue[0] = 0 - yellow
    if bvalue[0] = 1 - green
    if bvalue[0] = -1 - red

    AT THE SAME TIME .... I also want to plot the number value in box (bc[0])

    I can plot one or the other in the same column cell but not in the same cell. The only way I can make it work right now is to plot it in two columns. Is there a way that I could detect inside the indicator if its applied to a market analyzer window and write some custom code to control either the cell value or background color? I am trying to avoid doing this in two columns,

    thanks



    #2
    Hello jeliner,

    Thanks for your post.

    The Market Analyzer is only able to display one indicator plot from the indicator in a single column.

    To show both indicator plots in the Market Analyzer window, you would need to add two indicator columns to the Market Analyzer window. One column to show the bValue plot value and a second column to show the bc plot value.

    Working with columns: https://ninjatrader.com/support/help...th_columns.htm

    Unfortunately, Market Analyzer cells are not accessible in NinjaScript at this time. We are tracking interest for this in an existing feature request. Please let me know if you would like me to add your vote to this feature request.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    612 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    355 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    561 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    564 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X