Hello, is it possible to create a custom indicator (C#) under Ninjatrader that supports a multicor calculation? Thanks for a reply!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Multicore support
Collapse
X
-
Hello Roman111,
Welcome to the NinjaTrader forums!
Is your question about multi-threading. While NinjaTrader 8 is multi-threaded, this is not officially supported in any scripts other than Addon scripts by NinjaTrader as Indicators, Strategies, and other script types (except for Addons) are driven by data or chart events.
That said, in C#, it is possible to start new threads, though we highly discourage this.
A timer can be used instead for some for certain purposes.
Below is a link to an example.
Should you need to use data from a timer or non-data-driven event, call that data within TriggerCustomEvent().
If you would like to go down the unsupported route I would recommending searching with a search engine, System.Threading.Thread, System.Threading.Tasks.Task, System.ComponentModel.BackgroundWorker, and System.Windows.Threading.Dispatcher.Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
0 responses
1 view
0 likes
|
Last Post Today, 01:30 AM | ||
Started by samish18, Yesterday, 08:31 AM
|
2 responses
8 views
0 likes
|
Last Post
by elirion
Today, 01:28 AM
|
||
Started by Mestor, 03-10-2023, 01:50 AM
|
16 responses
389 views
0 likes
|
Last Post
by z.franck
Today, 01:04 AM
|
||
Started by rtwave, 04-12-2024, 09:30 AM
|
4 responses
31 views
0 likes
|
Last Post
by rtwave
Today, 12:50 AM
|
||
Started by yertle, Yesterday, 08:38 AM
|
7 responses
29 views
0 likes
|
Last Post
by yertle
Today, 12:15 AM
|
Comment