PDA

View Full Version : NTSample verification error


cmacedo87
02-27-2007, 04:31 PM
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)

NinjaTrader_Dierk
02-28-2007, 12:39 AM
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.

cmacedo87
02-28-2007, 05:19 AM
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.