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 Jimmyk, 01-26-2018, 05:19 AM
|
6 responses
835 views
0 likes
|
Last Post
by emuns
Today, 11:27 AM
|
||
Started by jxs_xrj, 01-12-2020, 09:49 AM
|
6 responses
3,291 views
1 like
|
Last Post
by jgualdronc
Today, 10:56 AM
|
||
Started by Touch-Ups, Today, 10:36 AM
|
0 responses
11 views
0 likes
|
Last Post
by Touch-Ups
Today, 10:36 AM
|
||
Started by geddyisodin, 04-25-2024, 05:20 AM
|
11 responses
62 views
0 likes
|
Last Post Today, 10:08 AM | ||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
0 responses
9 views
0 likes
|
Last Post Today, 09:55 AM |
Comment