View Full Version : CPU utilization
spenbm01
06-19-2006, 06:38 AM
Can anyone help me figure out why my CPU utilization for NinjaTrader.exe is consistently running between 40% and 52% with TradeStation?
NinjaTrader_Ray
06-19-2006, 06:42 AM
What is your OS and hardware specs?
When do see this CPU level? All the time or only during specific events?
spenbm01
06-19-2006, 06:49 AM
XP Pro Version 2002 SP2
Pentium(R) 4 CPU 2.60GHz
2.59GHx 1.00 GB of RAM
spenbm01
06-19-2006, 06:52 AM
I see the problem daily. Sometimes NT and TS will open and NT will run at the regular 1% to 5%. Then, all of a sudden, everhthing slows down and I check NT and it's running between 40% and 52% constantly. I have to shut everything down and start over.
spenbm01
06-19-2006, 06:52 AM
I see the problem daily. Sometimes NT and TS will open and NT will run at the regular 1% to 5%. Then, all of a sudden, everhthing slows down and I check NT and it's running between 40% and 52% constantly. I have to shut everything down and start over.
NinjaTrader_Ray
06-19-2006, 08:36 AM
This only happens after an ATI function has been called? I suspect that there could be consistent calls to NT from TS? If it is part of your TS script, could you try and isolate the call that causes this?
spenbm01
06-19-2006, 08:41 AM
Sorry, I'm not sure what you are asking. I'm using the NTExternalFeed strategy that NT supplied, if that helps.
{ Copyright (c) 2005, NinjaTrader LLC ninjatrader@ninjatrader.com (mailto:ninjatrader@ninjatrader.com) }
[IntrabarOrderGeneration = TRUE]
DefineDLLFunc: "NtDirect.dll", int, "Ask", lpstr, double, int;
DefineDLLFunc: "NtDirect.dll", int, "Bid", lpstr, double, int;
DefineDLLFunc: "NtDirect.dll", int, "Last", lpstr, double, int;
vars: vol(Volume);
if LastBarOnChart then begin
if Volume > Volume[1] then
vol = Volume - Volume[1];
Ask(GetSymbolName, CurrentAsk, AskSize);
Bid(GetSymbolName, CurrentBid, BidSize);
Last(GetSymbolName, Close, vol);
end;
NinjaTrader_Dierk
06-19-2006, 04:48 PM
a) on which instrument?
b) which market time? Is there a pattaren?
Thanks
spenbm01
06-19-2006, 04:51 PM
Instrument ER2U06 5 min chart. No pattern. I am in Sim mode. It happens sometimes when there is no position open, sometimes when there is an open position.
NinjaTrader_Dierk
06-19-2006, 04:54 PM
Thanks
- NT version?
- TS version/build?
NinjaTrader_Dierk
06-19-2006, 04:56 PM
Also, please check your Diagnostics settings:
- Tools->Options->check "Show Diagnostics tab"->Ok
- Diagnostcis tab: only "Connect", "Order" and "To file only" should be checked
- Log tab: are there some funny messages?
spenbm01
06-19-2006, 04:56 PM
TradeStation 8.1
Version: 8.1 SP1 (Build 3159)
Date: 03/30/2006
NT Simulation Edition Version 5.2.1000.1