I'm on NT 7.1000.6
I want to do following:
- Plotting Values of COT-Report on a Chart.
- Each Instrument (in total 46) I want to track has 4 to 7 subvalues (OpenInterest, CommercialNetPosition, NonComsNetPosition, Spread% etc...) so all together I have around 550 Datapoints each week (the COT-Report is published weekly).
- Because I'm not a programming professional, I took the "dirty" way and created an Instrument for each Subvalue (550 new Instruments added via "symbol import".
- To plot historical Data (from 1995-2011) I downloaded the original files from CFTC website and processed them with excel VBA to make txt.files out of it, which can be imported by Ninjatrader.
here is some example of the naming logic -> they represent the Symbol-Name for adding to the InstrumentManager and with the extension ".txt" the are named for the data holding txt-files for importing:
"COT_[Symbol]_[Type of Report]_[Subvalue]"
COT_MXN_TFF_5LEVMon, COT_MXN_TFF_6OthRep, COT_MXN_TFF_7NonRep, COT_NDQ_COToV_1OI, COT_NDQ_COToV_2Spd, COT_NDQ_COToV_3Coms, COT_NDQ_COToV_4NonComs, COT_NDQ_COToV_5NonRep, COT_NDQ_TFF_1Oi, COT_NDQ_TFF_2Spd, COT_NDQ_TFF_3Dealr, COT_NDQ_TFF_4Assmgr, COT_NDQ_TFF_5LEVMon, COT_NDQ_TFF_6OthRep, COT_NDQ_TFF_7NonRep, COT_NDQmin_COToV_1OI, COT_NDQmin_COToV_2Spd, COT_NDQmin_COToV_3Coms, COT_NDQmin_COToV_4NonComs, COT_NDQmin_COToV_5NonRep, COT_NDQmin_TFF_1Oi, COT_NDQmin_TFF_2Spd, COT_NDQmin_TFF_3Dealr, COT_NDQmin_TFF_4Assmgr, COT_NDQmin_TFF_5LEVMon, COT_NDQmin_TFF_6OthRep, COT_NDQmin_TFF_7NonRep, COT_NG_CDY_1OI, COT_NG_CDY_2Spd, COT_NG_CDY_3Prod, COT_NG_CDY_4Swap, COT_NG_CDY_5MoMg, COT_NG_CDY_6OthRep, COT_NG_CDY_7NonRep,
Everything works fine in the first place. All my 550 "instruments" show values in the Historical Data Manager/Edit Section. Also I can do the plotting on a chart like I wanted... BUT:
On the Charts there were strange periods of unchanged Open Interest for several weeks -> I took a look in the original Data from CFTC and also in the txt.files for importing -> the values in the database and hence plotted on the chart were not right!
I looked up the values in the "Edit" Seciton of Historical Data Manager and they were wrong, but not all data for a single instrument (only like est. 20%) and most instruments don't show wrong data at all.
As the naming logic of my 550 instruments makes their filenames quite similar I tried some debuggin (I erased all 550 generic instruments from the sdf-database (MyDocuments/Ninjatrader 7/db/***.sdf) before each attempt):
Trying to check the naming problem I changed the naming logic to much more different names for the instruments but it didn't help (which is logic to me, as every instrument gets an unique ID in the sql-database).
After deleting all the instruments in the database again I tried to create only a single instrument and import data for it -> the problem still remains. The Data I imported from the text file shows - to some extent - not the same values in the Edit-Section of Historical Data Manager.
I attached "screenshot1" showing contemporarily:
- the Data Manager / Edit Section with the values imported from
- txt file -> look at the red circles -> NT didn't import the right values
- Chart with databox -> daily -> showing the data of Data manager (what else)
I also attached the txt.file to import. The specs for generating the proprietary instrument I used for the "only importing one single instrument"-attempt are (screenshot2):
MasterInstrument: USTECHMIN_COTOV_1OI
Instrument type: Stock
CCy: usDollar
TickSize 0,01
Point Value 1
Session Template: Default 24/7
merge policy: useglobal settings
Excanges: "Bm" and "Box"
Symbol Map: only in row Collective2 "asdf"
I'm running out of options here, absolutely no clue why it's not showing the right data...
Please help!!!
thx
Comment