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 ageeholdings, Today, 07:43 AM
    0 responses
    6 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    12 views
    0 likes
    Last Post burtoninlondon  
    Working...
    X