View Full Version : NT didn't read the OIF
trader25
05-10-2005, 03:20 AM
I was long a position and a signal was sent over 3 minutes since the last trade signal. It was for a reverse but the trade wasn't made. It wasn't the first time a reverse trade was made for the day so the files were working properly.
The logs say this: AT 'reverse OIF' aborted: missing or bad parameter The process cannot access the file "C:\NinjaTrader 4\reverse.txt" because it is being used by another process.
The logs previous to that show I was long but when I look at the files in the AT folder it shows that I was flat at a price I entered the long at. Something went awry with NT reading and writing to the AT files.
NinjaTrader_Ray
05-10-2005, 06:15 AM
The first step is that the reverse.txt had a bad parameter. Please use the OIF builder and verify that the string/format you are sending is correct as per the examples generated by the OIF builder.
trader25
05-10-2005, 07:12 AM
The OIF is correct andI said Ihad already made reverse trades with it. It has been working fine before that and it has worked since. I used the OIF builder to originally make the string in the first place. Something went awry with the way NT read the file as I explained.
trader25
05-10-2005, 07:38 AM
After looking at the logs, whenever there was a reverse, sometimesI get this:
"5/10/2005 12:58:00 PM AT 'reverse OIF' aborted: missing or bad parameter The process cannot access the file ""C:\Program Files\NinjaTrader 4\AT\reverse.txt"" because it is being used by another process."
"5/10/2005 12:58:00 PM AT Reverse OIF file deletion error: The process cannot access the file ""C:\Program Files\NinjaTrader 4\\AT\reverse.txt"" because it is being used by another process."
But the trades still take place after. Sometimes I don't get those messages and the trade takes place. Thetrade in which I am referring to previously, all I got was the first message. It's not being consistent.
NinjaTrader_Ray
05-10-2005, 09:05 AM
This means that either NT has not closed the file from before or, the application that generates the OIF has not released the file. I have not had any reports of NT holding onto a file but I will check on my end and I ask you to do the same on your end.
NinjaTrader_Ray
05-10-2005, 09:05 AM
This means that either NT has not closed the file from before or, the application that generates the OIF has not released the file. I have not had any reports of NT holding onto a file but I will check on my end and I ask you to do the same on your end.
trader25
05-11-2005, 08:36 AM
I made a change to my program to close the OIF file right after I write the trade to it, and that seems to have solved the problem.
NinjaTrader_Ray
05-11-2005, 02:07 PM
Excellent.