PDA

View Full Version : CBOT Bonds in PATS & order types


nicko9
08-03-2007, 12:08 AM
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

NinjaTrader_Dierk
08-03-2007, 02:10 AM
>> 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.

nicko9
08-03-2007, 03:13 AM
file attached

NinjaTrader_Dierk
08-03-2007, 03:19 AM
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/HelpGuideV6/OrderInstructionFilesOIF.html

nicko9
08-03-2007, 03:35 AM
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).

NinjaTrader_Dierk
08-03-2007, 03:39 AM
- 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).

nicko9
08-03-2007, 03:40 AM
dierk, just sent you my log file direct to you by privarte email (from Ben)

nicko9
08-06-2007, 12:01 AM
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

NinjaTrader_Dierk
08-06-2007, 04:09 AM
I'm confused. ZT is traded in 1/128 and not in 1/32 nor in 1/64. So what's the problem there?

nicko9
08-06-2007, 04:32 AM
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)

NinjaTrader_Dierk
08-06-2007, 04:36 AM
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?

nicko9
08-06-2007, 06:10 AM
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

NinjaTrader_Dierk
08-06-2007, 07:16 AM
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.

nicko9
08-06-2007, 07:30 AM
Thanks, please also check the price format that NT will read from an OIF- decimals, fractions etc.

Nick

NinjaTrader_Dierk
08-06-2007, 08:35 AM
The issue was only with the Pats adapter. Prices on OIF files need to decimals (not fractionals) and are not affected.

NinjaTrader_Dierk
08-06-2007, 11:27 PM
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.
We created a custom build holding a fix for this issue. It would be great if you could give it a try and see if the issue is resolved.

Please:
- uninstall NT6 via control panel
- clear your browser cache
- install custom build from here: www.ninjatrader-support.com/ninjatrader/nt6.custom/NinjaTrader.Install.msi (http://www.ninjatrader-support.com/vb/../ninjatrader/nt6.custom/NinjaTrader.Install.msi)

Thanks in advance

nicko9
08-07-2007, 06:22 AM
That seems to have fixed it Dierk - we'll test more strenuously tomorrow and let you know.

Thanks very much for the quick solution
Nick

NinjaTrader_Dierk
08-07-2007, 07:31 AM
You're welcome

nicko9
08-07-2007, 08:34 AM
I can't instal this build on a PC that does not already have NT installed, is that to be expected?

NinjaTrader_Dierk
08-07-2007, 08:37 AM
No, it's a regular build and does not require that NT6 is installed before.

nicko9
08-08-2007, 03:55 AM
dierk, the new build seems to be working ok for ZT orders entered via control panel/dom etc.

I still can't get an order to market using the ATI and an OIF (price as a decimal). As before, it makes NT crash.

Could you test this please.

Incidentally, ZT is the only intstrument (out of 20 or so ) that won't work using OIF files

Nick

nicko9
08-08-2007, 03:59 AM
Cancel that - The OIF now works

NinjaTrader_Dierk
08-08-2007, 04:05 AM
Great to hear that.