I have an instance of MultiCharts that has 8 workspaces open, each with 6 charts. All charts rely on a second data stream. When auto trading is turned on at a set time of the day (8:00 gmt) it seems cpu usage immediately spikes to 100% freezing my server. Only by opening task manager and ending the task, will the server become usable again. Once i open the data2 instance up again, it seems to uses no more than 1% as it does normally.
My code has no time related functions specific to that time and I'm not using IOG.
Server specs are i7- 7700k and 64gb of ram.
99% cpu usage - instances that use data2 for auto trading [SOLVED]
- TJ
- Posts: 7744
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: 99% cpu usage - instances that use data2 for auto trading
Do you have any PL code created drawing objects?
eg. Trendlines, arrows, texts, etc.,
eg. Trendlines, arrows, texts, etc.,
- TJ
- Posts: 7744
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: 99% cpu usage - instances that use data2 for auto trading
Usually it is a coding error.
Are you running IOG?
Please check to see if you have a snippet that sends an order, then cancels it immediately, and resubmits it again.
Are you running IOG?
Please check to see if you have a snippet that sends an order, then cancels it immediately, and resubmits it again.
- TJ
- Posts: 7744
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: 99% cpu usage - instances that use data2 for auto trading
What are the chart resolutions?
How much back history on the chart?
How much back history on the chart?
- TJ
- Posts: 7744
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: 99% cpu usage - instances that use data2 for auto trading
It is possible you have a hidden infinite loop.As I wrote above, not using iog and have no time related code
Have you tried one chart only ?
How does the CPU respond?
Re: 99% cpu usage - instances that use data2 for auto trading
i doubt it, It happens with different data2 strategies (varying from simple to complex) and only occurs when they are placed on a chart. If i have them in portfolio trader, no cpu spikes at all. The only thing the different strategies have in common is that the second data series uses daily data built from minute data.It is possible you have a hidden infinite loop.As I wrote above, not using iog and have no time related code
Have you tried one chart only ?
How does the CPU respond?
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: 99% cpu usage - instances that use data2 for auto trading
Hello kagein,
On each chart that has Data2 please go to Format->Strategy properties->Backtesting, under Advanced enable the option "Ignore Tick cache in Realtime".
On each chart that has Data2 please go to Format->Strategy properties->Backtesting, under Advanced enable the option "Ignore Tick cache in Realtime".