Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATI and external home-made C++ application

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

    ATI and external home-made C++ application

    Hello everybody,

    I need to know if it's possible to connect my stand-alone external c++ application (built with VS2003) to NinjaTrader ATI for automated trading (i've installed NT 6.5.1000.7). I don't use eSignal/TS/NinjaScript or whatelse, just my app.

    Following my simple code to get connection with NTDirect.dll library:

    -------------------------------
    typedef int (CALLBACK* pFnFromStringToInt)(std::string);

    char strFilePath[1024];
    strcpy(strFilePath, "C:\\WINDOWS\\system32\\NTDirect.dll");

    CString dllFilePath;
    dllFilePath.Format("%s", strFilePath);
    m_hNinjaDll = LoadLibrary(dllFilePath);
    if (m_hNinjaDll)
    {

    pFnFromStringToInt pSubscribeFunc =
    (pFnFromStringToInt)GetProcAddress(m_hNinjaDll, "SubscribeMarketData");
    if (pSubscribeFunc)
    {
    int ret = (pSubscribeFunc)("ES 12-08"); <---- CRASH
    }
    }
    -------------------------------

    I get a crash when subscribing market data.

    I searched through all this forum, but found anything about this specific question.

    Thank you in advance.

    Bye.
    --
    Marco

    #2
    Hello,

    I will wait to see if fellow traders will reply with something as this is beyond the level of support we provide.
    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    90 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    92 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    70 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    87 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    64 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X