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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    68 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    151 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X