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 | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
59 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
134 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
74 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment