PDA

View Full Version : Unknown OIF file type.


Zardoz
04-17-2006, 02:11 AM
I am getting this error in the log when the strategy tries to place an order.

Unknown OIF file type 'C:Program FilesNinjaTrader 5incomingcommand.txt'

The entire command is shown below:

FileAppend("c:program filesninjatrader 5incomingcommand.txt",
"PLACE;SIM101;ER2 06-06;BUY;2;LIMIT;"+numtostr(close[0]-EntryAdjNin,1)+";0;GTC;;;ER surge 2c stop 1;");

In NT4 I use to use order.txt but with NT5 I read one uses COMMAND.TXT.

Using TS 2000i and NT5 5.1.1000.2

Please advise,

Zardoz

NinjaTrader_Ray
04-17-2006, 02:32 AM
OIFs must be written to the <NinjaTrader Installation Folder>\Incoming folder and be named oif*.txt.

Zardoz
04-17-2006, 02:50 AM
Thanks for the quick reply. Will try it. You should be aware however that in your knowledge base doc under ATI you have the following as an example of "GOOD" code. no oif*.txt here:


Good:
...
FileAppend("C:\Program Files\NinjaTrader 5\incoming\command.txt","PLACE;SIM101;ES 03-06;Buy;1;LIMIT;1283.25;0;GTC;;;TEST1;" + NewLine + "PLACE;SIM101;ES 03-06;Buy;1;LIMIT;1283.75;0;GTC;;;TEST2);




thx

NinjaTrader_Ray
04-17-2006, 05:34 AM
Thanks for pointing this out, sorry for your inconvenience. Will make the change shortly.

Ray