Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calling historical data from DLL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Calling historical data from DLL

    Is there a function that I can use to get historical data on an instrument via dll?
    I need the close , high, low, and open values for lets say 100 past bars e.g.

    #2
    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>

    Comment


      #3
      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


        #4
        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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        84 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        46 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        66 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        69 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        58 views
        0 likes
        Last Post CarlTrading  
        Working...
        X