Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Can a Chart Indicator Access a Strategy
Collapse
X
-
Can a Chart Indicator Access a Strategy
Is it possible for a custom indicator that is added to a chart to access a strategy that is also running on that chart? Indicator.Strategy appears to be null. My guess is because it is not added to the chart from the strategy. I need to access a 3rd party strategy and send performance results to a database. I cannot change the code of the strategy. Thanks!Tags: None
-
Hello thomaspartyof10, thanks for your post.
It is not possible to access a strategy instance from an indicator, you would need to pass the data to a "middleman". See this post I made a while ago on implementing a custom class with a property changed event that other scripts can subscribe to:
If your strategy changed the property, then other scripts subscribed to the event will be notified.
Kind regards.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by sjsj2732, Today, 04:31 AM
|
0 responses
20 views
0 likes
|
Last Post
by sjsj2732
Today, 04:31 AM
|
||
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
280 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
279 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
130 views
1 like
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
90 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|

Comment