I need the close , high, low, and open values for lets say 100 past bars e.g.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Calling historical data from DLL
Collapse
X
-
Hello Ray11,
Thanks for your post.
Are you wanting to use the API (DLL) to push data from an external application?
If so, here is a link to a forum thread that demonstrates using the API to push data from an external application.
https://ninjatrader.com/support/foru...626#post793626
Otherwise, the API (DLL) could be used to get the Last, Ask, and Bid price. Support for the API is very limited.
Below I am providing a publicly available link to the help guide that lists the functions available to the API.
Help Guide NT8 API functions - http://ninjatrader.com/support/helpG..._interface.htm
Please also refer to this forum post link for more information about the NinjaTrader API — https://ninjatrader.com/support/foru...art#post793626
Let me know if I may assist further.Last edited by NinjaTrader_BrandonH; 10-09-2022, 08:51 PM.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
-
Thanks NinjaTrader_BrandonH
I have figured out how to communicate to the NINJA trader via DLL.
But what I need is historical data that comes from NINJA Trader not from an outside source. Based on what you shared, it seems like that's not possible, right?
Comment
-
Hello Ray,
Thanks for your note.
That is correct. You cannot pull historical data using the NinjaTrader API (DLL). Only realtime Last, Ask, and Bid data could be accessed using the MarketData() function.
You could likely use other third-party APIs to get historical market data, such as the publicly available API linked below. Note that this would go beyond the level of support we could provide. This forum thread will be open for other community members to share their insights on unsupported external application code.
MarketStack: https://marketstack.com/
Please let me know if I may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
110 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
59 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
37 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
41 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
78 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment