NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 08-03-2007, 12:08 AM   #1
nicko9
Senior Member
 
Join Date: Sep 2006
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
Default CBOT Bonds in PATS & order types

I am using the ATI functiopn to read order files which depending on the exchange works well - or not at all via Pats.

I can't seem to figure out a format for the price for the 2 year note. I've been trying to use a decimal format but this simply crashes NT. How should I do this?

Also, Pats supports synthetic order types vis "SyOMS" (when they are not native to an exchange) These synthetic order types have an exclamation mark suffix - i.e "StopLimit!" . There are also timed order types offered via SyOMS. The order type drop-down in NT only offers MARKET, LIMIT, STOP, STOPLIMIT (which doesn't work if the exchange does not support it - ie euronext). How can I get NT to communicate an order type that Pats will understand via Syoms?

thanks

Nick
nicko9 is offline  
Reply With Quote
Old 08-03-2007, 02:10 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

>> I've been trying to use a decimal format but this simply crashes NT
Please post the file which crashes NT.

>> How can I get NT to communicate an order type that Pats will understand via Syoms?
Unfortunately this is not supported.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 08-03-2007, 03:13 AM   #3
nicko9
Senior Member
 
Join Date: Sep 2006
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
Default file attached

file attached
Attached Files
File Type: txt Book34.txt (57 Bytes, 4 views)
nicko9 is offline  
Reply With Quote
Old 08-03-2007, 03:19 AM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

1) NT does not crash here but shows these messages in the logs
Unknown OIF file type '...\NinjaTrader 6\incoming\Book34.txt. Can you reproduce a crash and if so how?
2) The file format is incorrect (as suggested by the logs). Please read more here: http://www.ninjatrader-support.com/H...nFilesOIF.html
NinjaTrader_Dierk is offline  
Reply With Quote
Old 08-03-2007, 03:35 AM   #5
nicko9
Senior Member
 
Join Date: Sep 2006
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
Default

tried again and crashed again.

This file format has been used for hundreds of orders which execute without error. Only difference here is the price. (i changed the account number in the file I posted for security and the file name is not what what we usually use - I gave it this to post it to you).
nicko9 is offline  
Reply With Quote
Old 08-03-2007, 03:39 AM   #6
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

- please make sure you are on latest NT6R4
- please post a screenshot of the crash box you see.
- The file you posted surely does not work. Please see documentation on the required file format (e.g. field separator is not space nor tab but semicolon - as documented).
NinjaTrader_Dierk is offline  
Reply With Quote
Old 08-03-2007, 03:40 AM   #7
nicko9
Senior Member
 
Join Date: Sep 2006
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
Default

dierk, just sent you my log file direct to you by privarte email (from Ben)
nicko9 is offline  
Reply With Quote
Old 08-06-2007, 12:01 AM   #8
nicko9
Senior Member
 
Join Date: Sep 2006
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
Default PATS & CBOT 2yr note problem

Dierk, this is not only an ATI problem, but with all order entry methods and the 2yr note.

For example:

Last traded price in Pats = 102 21.75/32 = 102.6796875

If I set the tick size in NT as 128ths (.0078125) I get a last traded price in NT of 102 28/128 (102.21875)
If I set the tick size in NT as 64ths (.015625) I get a last traded price in NT of 102 44/64 (102.6875)
If I set the tick size in NT as 32nds (.03125) I get a last traded price in NT of of 102 22/32 (102.6875)

It looks like the 128th tick size setting is not working correctly; but if I use 64ths or 32nds I don't get the precision.

If this is not a bug in NT, perhaps you could confirm what is the correct tick size setting for this instrument connected via Pats - it doesn't seem to be any of these above?

thanks

Nick
nicko9 is offline  
Reply With Quote
Old 08-06-2007, 04:09 AM   #9
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

I'm confused. ZT is traded in 1/128 and not in 1/32 nor in 1/64. So what's the problem there?
NinjaTrader_Dierk is offline  
Reply With Quote
Old 08-06-2007, 04:32 AM   #10
nicko9
Senior Member
 
Join Date: Sep 2006
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
Default

NT displays the wrong price:

Last traded price in Pats = 102 21.75/32 = 102.6796875

I get a last traded price in NT of 102 28/128 = 102.21875

(I tried using a different tick size setting to try and resolve the problem)
nicko9 is offline  
Reply With Quote
Old 08-06-2007, 04:36 AM   #11
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

I'm still confused:
- please reset your ticksize for ZT to 1/128 so you never will see 1/32 display as per your post
- NT passes through the data it receives from Pats. There is - apart from the rounding to ticksize - no manipulation on the price. How do you figure that the price displayed by NT is not the price received from Pats?
NinjaTrader_Dierk is offline  
Reply With Quote
Old 08-06-2007, 06:10 AM   #12
nicko9
Senior Member
 
Join Date: Sep 2006
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
Default

The price for ZT I get from Pats (via Jtrader) and the price I see in esignal, and the price I get from IB is not the price that is displayed in NT.

Do you have a Pats account that you test this on? this might help to clarify the issue.

Nick
nicko9 is offline  
Reply With Quote
Old 08-06-2007, 07:16 AM   #13
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

I see. This is a bug in NT Pats adapter for ticksize=1/128. This bug will be fixed with next release. Thanks for pointing that out.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 08-06-2007, 07:30 AM   #14
nicko9
Senior Member
 
Join Date: Sep 2006
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks, please also check the price format that NT will read from an OIF- decimals, fractions etc.

Nick
nicko9 is offline  
Reply With Quote
Old 08-06-2007, 08:35 AM   #15
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

The issue was only with the Pats adapter. Prices on OIF files need to decimals (not fractionals) and are not affected.
NinjaTrader_Dierk is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pats connection to NYBOT/ICE nicko9 Connecting 1 05-29-2007 03:19 AM
Fill types NinjaTrader_Josh Strategy Development 4 05-28-2007 01:56 AM
Says connecting to Pats but never does connect dynosaratoga Connecting 11 04-19-2006 09:43 AM
PATS Server Symbols underground Automated Trading 2 04-20-2005 01:37 PM
PATS UserName underground Connecting 1 03-28-2005 03:13 PM


All times are GMT -6. The time now is 02:20 AM.