stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

How to Trade 10.x Like a Boss
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=2505
Page 27 of 39
Author:  spotdespot [ Fri Jun 21, 2013 7:38 pm ]
Post subject:  Re: How to Trade 10.x Like a Boss

SWG123 wrote:
spotdespot wrote: If this assumption re. the limitations of Empty4/indis is not correct could some genius coder please just set the 10.4/10.5 indis to do their thing each M1 bar close? :P
That's a very good suggestion Dave.

FWIW I don't think that having a multi-core processor helps because (if I'm correct) Empty4 doesn't have multi-core addressing capability.
I have 6 separate Empty4 terminals for one account partly because of that - hopefully that shares the load a bit between cores?

If the once per bar change is possible I think that would make a huge difference.

Cheers,
Dave.

Edit: Sorry about the nonsensical typos - not great on the phone. Hopefully no more left.
Author:  liberty55 [ Fri Jun 21, 2013 8:54 pm ]
Post subject:  Re: How to Trade 10.x Like a Boss

Hi pipstuborn, for your laptop try to add 4 Go, for me It is a big difference...

have a nice day

Jean-Pierre
Author:  kwanann [ Fri Jun 21, 2013 9:39 pm ]
Post subject:  Re: How to Trade 10.x Like a Boss

Yup ram is the key not high speed connections. I have a hp 2950m business laptop, intel i5, ssd and 16gb ram laptop, no lag, no hanging
Author:  spotdespot [ Fri Jun 21, 2013 10:12 pm ]
Post subject:  Re: How to Trade 10.x Like a Boss

kwanann wrote:Yup ram is the key not high speed connections. I have a hp 2950m business laptop, intel i5, ssd and 16gb ram laptop, no lag, no hanging
Sorry but this just isn't correct at all - maybe take a look at what I wrote earlier.

I have no idea why you don't have any hanging/speed issues but it has nothing to do with ram. I have 16 GB and I never get close to using it all and each Empty4 terminal maxes out at around 8% cpu when it is bogged down. Just to clarify it doesn't "hang" as in need terminating - it just takes 20 seconds or more to respond when trying to do anything - e.g. try to place a trade, switch timeframes etc

It only has issues when there are high tick volumes. That's it. I don't believe it has anything to do with PC spec (beyond ensuring you don't have a very slow PC causing a different bottleneck).

Anyway this is the last I will comment on this here as we are in danger of derailing Jeremy's thread.

Cheers,
Dave.
Author:  bodleytunes [ Fri Jun 21, 2013 10:51 pm ]
Post subject:  Re: How to Trade 10.x Like a Boss

Is it a bad idea to use pending orders with this system? should we just wait for H1 CSS colour change and then place a definitive buy or sell. I suppose the pending order could trigger even when the H1 has not started to change colour, which is bad and not following the rules?

Cheers,

Bod.
Author:  Pipstubborn [ Fri Jun 21, 2013 11:09 pm ]
Post subject:  Re: How to Trade 10.x Like a Boss

spotdespot wrote:
kwanann wrote:Yup ram is the key not high speed connections. I have a hp 2950m business laptop, intel i5, ssd and 16gb ram laptop, no lag, no hanging
Sorry but this just isn't correct at all - maybe take a look at what I wrote earlier.

I have no idea why you don't have any hanging/speed issues but it has nothing to do with ram. I have 16 GB and I never get close to using it all and each Empty4 terminal maxes out at around 8% cpu when it is bogged down. Just to clarify it doesn't "hang" as in need terminating - it just takes 20 seconds or more to respond when trying to do anything - e.g. try to place a trade, switch timeframes etc

It only has issues when there are high tick volumes. That's it. I don't believe it has anything to do with PC spec (beyond ensuring you don't have a very slow PC causing a different bottleneck).

Anyway this is the last I will comment on this here as we are in danger of derailing Jeremy's thread.

Cheers,
Dave.
I agree with Dave and Jean Pierre.... it only happens when there is a high tick volume, even I can hear the fan blowing! AND it happens only when I have all the charts 26-28 pairs loaded with the CSS 30 bars max.

When I delete CSS I can have 5-7 diferent indies and have no slow down/freezing at all as a test to try to isolate the culprit. Then start setting CSS chart by chart and it's ok with 3-5 charts but more than that it starts to slow down and never happened this before the introduction of CSS.

I don't think that we are derailing Jeremy's thread..... since the CSS is the core of the system and can't use it fully. I will like to fix/find the issue. Maybe is all the math involved in the background of CSS, who knows.

On the other hand I will upgrade to 8 GB ram, which for me is the max and see how it goes.

Thanks to all for the great comments.
Author:  kwanann [ Fri Jun 21, 2013 11:31 pm ]
Post subject:  Re: How to Trade 10.x Like a Boss

Hmm i used to have all pairs open running the 10.5 grey template, didnt experience much of any issues. even at news events.

The only thing would probably be some lag due to the high volatility, but not the type of hanging like what you guys have

Now i use my EA to tell me the state of the pair, so the CPU is greatly reduced
Author:  garyfritz [ Sat Jun 22, 2013 1:52 am ]
Post subject:  Re: How to Trade 10.x Like a Boss

spotdespot wrote:I actually think that the issue is with the indicators themselves - or more accurately Empty4 and how it deals with indis. I think (Baluda/Steve/coders please advise) that indicators do whatever it is they do every tick (and presumably cannot do their thing every bar close like an EA can).
That's right. Empty4 calls the start() function on every tick. Most indicators (including the 10.5 CSS indicators) do all their calculations and displays on every tick.

But it's easy to fix. Just add this at the beginning of start():

Code: Select all

static datetime LastUpdate = 0;
if (TimeCurrent() - LastUpdate < 10) return(0);
LastUpdate = TimeCurrent();
(Not tested since the markets are closed, but it's pretty trivial.)

That will update every 10 seconds. Change the 10 to 60 if you want it to update every minute.
I have 16 GB and I never get close to using it all and each Empty4 terminal maxes out at around 8% cpu when it is bogged down.
More likely it's 12%. You have a quad-core CPU, with each core having two "threads." So your CPU power gets divided into 8 chunks. 1/8 of 100% is 12.5%. When one CPU is spinning as fast as it can, due to a loop or a hang in Empty4, it only consumes 12.5% of your total CPU.
Author:  Pedigree [ Sat Jun 22, 2013 3:37 am ]
Post subject:  Re: How to Trade 10.x Like a Boss

garyfritz wrote:
spotdespot wrote:I actually think that the issue is with the indicators themselves - or more accurately Empty4 and how it deals with indis. I think (Baluda/Steve/coders please advise) that indicators do whatever it is they do every tick (and presumably cannot do their thing every bar close like an EA can).
That's right. Empty4 calls the start() function on every tick. Most indicators (including the 10.5 CSS indicators) do all their calculations and displays on every tick.

But it's easy to fix. Just add this at the beginning of start():

Code: Select all

datetime LastUpdate = 0;
if (TimeCurrent() - LastUpdate < 10) return(0);
LastUpdate = TimeCurrent();
(Not tested since the markets are closed, but it's pretty trivial.)

That will update every 10 seconds. Change the 10 to 60 if you want it to update every minute.
I have 16 GB and I never get close to using it all and each Empty4 terminal maxes out at around 8% cpu when it is bogged down.
More likely it's 12%. You have a quad-core CPU, with each core having two "threads." So your CPU power gets divided into 8 chunks. 1/8 of 100% is 12.5%. When one CPU is spinning as fast as it can, due to a loop or a hang in Empty4, it only consumes 12.5% of your total CPU.
Very useful stuff. Can I ask what decides the frequency of ticks?
Author:  spotdespot [ Sat Jun 22, 2013 5:54 am ]
Post subject:  Re: How to Trade 10.x Like a Boss

garyfritz wrote: But it's easy to fix. Just add this at the beginning of start():

Code: Select all

datetime LastUpdate = 0;
if (TimeCurrent() - LastUpdate < 10) return(0);
LastUpdate = TimeCurrent();
(Not tested since the markets are closed, but it's pretty trivial.)
Excellent - will try it out - thanks Gary.
I have 16 GB and I never get close to using it all and each Empty4 terminal maxes out at around 8% cpu when it is bogged down.
garyfritz wrote: More likely it's 12%. You have a quad-core CPU, with each core having two "threads." So your CPU power gets divided into 8 chunks. 1/8 of 100% is 12.5%. When one CPU is spinning as fast as it can, due to a loop or a hang in Empty4, it only consumes 12.5% of your total CPU.
That makes sense - maybe I shouldn't have said "maxes out". When I have the issue CPU use for each Empty4 terminal seems to stay at around 8% (according to the task manager. I haven't actually checked "peak" cpu use.

Cheers,
Dave.
All times are UTC Page 27 of 39