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

Multi 10:4 Trader EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=1619
Page 90 of 160
Author:  MrLong [ Wed Apr 17, 2013 7:56 pm ]
Post subject:  Re: Multi 10:4 Trader EA

Good Evening Guys,

I've now been watching this EA for over a month now and some days it will mint and other days it will be relived of the pips it has made.

An idea could be to have 2 of the same versions running at the same time, at the moment we wait for the RSI/STOCH/AO to pull back then start laying the STOPS.

So we can wait for one version to drawdown, then in the other version start laying our STOPS.

Does any member know if two terminals can communicate with each other?

Cheers
Andy
Author:  simplex [ Wed Apr 17, 2013 8:48 pm ]
Post subject:  Re: Multi 10:4 Trader EA

slipshod wrote:
simplex wrote:
glabbeek wrote:Here also very high cpu consumption. between 85 and 100 percent.
Same on my test machine - even after slipshod's modifications. Mostly 100% single core consumption. Empty4 keeps crashing every 5 to 10 minutes. Haven't analyzed possible reasons yet.

Jürgen
Jürgen, have you tried with showDisplay set to false (with my modifications from the page 88)? For me that cut the CPU usage right down. With showDisplay=false using the current 2.01a there's still high CPU, and the only difference is that all the buttons are still created and guiIsClicked() called constantly in the start function.

My guess is that the processing is being caused by having so many buttons and continually checking them.
Thank you - just tested that. With showDisplay=false seems to work stable and on low cpu consumption. But I don't like flying blindly, and with instruments off 8-) .

For the moment I will build a version with all buttons commented out.

Looking for the reason for the instability there are two general possibilities:

a) DLL is ok, but implementation in the EA code (mqh or mq4) has bug(s). I did not look at that part yet, nor did I read the mt4gui docs.

b) DLL itself is buggy. Never trust a DLL you did not compile yourself - right?

Maybe I'm a little bit oldfashioned. I coded my first programs at the university in a language called Fortran77 by punching line after line in 72-column punch cards ;) ... no DLLs, no libs, few problems - unless you stumbled over something while carrying your program to the dispatcher and spread your cards all over the floor ...

All right: would have been quite a task to build something similar to this EA using Fortran and punchcards ... hmmm ... but it might work!

In German we have a saying 'Mit Kanonen auf Spatzen schiessen' - means somebody uses an anti aircraft gun to hunt some sparrows. This DLL grew from 100 KB to 3 MB lately. 3 MB is not too much, but if memory management or other resources' management doesn't work properly it can result in a black hole for computing power. You won't notice this black hole when putting two or three elements on screen, but with 60+ buttons checked on every tick ...

@Andy: please get this right! Your idea about using this DLL was absolutely brilliant. I stand for it and I hope we will find a way to get rid of this black hole - without discarding the functionality.

We'll see. I will look at the construction tomorrow, you and others will as well.

Have a good night now - at least on 'my' side of this globe!

Jürgen
Author:  simplex [ Wed Apr 17, 2013 8:55 pm ]
Post subject:  Re: Multi 10:4 Trader EA

MrLong wrote:Good Evening Guys,

I've now been watching this EA for over a month now and some days it will mint and other days it will be relived of the pips it has made.

An idea could be to have 2 of the same versions running at the same time, at the moment we wait for the RSI/STOCH/AO to pull back then start laying the STOPS.

So we can wait for one version to drawdown, then in the other version start laying our STOPS.

Does any member know if two terminals can communicate with each other?

Cheers
Andy
I don't know whether some direct communication is possible, but at least you can have an EA write infomation to a file, and another EA would read this information on its next tick or whenever a trigger occurs. To do that you would have to provide both EAs with a shared folder, which should work by defining some shortcuts to files in the 'files' folder of the Empty4 instances.

Haven't done this yet, but should be fairly easy.

But I did not understand why you would need two EAs for the task described. What's the idea? Which information should be exchanged in particular? Is it like a client server architecture, kind of internal signaling service?

Jürgen
Author:  MrLong [ Wed Apr 17, 2013 9:57 pm ]
Post subject:  Re: Multi 10:4 Trader EA

simplex wrote:
MrLong wrote:Good Evening Guys,

I've now been watching this EA for over a month now and some days it will mint and other days it will be relived of the pips it has made.

An idea could be to have 2 of the same versions running at the same time, at the moment we wait for the RSI/STOCH/AO to pull back then start laying the STOPS.

So we can wait for one version to drawdown, then in the other version start laying our STOPS.

Does any member know if two terminals can communicate with each other?

Cheers
Andy
I don't know whether some direct communication is possible, but at least you can have an EA write infomation to a file, and another EA would read this information on its next tick or whenever a trigger occurs. To do that you would have to provide both EAs with a shared folder, which should work by defining some shortcuts to files in the 'files' folder of the Empty4 instances.

Haven't done this yet, but should be fairly easy.

But I did not understand why you would need two EAs for the task described. What's the idea? Which information should be exchanged in particular? Is it like a client server architecture, kind of internal signaling service?

Jürgen
Hi Jürgen,

I'm looking to run one terminal with an EA trading on it, when the EA goes into drawdown like it does, I would have another terminal running another account with another EA, I would then let the second EA start to place trades.

The reason it cannot be done on the same terminal is beacause we can only have one account.

Andy
Author:  slipshod [ Thu Apr 18, 2013 3:02 am ]
Post subject:  Re: Multi 10:4 Trader EA

It can be performing well for some people with some brokers, but at the same time it can go into massive drawdown on other brokers. Then the badly performing ones will do well while the previously "good" brokers go into DD. A couple of weeks ago nearly all of my demos were doing well, one up nearly 10%, now they're all down between 10-20% below the starting balance.
Author:  roman101 [ Thu Apr 18, 2013 3:19 am ]
Post subject:  Re: Multi 10:4 Trader EA

aagarcia wrote:The EA is performing well. What's the problem?
Here is my DD
From $1100 profit to -$1800DD in 2 days.
14 hours ago DD was about 40%.
Author:  MrLong [ Thu Apr 18, 2013 6:33 am ]
Post subject:  Re: Multi 10:4 Trader EA

aagarcia wrote:The EA is performing well. What's the problem?
Hi,

We know it its going to drawdown, before going into profit, it's done this for the last 5 weeks.

So it would be smarter to enter the market when the drawdown occurs, like a 2 part system, I did it last night and made 8%.

I ran the normal setup, when we got the drawdown, I modified another version of the EA to send orders, not stops.

I then entered all the pairs in the drawdown into the modified EA, symbolsToTrade, the let them go.

Andy
Author:  simplex [ Thu Apr 18, 2013 7:19 am ]
Post subject:  Re: Multi 10:4 Trader EA

MrLong wrote:
simplex wrote:
MrLong wrote:Good Evening Guys,

I've now been watching this EA for over a month now and some days it will mint and other days it will be relived of the pips it has made.

An idea could be to have 2 of the same versions running at the same time, at the moment we wait for the RSI/STOCH/AO to pull back then start laying the STOPS.

So we can wait for one version to drawdown, then in the other version start laying our STOPS.

Does any member know if two terminals can communicate with each other?

Cheers
Andy
I don't know whether some direct communication is possible, but at least you can have an EA write infomation to a file, and another EA would read this information on its next tick or whenever a trigger occurs. To do that you would have to provide both EAs with a shared folder, which should work by defining some shortcuts to files in the 'files' folder of the Empty4 instances.

Haven't done this yet, but should be fairly easy.

But I did not understand why you would need two EAs for the task described. What's the idea? Which information should be exchanged in particular? Is it like a client server architecture, kind of internal signaling service?

Jürgen
Hi Jürgen,

I'm looking to run one terminal with an EA trading on it, when the EA goes into drawdown like it does, I would have another terminal running another account with another EA, I would then let the second EA start to place trades.

The reason it cannot be done on the same terminal is beacause we can only have one account.

Andy
... And why a second account? Can't we do this on one account with a second magic number?

Jürgen
Author:  MrLong [ Thu Apr 18, 2013 7:23 am ]
Post subject:  Re: Multi 10:4 Trader EA

simplex wrote:
MrLong wrote:
simplex wrote:
MrLong wrote:Good Evening Guys,

I've now been watching this EA for over a month now and some days it will mint and other days it will be relived of the pips it has made.

An idea could be to have 2 of the same versions running at the same time, at the moment we wait for the RSI/STOCH/AO to pull back then start laying the STOPS.

So we can wait for one version to drawdown, then in the other version start laying our STOPS.

Does any member know if two terminals can communicate with each other?

Cheers
Andy
I don't know whether some direct communication is possible, but at least you can have an EA write infomation to a file, and another EA would read this information on its next tick or whenever a trigger occurs. To do that you would have to provide both EAs with a shared folder, which should work by defining some shortcuts to files in the 'files' folder of the Empty4 instances.

Haven't done this yet, but should be fairly easy.

But I did not understand why you would need two EAs for the task described. What's the idea? Which information should be exchanged in particular? Is it like a client server architecture, kind of internal signaling service?

Jürgen
Hi Jürgen,

I'm looking to run one terminal with an EA trading on it, when the EA goes into drawdown like it does, I would have another terminal running another account with another EA, I would then let the second EA start to place trades.

The reason it cannot be done on the same terminal is beacause we can only have one account.

Andy
... And why a second account? Can't we do this on one account with a second magic number?

Jürgen
No because the account would drawdown into loss, we would be using it as an indicator.


Andy
Author:  simplex [ Thu Apr 18, 2013 8:59 am ]
Post subject:  Multi 10:4 Trader EA - mt4gui

Hi all,

I modified my 2.01a by commenting out those Chart and Close buttons. Running stable now even on my small single core test machine on medium cpu consumption.

@Andy: assuming that those performance / stability problems around the buttons persist, would it be an option to roll back to the old mt4gui dll? That one seemed to be stable. Any reason not to do so besides the flickering?

Jürgen
All times are UTC Page 90 of 160