Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Esignal integration problems

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

    Esignal integration problems

    Greetings. I am having difficulties setting up esignal 8.0 build 779 with Ninja Trader 5.2.1000.7.

    1) I have placed the NtDirect.dll in the esignal directory
    2) I have enabled Automated trading in NT.




    I use the following script to perform my tests (which is a lighter version of the NTsample.efs provided

    test:




    var dll = new DLL("NtDirect.dll");
    function preMain() {
    setPriceStudy(true); setStudyTitle("NT Sample");
    dll.addFunction("Connected", DLL.INT, DLL.STDCALL, "Connected", DLL.INT);
    dll.addFunction("AvgEntryPrice", DLL.DOUBLE, DLL.STDCALL, "AvgEntryPrice", DLL.STRING, DLL.STRING);
    }

    function main() {
    debugPrintln(NTConnected(1));
    debugPrintln("Position size: " + dll.call("AvgEntryPrice", getSymbol(),"") + "\r\n");
    }

    function NTConnected(showMessage) { return (dll.call("Connected", showMessage) == 0)}



    The formula output window looks like:

    true
    Position size : 0




    which suggests that whereas the connection with NT is detected from esignal, NT is not receving esignal

    commands. I am of course in simulation in NT, and have linked NT through the esignal connection. I have

    looked through help files on NT website and did not find any help. Can somebody tell me what i am missing?


    Best Regards, Tao and gabriel

    #2
    imported post

    Hi,

    Based on the code you provided, the output is correct. That is what I would expect to see. You may consider taking a look at NT6 just released which has full end to end indicator/system development and backtesting tools. Its basedon C# which has a very similar syntax to EFS which uses JavaScript.

    Ray
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    102 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    144 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    71 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    79 views
    0 likes
    Last Post PaulMohn  
    Working...
    X