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 CarlTrading, Yesterday, 11:51 AM
    0 responses
    12 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, Yesterday, 11:48 AM
    0 responses
    19 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    13 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 03-23-2026, 11:13 AM
    0 responses
    18 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X