{"id":1145,"date":"2011-09-21T22:58:47","date_gmt":"2011-09-21T22:58:47","guid":{"rendered":"http:\/\/datafutures.net\/ecsi\/?page_id=1145"},"modified":"2013-06-21T17:14:14","modified_gmt":"2013-06-21T17:14:14","slug":"add-a-new-market-in-csi-for-use-in-trading-blox","status":"publish","type":"page","link":"https:\/\/www.csidata.com\/?page_id=1145","title":{"rendered":"Add a New Market in CSI for Use in Trading Blox"},"content":{"rendered":"<p>There are two steps in this process:<\/p>\n<ol>\n<li>Add the new instrument to the UA &#8220;Futures&#8221; portfolio<\/li>\n<li>Add the new instrument to the Trading Blox\u2122 Futures Dictionary<\/li>\n<\/ol>\n<hr>\n<h5>Step 1<\/h5>\n<p>First open UA, select the &#8220;Futures&#8221; portfolio, and press &#8220;Add file to portfolio&#8221;<br \/>\n<a href=\"\/wp-content\/uploads\/2011\/09\/addfile.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2011\/09\/addfile-300x188.jpg\" alt=\"\" title=\"addfile\" width=\"300\" height=\"188\" class=\"alignnone size-medium wp-image-1122\" srcset=\"https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/addfile-300x188.jpg 300w, https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/addfile.jpg 486w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>This will bring up a &#8220;Selecting Data Series&#8221; window that allows you to select new markets to add to this portfolio. Select the Market Type of &#8220;Futures,&#8221; press the &#8220;Back Adjusted&#8221; tab so that the file will use the backadjusting we defined for the rest of the porfolio, and press the Mkts button to select from a list. Alternately you could just enter DA into the box and hit return. Or a string of markets like DA,W,C etc.<\/p>\n<p>You don&#8217;t need to modify any other information on this page. But double check to make sure it&#8217;s similar because some versions of CSI UA don&#8217;t bring this up correctly. The important part is that the File Format is ASCII and if you click on Preferences you see that the file is Comma Delimited and with a force .txt extension.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2011\/09\/SelectingDataSeries.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2011\/09\/SelectingDataSeries-300x213.jpg\" alt=\"\" title=\"SelectingDataSeries\" width=\"300\" height=\"213\" class=\"alignnone size-medium wp-image-1123\" srcset=\"https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/SelectingDataSeries-300x213.jpg 300w, https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/SelectingDataSeries.jpg 641w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<a href=\"\/wp-content\/uploads\/2011\/09\/FileSpecificFormat.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2011\/09\/FileSpecificFormat-300x275.jpg\" alt=\"\" title=\"FileSpecificFormat\" width=\"300\" height=\"275\" class=\"alignnone size-medium wp-image-1124\" srcset=\"https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/FileSpecificFormat-300x275.jpg 300w, https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/FileSpecificFormat.jpg 379w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<a href=\"\/wp-content\/uploads\/2011\/09\/AsciiFieldLayout.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2011\/09\/AsciiFieldLayout-273x300.jpg\" alt=\"\" title=\"AsciiFieldLayout\" width=\"273\" height=\"300\" class=\"alignnone size-medium wp-image-1125\" srcset=\"https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/AsciiFieldLayout-273x300.jpg 273w, https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/AsciiFieldLayout.jpg 459w\" sizes=\"(max-width: 273px) 100vw, 273px\" \/><\/a><br \/>\n<a href=\"\/wp-content\/uploads\/2011\/09\/AsciiFileName.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2011\/09\/AsciiFileName-273x300.jpg\" alt=\"\" title=\"AsciiFileName\" width=\"273\" height=\"300\" class=\"alignnone size-medium wp-image-1126\" srcset=\"https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/AsciiFileName-273x300.jpg 273w, https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/AsciiFileName.jpg 459w\" sizes=\"(max-width: 273px) 100vw, 273px\" \/><\/a><br \/>\n<a href=\"\/wp-content\/uploads\/2011\/09\/DisplayAsDecimal.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2011\/09\/DisplayAsDecimal-273x300.jpg\" alt=\"\" title=\"DisplayAsDecimal\" width=\"273\" height=\"300\" class=\"alignnone size-medium wp-image-1127\" srcset=\"https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/DisplayAsDecimal-273x300.jpg 273w, https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/DisplayAsDecimal.jpg 459w\" sizes=\"(max-width: 273px) 100vw, 273px\" \/><\/a><\/p>\n<p>When we press the &#8220;Mkts&#8221; button, we get the following screen that allows us to select the market we wish to add to the portfolio. In this case we are adding Milk (DA). You can check the &#8220;Select&#8221; box next to the market to add.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2011\/09\/gotmilk.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2011\/09\/gotmilk-300x124.jpg\" alt=\"\" title=\"gotmilk\" width=\"300\" height=\"124\" class=\"alignnone size-medium wp-image-1128\" srcset=\"https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/gotmilk-300x124.jpg 300w, https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/gotmilk.jpg 633w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>When we are back at the &#8220;Selecting Data Series&#8221; window press OK. We will get a message asking if we want to build these files, we press Yes.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2011\/09\/caretobuild.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2011\/09\/caretobuild.jpg\" alt=\"\" title=\"caretobuild\" width=\"245\" height=\"100\" class=\"alignnone size-full wp-image-1129\" \/><\/a><\/p>\n<p>Once we are back in the main UA screen, the instrument has been added to the portfolio, and the file has been built. This instrument will be updated daily, and we can now access this data from Trading Blox\u2122.<\/p>\n<p>To check that this file was created successfully, go to the UA\/Files\/Futures folder, and find the file staring with DA. It should be something like DA followed by some characters and ending in .txt. Also, if you open this file you should see the data in the format D,O,H,L,C,V,OI,DM,UC comma delimited with no header.<\/p>\n<p>Here is what the folder should look like, with a list of .txt files:<\/p>\n<p><a href=\"\/wp-content\/uploads\/2011\/09\/FuturesFolder.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2011\/09\/FuturesFolder-252x300.jpg\" alt=\"\" title=\"FuturesFolder\" width=\"252\" height=\"300\" class=\"alignnone size-medium wp-image-1130\" srcset=\"https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/FuturesFolder-252x300.jpg 252w, https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/FuturesFolder.jpg 282w\" sizes=\"(max-width: 252px) 100vw, 252px\" \/><\/a><\/p>\n<p>If you open a file, like AD, then you should see the format is correct like this:<\/p>\n<p><a href=\"\/wp-content\/uploads\/2011\/09\/FuturesFileNotepad.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2011\/09\/FuturesFileNotepad-300x60.jpg\" alt=\"\" title=\"FuturesFileNotepad\" width=\"300\" height=\"60\" class=\"alignnone size-medium wp-image-1131\" srcset=\"https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/FuturesFileNotepad-300x60.jpg 300w, https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/FuturesFileNotepad.jpg 810w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h5>Step 2<\/h5>\n<p>Now we can start Trading Blox\u2122 and access the Edit\/Edit Futures Dictionary menu item. This will bring up a list of all the futures instruments Trading Blox\u2122 is aware of, and the associated contract details. Press the &#8220;Add Market&#8221; button to add a new market.<\/p>\n<p>Press the Synch UA button to get the market data from CSI UA. Be sure to double check this data as it is not always 100% accurate. You will want to fill in the Margin as well, so get that from the exchange. All this data needs to be checked periodically and is the reponsibility of the user. The exchange can change symbols, minimum ticks, big point values, margins, etc with very little notice.<\/p>\n<p>Press the Find Symbol button to locate the file name (based on the symbol) and the folder location. Note that the find process finds files starting with the symbol name, so in the case of C you may find CC or CT first, so just hit the button again. If your file name does not start with the symbol, then enter the first few letters of the file name to find it, then change the symbol back to the correct symbol.<\/p>\n<p>We can now press OK. The instrument has been added to our Futures Dictionary.<\/p>\n<p>The last step is to add the instrument to one of our portfolios, so it will be used for testing. Use the Edit\/Edit Portfolios menu option. In this case we are using the Demo portfolio for testing, so we are going to add Milk to that porfolio. Simply select the Portfolio to use (Demo), and check the checkbox next to the instrument to add (Milk).<\/p>\n<p><a href=\"\/wp-content\/uploads\/2011\/09\/addtoportfolio.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2011\/09\/addtoportfolio-300x259.jpg\" alt=\"\" title=\"addtoportfolio\" width=\"300\" height=\"259\" class=\"alignnone size-medium wp-image-1132\" srcset=\"https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/addtoportfolio-300x259.jpg 300w, https:\/\/www.csidata.com\/wp-content\/uploads\/2011\/09\/addtoportfolio.jpg 497w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Press Ok and return to the main Trading Blox\u2122 screen. Now when you use the Demo portfolio, Milk will be included as an instrument to use for the test.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are two steps in this process: Add the new instrument to the UA &#8220;Futures&#8221; portfolio Add the new instrument to the Trading Blox\u2122 Futures Dictionary Step 1 First open UA, select the &#8220;Futures&#8221; portfolio, and press &#8220;Add file to portfolio&#8221; This will bring up a &#8220;Selecting Data Series&#8221; window that allows you to select [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":1136,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/www.csidata.com\/index.php?rest_route=\/wp\/v2\/pages\/1145"}],"collection":[{"href":"https:\/\/www.csidata.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.csidata.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.csidata.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.csidata.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1145"}],"version-history":[{"count":8,"href":"https:\/\/www.csidata.com\/index.php?rest_route=\/wp\/v2\/pages\/1145\/revisions"}],"predecessor-version":[{"id":2346,"href":"https:\/\/www.csidata.com\/index.php?rest_route=\/wp\/v2\/pages\/1145\/revisions\/2346"}],"up":[{"embeddable":true,"href":"https:\/\/www.csidata.com\/index.php?rest_route=\/wp\/v2\/pages\/1136"}],"wp:attachment":[{"href":"https:\/\/www.csidata.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}