Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

AddChartIndicator() for indicators?

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

    AddChartIndicator() for indicators?

    The AddChartIndicator() method on Strategies is very useful for visualizing indicators when developing a strategy, is there any way to Add a chart indicator to another indicator so that it can be viewed without re-implementing a new plot and all the drawing again?

    #2
    Hello kevinenergy
    Thanks for your post.

    Currently, there is not a way to directly add an indicator to the chart from another indicator. There exists a feature request to expose AddChartIndicator() in the Indicator namespace, I will add a vote for feature ID SFT-899.

    Currently, we must add the indicator to the chart manually if you want the visual representation of the indicators being used in your indicator. Alternatively, you can make your own plots and plot the indicator's data, or you might have to mimic the OnRender() method of the indicator being used by your script.

    Here is the documentation on AddPlot and OnRender():
    Help Guide - AddPlot()
    Help Guide - OnRender()
    Josh G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Segwin, 05-07-2018, 02:15 PM
    10 responses
    1,768 views
    0 likes
    Last Post Leafcutter  
    Started by Rapine Heihei, 04-23-2024, 07:51 PM
    2 responses
    30 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by Shansen, 08-30-2019, 10:18 PM
    24 responses
    943 views
    0 likes
    Last Post spwizard  
    Started by Max238, Today, 01:28 AM
    0 responses
    9 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by rocketman7, Today, 01:00 AM
    0 responses
    7 views
    0 likes
    Last Post rocketman7  
    Working...
    X