Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using DLL Interface in TS Easy Language Strategy

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

    Using DLL Interface in TS Easy Language Strategy

    I have installed the els/eld files from NT bin folder and have tried implementing the NTBuyMarket command etc in a script but I get the following error: trying to reference at data to future. Bar reference value: -1. My code works with standard easylanguage buy/sell commands and I can backtest it but for some reason with the NT codes I get the error. Here's a copy of the code command lines:

    ifcurrentbar=1andNTConnected(1)thenbegin
    ifNTMarketPosition("")=0thenbegin
    if MA crosses over MA2thenNTBuyMarket("",1)nextbar;
    end;
    endelsebegin
    if MA crosses under MA2thenNTSellMarket("",1)nextbar;

    end;

    #2
    Hi robninja,

    You are using the function incorrectly. The link below will take you to a sample EL reference strategy. Please take this code and build upon it to get to what your after.

    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    65 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    41 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    23 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    26 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    52 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X