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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    595 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X