Curtis![]() Legend ![]() ![]() ![]() ![]() ![]() ![]() Posts: 460 Joined: 1/4/2009 Location: San Diego, CA ![]() | I use TEST profiles to backtest my realtime profiles. Here are the steps I do to gather the data so that it can be used in the TEST Profile. This may be more difficult, but it works for me. 1. After creating the TEST Profile, I then turn off my datafeed, and then create a real time profile (as that is what I always want to test) that I name with "Gather" in the name. I make sure the RT "Gather" profile has the data periods I want to gather and the symbols in the focus list. 2. Exit OT, and go to the Database directory and delete "Symdata.otd". I also delete "SymdataTest.otd". The reason for deleting "Symdata.otd" is that it can get full of bars of data that you don't need in your TEST profile. So by deleting "Symdata.otd" you in effect clean out all old gathered bars from OT, and start over fresh. In the RT profile OT looks to "Symdata.otd" when it gathers bars for historical display in charts. In TEST profiles OT looks to "SymdataTest.otd" for it's historical testing. What we are trying to do, is clean "Symdata.otd", fill it up with the bars you want in your TEST profile, and then move those bars to the "SymdataTest.otd" file so that your TEST profile can acces the bars you collected. 3. Restart OT, and it will create a new empty "Symdata.otd" during the startup. Now connect your data feed in your RT "Gather" profile and wait until all the data has been gathered - usually the symbols icons turn green I think. 4. Open the Database directory and make a copy of the "Symdata.otd" file, naming the copy "SymdataTest.otd". Your TEST profile looks to "SymdataTest.otd" to gather the bars that you see in the TEST profile Charts. 5. Open the TEST profile. 6. Close OT and reopen to the TEST profile (a safety step). Your bars should be loaded now in the TEST profile. Once you have done the above, I have found that OT can better handle updating the TEST profile with new bars on an ongoing basis - but sometimes not and I have to go through the above steps 1-6 to update the bars loaded to the current date. Actually, I do the above steps every time I want to run a TEST profile and don't even bother with OT's update feature for TEST profiles. Gathering bars for 500 symbols can be alot of bars! Hope this helps [Edited by Curtis on 5/20/2012 2:37 PM] |