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

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:	79
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.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Jimmyk, 01-26-2018, 05:19 AM
    6 responses
    834 views
    0 likes
    Last Post emuns
    by emuns
     
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    6 responses
    3,290 views
    1 like
    Last Post jgualdronc  
    Started by Touch-Ups, Today, 10:36 AM
    0 responses
    10 views
    0 likes
    Last Post Touch-Ups  
    Started by geddyisodin, 04-25-2024, 05:20 AM
    11 responses
    62 views
    0 likes
    Last Post halgo_boulder  
    Started by Option Whisperer, Today, 09:55 AM
    0 responses
    8 views
    0 likes
    Last Post Option Whisperer  
    Working...
    X