View Full Version : NeoTicker Examples Using ATI Command Language
whitmark
12-11-2005, 11:54 PM
I see in your help facility that you provide examples of eSignal and Tradestation integration using the ATI command language. How about providing some examples using NeoTicker in Delphi Script? NeoTicker does provide a Ninja interface thatutilizes some but not all of theavailable commandsso there is still a need to still access Ninja directly. Have you considered providing NeoTicker examples andif so, are there any issues or timing you would be ableto share regarding implementation in NeoTicker.
Regards,
Whitmark
NinjaTrader_Ray
12-12-2005, 12:35 AM
I would like to include NeoTicker examples but I will not be the one to provide them personally based on current development priorities. If someone would like to contribute I would be happy to include them in our documentation. Maybe aspTrader would lile to help out?
Ray
aspTrader
12-12-2005, 01:56 AM
The function declarations I use in Delphi follow below. I have used all of them myself at this point except for the 3 "playback" functions which I haven't gotten to yet.
Caveats:
1 I have very little experience with Delphi so there may well be other, better code for this.
2 I don't know how to use these functions within Delphi Script.
FUNCTION Connected ( ) : integer; stdcall; external 'NtDirect.dll';
FUNCTION Last ( Symbol: string; Price: Double; Size: Integer): integer; stdcall; external 'NtDirect.dll';
FUNCTION Ask ( Symbol: string; Price: Double; Size: Integer): integer; stdcall; external 'NtDirect.dll';
FUNCTION Bid ( Symbol: string; Price: Double; Size: Integer): integer; stdcall; external 'NtDirect.dll';
FUNCTION LastPlayback ( Symbol: string; Price: Double; Size: Integer; Timestamp: string ): integer; stdcall; external 'NtDirect.dll';
FUNCTION AskPlayback ( Symbol: string; Price: Double; Size: Integer; Timestamp: string ): integer; stdcall; external 'NtDirect.dll';
FUNCTION BidPlayback ( Symbol: string; Price: Double; Size: Integer; Timestamp: string ): integer; stdcall; external 'NtDirect.dll';
FUNCTION Command ( Command: string; Account: string; Instrument: string; Action: string; Quantity: integer;
OrderType: string; LimitPrice: double; StopPrice: double; TimeInForce: string;
OCO: string; OrderID: string; strategy: string; StrategyID: string ) : integer; stdcall; external 'NtDirect.dll';
FUNCTION AvgEntryPrice ( Instrument: string; Account: string ) : double; stdcall; external 'NtDirect.dll';
FUNCTION AvgFillPrice ( OrderID: pchar ) : double; stdcall; external 'NtDirect.dll';
FUNCTION Filled ( OrderID: pchar ) : integer; stdcall; external 'NtDirect.dll';
FUNCTION MarketPosition( Instrument: string; Account: string ) : integer; stdcall; external 'NtDirect.dll';
FUNCTION Orders ( Account: pchar ) : pchar; stdcall; external 'NtDirect.dll';
FUNCTION OrderStatus ( OrderID: pchar ) : pchar; stdcall; external 'NtDirect.dll';
aspTrader
12-12-2005, 02:05 AM
The real time consumer for the user of the Ninja Trader ATI is having to build the custom ("convenience layer") functions that other platforms provide out-of-the box.
I hope it is understood that these "convenience layer" functions are important for every platform.
The objective of my "aspTrader Fixes and Features" thread is to document what those "convenience layer" are.