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!
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
NinjaTrader
AddChartIndicator() for indicators?
Collapse
X
-
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?Tags: None
-
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
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
10 responses
1,768 views
0 likes
|
Last Post
by Leafcutter
Today, 03:01 AM
|
||
Change colour of Stop market and limit orders to red and green via indicator script
by Rapine Heihei
Started by Rapine Heihei, 04-23-2024, 07:51 PM
|
2 responses
30 views
0 likes
|
Last Post
by Max238
Today, 02:25 AM
|
||
Started by Shansen, 08-30-2019, 10:18 PM
|
24 responses
943 views
0 likes
|
Last Post
by spwizard
Today, 01:29 AM
|
||
Started by Max238, Today, 01:28 AM
|
0 responses
9 views
0 likes
|
Last Post
by Max238
Today, 01:28 AM
|
||
Started by rocketman7, Today, 01:00 AM
|
0 responses
7 views
0 likes
|
Last Post
by rocketman7
Today, 01:00 AM
|
Comment