Thanks.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
OnMarketData not called
Collapse
X
-
OnMarketData not called
My code worked before. After loading new simulated stock AA, when I enable the strategy, I only see Initialize() executed from my added log. But don't see onMarketData)_ was ever called. Is there something I could adjust to make it work?
Thanks.Tags: None
-
Hello appleseed,
Are you getting real-time data for the AA instrument? You may check this by opening up a Time and Sales window under File -> New -> Time and Sales then right click inside of the windows and adding the AA instrument. You will see data populate under Volume if you are getting real-time data for AA instrument.
Also, do you get any error messages inside of the Log tab of your Control Center window?
Happy to be of further assistance.JCNinjaTrader Customer Service
Comment
-
Hello appleseed,
That may be expected depending on what session template you have selected. With a Session Template you can use it to be able to only show data in your chart in between a specific time frame. You may want to use the Default 24/7 to be able to show data all week long.
For more information about the Session Template you may view the following link.
To change the session template on a chart open up your "Data Series" window by right clicking in the chart and select Data Series. With the instrument that you want to change highlighted go to the right panel. Under "Data" change the "Session template" from "<Use instrument settings>" to the session template that you want. For example "Default 24/7".
For more information about "How to edit Data Series parameters in a chart" you may read our online help guide at the following link.
Let me know if you see updates after changing the session template.JCNinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
60 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
148 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
98 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
286 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment