How to Trade 10.x Like a Boss

This is where Bob posts his own threads
Post Reply
spotdespot
Trader
Posts: 768
Joined: Sun Jan 22, 2012 11:38 pm

Re: How to Trade 10.x Like a Boss

Post by spotdespot »

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.
Last edited by spotdespot on Fri Jun 21, 2013 8:59 pm, edited 1 time in total.
liberty55
Trader
Posts: 28
Joined: Mon Feb 13, 2012 9:54 pm
Location: Quebec Canada

Re: How to Trade 10.x Like a Boss

Post by liberty55 »

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

have a nice day

Jean-Pierre
User avatar
kwanann
Trader
Posts: 948
Joined: Thu Nov 29, 2012 1:53 am

Re: How to Trade 10.x Like a Boss

Post by kwanann »

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
I've been trading using OM Dual N EA for the past 2 years, live results can be found over at https://www.fxblue.com/users/kwanann
spotdespot
Trader
Posts: 768
Joined: Sun Jan 22, 2012 11:38 pm

Re: How to Trade 10.x Like a Boss

Post by spotdespot »

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.
User avatar
bodleytunes
Trader
Posts: 68
Joined: Tue Oct 02, 2012 8:38 am
Location: Stockport

Re: How to Trade 10.x Like a Boss

Post by bodleytunes »

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.
Pipstubborn
Trader
Posts: 272
Joined: Thu Jul 12, 2012 5:17 pm

Re: How to Trade 10.x Like a Boss

Post by Pipstubborn »

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.
User avatar
kwanann
Trader
Posts: 948
Joined: Thu Nov 29, 2012 1:53 am

Re: How to Trade 10.x Like a Boss

Post by kwanann »

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
I've been trading using OM Dual N EA for the past 2 years, live results can be found over at https://www.fxblue.com/users/kwanann
garyfritz

Re: How to Trade 10.x Like a Boss

Post by garyfritz »

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.
User avatar
Pedigree
Trader
Posts: 226
Joined: Thu Apr 11, 2013 12:09 pm
Location: Buckinghamshire, UK

Re: How to Trade 10.x Like a Boss

Post by Pedigree »

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?
spotdespot
Trader
Posts: 768
Joined: Sun Jan 22, 2012 11:38 pm

Re: How to Trade 10.x Like a Boss

Post by spotdespot »

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.
Post Reply

Return to “Bob's individual forum”