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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X