View Full Version : qif not working
kiwibird
04-17-2008, 10:27 PM
Im new to ninja
In qif builder, I MAKE the folllowing
PLACE;BACK101;ES 06-08;SELL;1;MARKET;0;0;DAY;;IDNAME;;
THE BOX IS TICKED THAT SAYS WRITE FILE
at interface is ticked under file.
no execution occurs. Any idea why.
I have also writen a .qif file to C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming
and it still didnt trade.
ie PLACE;Back101;ES 06-08;SELL;1;MARKET;0;0;DAY;;qwe;;
I can execution via the orders buy sell button.
I ALSO write the file ie PLACE;Sim101;ES 06-08;SELL;1;MARKET;0;0;DAY;;qwe;;
and get no execution again
the logs show that account back101 doesnt exist, but i cant change this on qif builder. I dont know how to get back101 going as default account, but Sim101 should work with a maniual order filer
second issue is,
in the free version of ninja, can we trade a IB paper account?
NinjaTrader_Dierk
04-17-2008, 10:59 PM
- please make sure you have File->Automated Trading Interface checked
- unfortunately you can not trade IB paper trade account with the fredd NT version
kiwibird
04-17-2008, 11:38 PM
Box is ticked, and still no executions.
where do I find the log file?
can i change the folder than scans for qif files?
NinjaTrader_Dierk
04-18-2008, 12:33 AM
- The logs are available at Control Center->Logs tab.
- please make sure you are connected to a broker or data feed as you test
- please select the Sim101 account and NOT Back101
kiwibird
04-18-2008, 01:03 AM
how can i change the qif folder when ninja looks for qif files?
qif builder always has greyed out account back101 even if i selects im101
i will connect using simulated data feed.
thanks for your help
pz
NinjaTrader_Dierk
04-18-2008, 01:05 AM
>> how can i change the qif folder when ninja looks for qif files?
Unfortunately this is not supported.
kiwibird
04-18-2008, 01:12 AM
at QIF DOesnt work, see log. I cant change the acount from greyed out back101,
file write below also doesnt work
PLACE;SIM101;ER2 06-08;BUY;1;MARKET;0;0;DAY;;;;
2008-04-18 02:09:10:750 ERROR: OIF delete error 'C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming\2.qif' Exception 'The process cannot access the file 'C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming\2.qif' because it is being used by another process.'
2008-04-18 02:09:50:328 ERROR: Unknown OIF file type 'C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming\4.QIF'
2008-04-18 02:09:50:328 ERROR: OIF delete error 'C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming\4.QIF' Exception 'The process cannot access the file 'C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming\4.QIF' because it is being used by another process.'
2008-04-18 02:09:50:328 ERROR: Unknown OIF file type 'C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming\4.QIF'
2008-04-18 02:09:50:328 ERROR: OIF delete error 'C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming\4.QIF' Exception 'The process cannot access the file 'C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming\4.QIF' because it is being used by another process.'
NinjaTrader_Dierk
04-18-2008, 01:20 AM
Sorry, not sure why you insist on the QIF file extension. The file name extension for ATI files is OIF not QIF.
kiwibird
04-18-2008, 02:07 AM
OPPS correct extension is going to help
still not running
here is the log
file = "PLACE;SIM101;ER2 06-08;BUY;1;MARKET;0;0;DAY;;;;"
4/18/2008 3:06:03 AM|3|1|Unknown OIF file type 'C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming\45.OIF'
4/18/2008 3:06:03 AM|3|1|OIF delete error 'C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming\45.OIF' Exception 'The process cannot access the file 'C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming\45.OIF' because it is being used by another process.'
4/18/2008 3:06:03 AM|3|1|Unknown OIF file type 'C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming\45.OIF'
4/18/2008 3:06:03 AM|3|1|OIF delete error 'C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming\45.OIF' Exception 'The process cannot access the file 'C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\incoming\45.OIF' because it is being used by another process.'
NinjaTrader_Dierk
04-18-2008, 05:13 AM
The application which writes the file needs to close or NT can not access the file. Or the application creates the file at a different location and moves it to the incoming directory after closing the file.
kiwibird
04-22-2008, 08:28 PM
I am running the following ts code.
OIF STILL DOESNT WORK.
ati is on and green.
tradestation via port 25 works fines
the file contains...
PLACE;SIM101;ER2 06-08;BUY;1;MARKET;0;0;DAY;;;;
vars: intrabarpersist imp(0);
vars: intrabarpersist oldimp(0);
imp=i_marketposition*i_currentcontracts;
if lastbaronchart and imp <> oldimp then begin;
if imp> oldimp then
fileappend("C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\outgoing\"+numtostr(time,2)+".OIF",
"PLACE;SIM101;ER2 06-08;BUY;1;MARKET;0;0;DAY;;;;"+newline);
if imp< oldimp then
fileappend("C:\Documents and Settings\frankmer\My Documents\NinjaTrader 6.5\outgoing\"+numtostr(time,2)+".OIF",
"PLACE;SIM101;ER2 06-08;sell;1;MARKET;0;0;DAY;;;;"+newline);
end;
oldimp=imp;
NinjaTrader_Dierk
04-22-2008, 10:11 PM
- please try to build the OIF file in the OIF builder and make sure you submit the exact same format as created by the OIF builder
- next try the submit the OFI builder created file by checking the option on the OIF builder -> the file should be executed. If not, then please check for the logs
kiwibird
04-22-2008, 10:58 PM
OIF FAILS because back101 is used.
however the oif builder has a greyed out back101 account and I cant change it to sim101. There are no selectable options on the account box.
NinjaTrader_Dierk
04-22-2008, 11:00 PM
Please connect to any feed so you can use Sim101.
kiwibird
04-22-2008, 11:21 PM
I was conected to simulator account.
I now am connected to interactive brokers.
I still have a greyed out back101 accout on oif builder
NinjaTrader_Dierk
04-22-2008, 11:22 PM
Close the OIF builder and open it again
kiwibird
04-22-2008, 11:35 PM
Closing OIF MADE no difference
NinjaTrader_Dierk
04-22-2008, 11:37 PM
To clarify: Are you on the free simulation license or do you have purchased a license?
kiwibird
04-22-2008, 11:39 PM
I am on the free licence, but cant purchase till im confident this all works
NinjaTrader_Dierk
04-22-2008, 11:41 PM
You can not trade live nor use the ATI if you have a free license. You would need to purchase a license.
kiwibird
04-22-2008, 11:57 PM
you mean we cant even do simulated trades with the free license?
can I get a back101 account going in ninja to test this?
Im amazed you cant paper trading using oif, and surprised it took us so long to figure this out. A popup box would have been good.
another comment is it would also be good if the free version paper traded ib.
SOrry for complaining, but put it into perspective it looks like a great product.
Its just a pity that i cant get to try it fully in paper mode.
NinjaTrader_Dierk
04-22-2008, 11:59 PM
Thanks for your suggestions. We'll add them to the list of future considerations.