If you can find something in the code, you're welcome ! I just resolve it for a friend with the same problem by installing a new Empty4. I think the problem was in History data. Try this solution first.Dumuzi wrote:I can of course try a fresh installation of build 427. My criminal is FxPro.phil_trade wrote: The problem is not is the code but in your Empty4.
Try to install a fresh Empty4 with version 427.
Which criminal ?
At work we regularly blamed the compiler or the platform (Windows). However, 99% of the time we were wrong. Later it was required that I proved the problem to be in the the compiler or the platform. I find this to be sound because the alternative is to become a victim. Pardon me, but I still believe this problem can be fixed in the EA and I really, really hope it can because the alternative is "unbearable".
Nanningbob 10.2 auto-trading EA
-
phil_trade
Re: 10.2; the auto-trading EA is born.
-
Dumuzi
- Posts: 9
- Joined: Sat Apr 28, 2012 11:38 am
- Location: Norway
Re: 10.2; the auto-trading EA is born.
Uninstalled Empty4, deleted program folder and subfolders, downloaded build 427 and installed it. First thing EA did was taking a trade and closing it. hmmm...phil_trade wrote: If you can find something in the code, you're welcome ! I just resolve it for a friend with the same problem by installing a new Empty4. I think the problem was in History data. Try this solution first.
Just to verify: Only files I need to install in addition to EA are indicators from NanningBob's thread at FF. Right?
To look at totally unknown code is something I prefer not to do because it takes time just to feel comfortable inside it. Oh, well. I have the problem in front of me so I guess that's reason enough to try.
-
phil_trade
Re: 10.2; the auto-trading EA is born.
Just to verify: Only files I need to install in addition to EA are indicators from NanningBob's thread at FF. Right?Dumuzi wrote:Uninstalled Empty4, deleted program folder and subfolders, downloaded build 427 and installed it. First thing EA did was taking a trade and closing it. hmmm...phil_trade wrote: If you can find something in the code, you're welcome ! I just resolve it for a friend with the same problem by installing a new Empty4. I think the problem was in History data. Try this solution first.
Just to verify: Only files I need to install in addition to EA are indicators from NanningBob's thread at FF. Right?
To look at totally unknown code is something I prefer not to do because it takes time just to feel comfortable inside it. Oh, well. I have the problem in front of me so I guess that's reason enough to try.
No, all is explain in post 1 !
Try with my SET file to confirm it's not your parameters.
You do not have the required permissions to view the files attached to this post.
-
Dumuzi
- Posts: 9
- Joined: Sat Apr 28, 2012 11:38 am
- Location: Norway
Re: 10.2; the auto-trading EA is born.
Will try your SET file as soon as the problem reappears. Everything is working good at the moment.phil_trade wrote: Try with my SET file to confirm it's not your parameters.
-
AGT
- Trader
- Posts: 889
- Joined: Thu Nov 17, 2011 7:20 pm
- Location: Germany
Re: 10.2; the auto-trading EA is born.
hi phil_trade - which version do you use ? "1x" ? .... oh no, we have already "1y" !! "1y" is the last ... isnt it ? Look Steves post today 11:46 am.
AGT's EA portfolio: http://www.stevehopwoodforex.com/phpBB3 ... =36&t=1374
-
phil_trade
Re: 10.2; the auto-trading EA is born.
what did you do after reinstall Empty4 and read post 1 ?Dumuzi wrote:Will try your SET file as soon as the problem reappears. Everything is working good at the moment.phil_trade wrote: Try with my SET file to confirm it's not your parameters.
-
Dumuzi
- Posts: 9
- Joined: Sat Apr 28, 2012 11:38 am
- Location: Norway
Re: 10.2; the auto-trading EA is born.
I had a short debugging session, but had to stop because the problem went away again. There are some preliminary results and guesses though:
1) In function LookForTradeClosure the variable "take" has a bad value and my OP_SELL was closed.
2) The problem seems to appear when I have one active trade and a second is taken. The problem is with the second trade.
3) The value of variable "take" seems to come from the first trade, meaning its value is logical in the context of the first trade. Cannot see why though.
Of course, being a programmer, I make mistakes and bad guesses faster than most...
1) In function LookForTradeClosure the variable "take" has a bad value and my OP_SELL was closed.
2) The problem seems to appear when I have one active trade and a second is taken. The problem is with the second trade.
3) The value of variable "take" seems to come from the first trade, meaning its value is logical in the context of the first trade. Cannot see why though.
Of course, being a programmer, I make mistakes and bad guesses faster than most...
-
phil_trade
Re: 10.2; the auto-trading EA is born.
See my yesterday post 15:41 about what I have found.Dumuzi wrote:I had a short debugging session, but had to stop because the problem went away again. There are some preliminary results and guesses though:
1) In function LookForTradeClosure the variable "take" has a bad value and my OP_SELL was closed.
2) The problem seems to appear when I have one active trade and a second is taken. The problem is with the second trade.
3) The value of variable "take" seems to come from the first trade, meaning its value is logical in the context of the first trade. Cannot see why though.
Of course, being a programmer, I make mistakes and bad guesses faster than most...
-
Dumuzi
- Posts: 9
- Joined: Sat Apr 28, 2012 11:38 am
- Location: Norway
Re: 10.2; the auto-trading EA is born.
Problem is back so I debugged some more:
Set CloseThisTrade back to False so I could see the lines. The Tpxxx and Slxxx lines for the second active trade are way off and equal those in the first trade. Don't know if they are initially wrong or has been changed.
As I said earlier my brain puts up a fuss when I do this kind of work so I need a break.
Set CloseThisTrade back to False so I could see the lines. The Tpxxx and Slxxx lines for the second active trade are way off and equal those in the first trade. Don't know if they are initially wrong or has been changed.
As I said earlier my brain puts up a fuss when I do this kind of work so I need a break.
Last edited by Dumuzi on Wed May 30, 2012 7:51 am, edited 1 time in total.
-
phil_trade
Re: 10.2; the auto-trading EA is born.
Dumuzi wrote:Problem is back so I debugged some more:
Set CloseThisTrade back to False so I could see the lines. The Tpxxx and Slxxx lines for the second active trade are way off and equal those in the first trade. Don't know if they are initially wrong or has been changed.
As I said earlier my brain set up a fuss when I do this kind of work so I need a break.
Are the 2 trades from same Pairs ? If yes, it's a problem cause EA trade only one trade at a time. Look in this direction.