Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NTSample verification error

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

    NTSample verification error

    I've trying to setup the sample strategy NTSample provided for NinjaTrader DLL integration,

    but I'm getting an error "Error in the Function" Type (#200)

    when I try to re-verify this strategy after a minor modification

    (i.e. added extra blank line in code).

    It'shighlighting the LastBarOnChart for the error.

    I'm sure I probably missed something in the setup process,

    so here are some specifics and what I did so far.

    I'm using:

    Tradestation version: 8.1 build SP1 (build 3258)

    Ninjatrader version: 6.0.0.6

    Steps that I've taken so far:


    1) started Tradestation
    1) imported the file: <NinjaTrader Installation

    Folder>\bin\AutoTrade\NINJATRADER.ELD"

    as per instructions: DLL Based Integration->Set Up

    2) started Ninjatrader 6 and checked File->AT Interface

    3) tried recompiling the NTSample code


    Result:verificationerror mentioned previously

    Where did I go wrong and what do I need to do to progress here?

    (Attached is the NTSample strategy that I'm trying to re-verify without success)

    Attached Files

    #2
    imported post

    I suggest reimporting the NinjaTrader.eld file, thus overwriting any changes you made the NT functions and strategies. Next you should create a new (!) strategy as a copy-cat of NTSample and start applying your chanegs there. Please make sure you verify your new strategy after every change you made so you get an idea what went wrong.

    Comment


      #3
      imported post

      I'vehave corrected the problem another way.

      I opened, slightly changed, and then reverifyed each of the (dependant) functions

      that were reporting the "Error in the function" message, as well as any functions

      that they depended on. Seems to work now.

      Thanks for the input.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      101 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