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 chbruno, Today, 04:10 PM
|
0 responses
3 views
0 likes
|
Last Post
by chbruno
Today, 04:10 PM
|
||
Started by josh18955, 03-25-2023, 11:16 AM
|
6 responses
436 views
0 likes
|
Last Post
by Delerium
Today, 03:42 PM
|
||
Started by FAQtrader, Today, 03:35 PM
|
0 responses
6 views
0 likes
|
Last Post
by FAQtrader
Today, 03:35 PM
|
||
Started by rocketman7, Today, 09:41 AM
|
5 responses
19 views
0 likes
|
Last Post Today, 03:33 PM | ||
Started by frslvr, 04-11-2024, 07:26 AM
|
9 responses
127 views
1 like
|
Last Post
by caryc123
Today, 03:12 PM
|
Comment