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 Vitamite, Yesterday, 12:48 PM
|
3 responses
16 views
0 likes
|
Last Post Today, 02:28 PM | ||
Started by aligator, Today, 02:17 PM
|
0 responses
5 views
0 likes
|
Last Post
by aligator
Today, 02:17 PM
|
||
Started by lorem, 04-25-2024, 09:18 AM
|
22 responses
94 views
0 likes
|
Last Post
by lorem
Today, 02:08 PM
|
||
Started by sofortune, Today, 10:05 AM
|
3 responses
16 views
0 likes
|
Last Post Today, 01:37 PM | ||
Started by ETFVoyageur, 05-07-2024, 07:05 PM
|
23 responses
185 views
0 likes
|
Last Post
by ETFVoyageur
Today, 01:35 PM
|
Comment