Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding plots and output to existing indicators that are display only

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

    Adding plots and output to existing indicators that are display only

    Hi,

    I'm new to Ninjatrader and coding in general, but it seems there is a common problem of using shared indicators in Strategies for trading in Ninja. I have downloaded a bunch, some users have great work, and so I have some I'd like to use in a backtest, and a strategy, but they don't compile or aren't providing data to Strategy Builder. For instance, the wiseman fractals, key reversals and others do display on a chart, so they work for manual traders but not algo builders. My question is, how to add a reference in the ninjascript that lets me work with such an indicator that is display only? Do I use AddPlot()?? or something else? and where?

    A relevant snippet, and instruction on where and how to place it in the code, would be greatly appreciated.

    Thanks all so much!

    Ch1a

    #2
    Hi chinaexpert1a, thanks for your question.

    The indicator must expose either a plot via the AddPlot method or a public Series<T> object. We have an example of the ladder here:



    It looks like the wiseman fractal indicator has two plots which should be available in the builder but the other signals would need to be exposed as a public series.

    Please let me know if I can assist any further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    67 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    95 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    53 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    108 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    63 views
    0 likes
    Last Post PaulMohn  
    Working...
    X