Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Series Object
Collapse
X
-
Hello Zeos6,
The series its self is thread safe in the sense that you can use it with existing NinjaTrader threads and overrides. If you are doing your own threading, this is something you would need to test to see if you have any issues or errors come up. In general, we don't suggest using threading of your own as the platform is already multi-threaded and we cannot provide support for custom threading.
The existing overrides in NinjaScript will not have problems accessing the series, although if you are accessing it from a non-event driven area such as OnRender or a button click event, you will need to use GetValueAt() method.
If you are accessing a Series out of the event driven context from which it was created you will get strange values when using BarsAgo. You would need to instead use direct indexes and the Get method to retrieve the value. https://ninjatrader.com/support/help...sub=getvalueat
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Thanks Jesse.
I am exposing results from an indicator to another indicator, and the exposed object is a series. I'd like to use Parallel.Invoke() on some methods and pull information from the exposed Series object. From what you say, it appears that the Series object should be thread-safe, at least for reading which is what I am primarily interested in. I will test it out though.I am aware of the GetValueAt() method as the bars back indexing approach requires syncing the series to the bars. Thanks for the heads up though. It's appreciated.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Irukandji, Today, 04:58 AM
|
0 responses
2 views
0 likes
|
Last Post
by Irukandji
Today, 04:58 AM
|
||
Started by fitspressoburnfat, Today, 04:25 AM
|
0 responses
2 views
0 likes
|
Last Post Today, 04:25 AM | ||
Started by Skifree, Today, 03:41 AM
|
1 response
4 views
0 likes
|
Last Post
by Skifree
Today, 03:42 AM
|
||
Started by usazencort, Today, 01:16 AM
|
0 responses
1 view
0 likes
|
Last Post
by usazencort
Today, 01:16 AM
|
||
Started by kaywai, 09-01-2023, 08:44 PM
|
5 responses
604 views
0 likes
|
Last Post Today, 12:32 AM |
Comment