I need to "plot" private custom Series of different types without drawing anything on the chart because I use them to store on top of each bar some other data points or information beyond the standard OHLCV data.
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
Invisible Plots
Collapse
X
-
Invisible Plots
Can plots be defined as ones that do not draw lines on the charts beyond the apparent solution of assigning the transparent color?
I need to "plot" private custom Series of different types without drawing anything on the chart because I use them to store on top of each bar some other data points or information beyond the standard OHLCV data.Last edited by Gianpiero; 03-23-2024, 03:30 PM.Tags: None
-
Sounds like you don't need a 'plot' at all.
You just want the data the 'plot' maintains, right?
Well, just use a Series<double> (use whatever
data type you want) to maintain your own personal
data on a per-bar basis.
That is, just swap out double to be your own data
type, such as Series<bool> or Series<int>.
(Think of a 'plot' as an specially enhanced version of
a Series<double>, like a series on steriods, because
the 'plot' also has drawing information attached to it.)
These kinds of extra Series<> you define will have,
by definition, no plotting duties, no color, no brush,
no line width -- they only contain one piece of data
you assign, and only one per bar. These private
Series<> are rather basic, and, by definition,
already invisible to the chart.
Have you tried that?
- Likes 1
-
Hello Gianpiero,
Thanks for your post.
It seems like you might want to consider using a custom Series<double> as bltdavid has noted.
Values could be saved the the custom Series for each bar on the chart and you access those values by calling the Series object and passing in a barsAgo value. Custom Series would not plot on a chart.
See this help guide page for more information about Series objects: https://ninjatrader.com/support/help...t8/seriest.htmBrandon H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Taddypole, 04-26-2024, 02:47 PM
|
2 responses
14 views
0 likes
|
Last Post
by Taddypole
Today, 12:43 PM
|
||
Started by futtrader, 04-21-2024, 01:50 AM
|
6 responses
58 views
0 likes
|
Last Post
by futtrader
Today, 11:54 AM
|
||
Started by sgordet, Today, 11:48 AM
|
0 responses
4 views
0 likes
|
Last Post
by sgordet
Today, 11:48 AM
|
||
Started by Trader146, Today, 11:41 AM
|
0 responses
5 views
0 likes
|
Last Post
by Trader146
Today, 11:41 AM
|
||
Started by jpapa, 04-23-2024, 07:22 AM
|
2 responses
22 views
0 likes
|
Last Post
by rene69851
Today, 11:39 AM
|
Comment