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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    36 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    14 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    19 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X