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

Data Series dialog on indicator

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

    Data Series dialog on indicator

    Good morning. I need to add a custom ISeries<double> to an indicator.

    I've found a few examples on the forum that show how to do this for use within code, by instantiating the indicator's static constructor and passing in the series. This works great.

    However when adding this to a chart, the indicator's properties do not produce the Data Series dialog to allow me to select a series from another indicator.

    Is there any way I can have an ISeries<double> as a property on an indicator, and allow this to be selected from the indicator properties as shown in the screenshot?
    Attached Files

    #2
    Hello kevinenergy,

    Thanks for your post.

    A public Series<double> can expose these values for scripts, but the Series will not be accessible through the UI. If you would like to expose a Series<T> that could be accessible throughout the UI, I would suggest adding a plot which will create a Series<double> that can be used in such a way.

    From the Input Series window, you would then select the indicator and then select the plot to be used as the driving input series.

    I've included publicly available documentation for AddPlot() below which demonstrates adding and using plots. You could use a transparent brush to hide the plot from the data box and on the chart.

    AddPlot() - https://ninjatrader.com/support/help...us/addplot.htm

    If there is anything else we can do to help, please let us know.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by algospoke, Yesterday, 06:40 PM
    2 responses
    23 views
    0 likes
    Last Post algospoke  
    Started by ghoul, Today, 06:02 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    45 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    21 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    181 views
    0 likes
    Last Post jeronymite  
    Working...
    X