Tradestation best practice and fix for Tradestation Crashes
Tradestation 10 stability compared to 9.5 varies greatly from one user to another. My own trading computer with many charts always crashes on TS10, but other users have good success. My experience is worse than average users experience.
Here is best practice policy. Updates in January 2023 are in cyan.
August 2024 update is below (info on TS builds)
Feedback from numerous users has been Tradestation 10 build 76 is the best build. Builds before 74 or after 76 are not as stable.
TradeStation Manual Platform Update 68 to 77
Close TradeStation
Open Google Chrome or Microsoft Edge and paste the following link:
build 77 Not recommended
https://update.tradestation.com/Installs/TradeStation/10.00.07.1203/Updates/10.0.7.1225.msp
Build 76 recommend
https://update.tradestation.com/Installs/TradeStation/10.00.07.1203/Updates/10.0.7.1220.msp
Build 68 (not recommend)
https://update.tradestation.com/Installs/TradeStation/10.00.04.1118/Updates/10.0.4.1148.msp
Click ‘Enter’ and the update file will download.
Left click your mouse and open the file once it has downloaded.
The file will act as if you are installing the platform.
Click ‘Next’
Select ‘Repair’ and then click ‘Next’.
After the update installs, click ‘Finish’.
Reopen TradeStation and validate the platform is on the new build.
I am now getting 70 charts running stably, but restart TS each day.
To stop Tradestation updating, click these settings on Alertmon
Url for TS 10 base build.
https://u.pcloud.link/publink/show?code=XZQlgaVZB5AfAlTSgHBu7yRbwzkzFH1zU1OX
Then (needed once only) run this batch file BEFORE you open TS. (It will kill TS if open)
You should reboot your VM once per week.
Rebooting the VM & restarting Tradestation significantly helps the stability of Tradestation. This also clears memory and the windows swap file.
Some users like to delete TS cache, but this can introduce other issues of missing data the first time charts are opened.
Should you delete the cache, open a chart that has all your symbols on it going back as many bars are your trading charts use.
Keep the symbols updated on this chart. IE @ES20Z.D must be rolled to the current month when rollover occurs.
Once all data has downloaded, close this chart and open all the other charts. Do NOT open your trading charts until all data has come in.
You also should do windows update each week after the market has closed.
IF there memory leak, restart TS every day.
Note in the example, the cyan orchart.exe line is high, and constantly increasing. Soon in the example TS will crash. This VM has only 6 charts running, and the charts have NOT been correctly setup to use as few bars as possible. (see Only use 1 or 2 years of data per chart.) below
The chart below is healthier, and the orchart level is lower and horizontal. A daily restart of TS does wonders for covering up this memory leak and improving TS stability. This machine has > 60 charts, is setup correctly, and TS is restarted every day.
Backup your workspaces and ELD once a week.
You can store your workspaces on PCloud, google drive etc.
I personally found dropbox to be a CPU hog and far from reliable.
PCloud is delightful to use, and free. You shared drive appears as drive P: on the VM.
Please use your shared drive only for trading, as we want to minimize internet usage on the server, (despite massive bandwidth)
Using Pcloud/ google drive etc does create a possibility of file corruption, so its better to make backup copies regularly.
Only use 1 or 2 years of data per chart.
Some systems need 2 years of data to get the same match of trades as longer periods of data.
Charts with less data load faster too.
I found Tradestation not to be stable and crash if many charts are opened with data going back to beginning of contract start.
Should you open many charts with lots of data for your development work, restart Tradestation before live trading.
However using your trading computer for development work is dangerous due to human error.
On Alertmon check you CPU use-age is low.
Note the time filter. GSB is used on this machine after hours, and so the CPU is only shown during my trading period.
Do not use your VM for any other purpose than trading.
This is critical and a condition of the VM service. FIrst we need to keep CPU usage low on the entire host machine to give all users 100% needed CPU availability.
Second of all is if the IP you use sends spam or attacks, then your IP address will be black listed and blocked by the data center.
Other best practices.
After a 1/2 trading holiday, at 831 am exchange / central time all data with charts that end in .D ie @ES.D / @NQ.D @ESG23.D etc needs to be deleted and reloaded.
You can do control R, allow the data to come and close then open all .D charts again, or you can on TS 9.5 delete.
The reason for this is after a holiday, the previous days close is recalculated just after the open. It is important that your Tradestion is fully online before the close of the next bar
when you may take a trade. (Likely 8:45 am ) if you have system on 15 min bars, in 9:00am if you have a system on 30 minute bars.
It is likely this affected a lot of users one day in January 2023 when roughly half my client base went long and got stopped, and the other half when short and made good profits
"C:\Program Files (x86)\TradeStation 9.5\Program\Cache"
"C:\Program Files (x86)\TradeStation 9.5\Program\TCACHE"
ON ts 10 the folders are here.
Fixes for Tradestation crashes.
After having TS crash nearly every day, for 2 to 3 weeks this resolved all issues. No crashes for months.
1) we had about 75 charts open, if possible reduce to the ones are really necessary. Non essential charts can be run of Multicharts using TS data. TS data on MC charts is slower to trade.
2) Super super important, because we have many charts we HAVE TO use this settings to HIGH!!
3) super important. format symbols minimize the historical date not to a time (eg months) but to the number of bars in order to minimize the hist data.
for example, if the strategy has max 500 bars back then lets try if not 500 bars (which may not return trades) something around that amount. Be warned, too few bars can change trading history.
4) make sure that windows report the same NUMBER of charts you see in the workspaces.
5)
in the above example you should expect 7 in the window menu as we have 7 charts in workspaces.
6) we added few more exceptions in windows security
In plain text
C:\alertmon
C:\Program Files (x86)\TradeStation 9.5
C:\Program Files (x86)\Common Files\TradeStation Technologies
C:\Program Files (x86)\TradeStation 10.0\Program
C:\Program Files (x86)\TradeStation 10.0\
7) TS support say windows server may cause more issues than windows 10. After weeks of crashing the problems were identical on sever 2019 and window 10 64 bit.
Tradestation 10 disable of automatic update. Updated July 6 2023
TS 10 gives you no choice to not update the build. This for example means users lost the ability to export xml performance report - one of the two ways to export data for Portfolio Analyst Pro.
Please unzip, then double click this file to change your registry.
Later note in June 2023. This registry tweak is not working
To stop updates, run this command in a batch file (ie "TSKILL-AND-STOP-UPDATES.BAT")
before you open TS 10. Thanks to GSB forum user TraderTom for this tip.
The batch file containts
dir "C:\ProgramData\TradeStation Technologies\TradeStation\Versions\10.00.00\Patches"
del /q "C:\ProgramData\TradeStation Technologies\TradeStation\Versions\10.00.00\Patches"
and other tasks to kill TS from memory
Notes on Tradestation 10 build 69.
My tests show this build is less stable than build 68 and there is another bugs described here.
https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=215035
Build 69 has two good features. The ability to roll back to build 68
Export of .xml files needed for Portfolio Analyst Pro.
I recommend use build 68 for live trading.
To rollback from build 69 to 68, click on rollback here under Ttradestation update manager
How to convert Newer build TS workspaces to older versions.
If you save a workspace in build 69, you can no longer load it in build 68.
There is a fix for this here. https://multiwalk.net/downloads/#tools
See this section in the multiwalk interface.
TradeStation Workspace Downgrade/Patch Utility
This utility program will “downgrade” a TS workspace so that it can be opened with previous, older versions of TradeStation. It currently works with the following TS versions:
- Update 65: 10.00.04.1118 (Base)
- Update 68: 10.00.04.1148
- Update 69: 10.00.06.1167
- Update 70: 10.00.06.1169
- Update 71: 10.00.06.1185
- Update 72: 10.00.06.1195
- Update 72: 10.00.06.1196 — TS changed chart format. Can still downgrade workspaces that include MultiWalk, but charts will need to be reconstructed.
- Update 72: 10.00.06.1197
Tradestation memory leak.
In 2022 Tradestation developed a severe memory leak for a significant percentage of the client base. This happens on all windows environments, windows 10, 11, server of various years
TS will crash when any orchart.exe gets a bit over 3GB in size or the machine runs out of ram. When the leak occurs memory usage increases dramatically.
The machine below has 50 GB of ram.
Its not yet conclusive of TS 10 has the same issue, but my own trading server is totally unusable on TS10. Other users have TS 10 working fine.
Alertmon has a memory cleaner which for some users covers up the bug. The best bug cover up is a daily restart of TS.
See also this thread on TS forum. https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=201070&Reply_ID=1005742
Tradestation log files
These are store here
C:\Users\Administrator\AppData\Local\TradeStation Technologies\TradeStation\10.0\Logs
Note the word Administrator will be your windows user name
Database of orders
C:\Users\Administrator\AppData\Local\TradeStation Technologies\TradeStation\10.0\TCache\{tsaccount}\tcache.db