Download MetaTrader 5
To add comments, please log in or register
The Market has more than 400 indicators. Try any of them!
Keith Watford
Moderator
8835
Keith Watford 2014.04.14 13:16  
Arav007:


Anyway, it's the Local New Year here. So I couldn't have a deeper look into everything.

It's new year here as well, so maybe you are also in Thailand or somewhere near. The noise from the celebrations can make it difficult to concentrate.
Daniel Petrovai
440
Daniel Petrovai 2014.04.14 23:02  
Arav007:

Hello,

I'm agree that we should come up with ideas and help one other to make a better trading community.

I'm always there for that.

Anyway, it's the Local New Year here. So I couldn't have a deeper look into everything. Though ran the

updated EA for a while and got a problem. Couldn't analyze it for time so posting the screenshots.

It has opened 4 trades at a time in EURUSD! So it would probably open 4 Buy orders too at time.

And while opening New Buy Orders, it's not closed an existing Sell Order! There was an error:6.

Please have a look. Hopefully I'd be able to come with a decent report by tomorrow.


Regards


Hi,

Thanks for feedback. I checked the documentation for error 6 and it says :

ERR_NO_CONNECTION6No connection with trade server.

Not sure right now why you got that error.

I'll look into how it opens the orders again and get back to you.

Arav007
412
Arav007 2014.04.15 16:21  
thrdel:


Hi,

Thanks for feedback. I checked the documentation for error 6 and it says :

ERR_NO_CONNECTION6No connection with trade server.

Not sure right now why you got that error.

I'll look into how it opens the orders again and get back to you.


Hello,

Not sure how the connection error occurred as other Buy orders got opened. Although, that trade had to be closed on the next run when it got buy conditions.

And again another problem occurred. It's supposed to open 'Single' order but opened Two orders. Actually intended to open 'Three' orders but failed with '0' Error.

Your kind opinion is highly expected.

Regards

Arav007
412
Arav007 2014.04.15 16:23  
GumRai:
It's new year here as well, so maybe you are also in Thailand or somewhere near. The noise from the celebrations can make it difficult to concentrate.


Hello,

No I'm not from Thailand though from South Asia. I'm from Bangladesh.

No, the noise didn't disturb. I was busy as it's New Year.

Daniel Petrovai
440
Daniel Petrovai 2014.04.15 22:38  
Arav007:


Hello,

Not sure how the connection error occurred as other Buy orders got opened. Although, that trade had to be closed on the next run when it got buy conditions.

And again another problem occurred. It's supposed to open 'Single' order but opened Two orders. Actually intended to open 'Three' orders but failed with '0' Error.

Your kind opinion is highly expected.

Regards


I'm still looking into it. I need to make sure that the EA updates the number of trades open when it has to and look into some of the other functions as well.

Almost done.

I will post the modified code for you to test again and make sure the trades are open correctly before we do any optimizations at all.

One step at the time, right ?

Almost there.

Daniel Petrovai
440
Daniel Petrovai 2014.04.16 21:34  
Arav007:


Hello,

Not sure how the connection error occurred as other Buy orders got opened. Although, that trade had to be closed on the next run when it got buy conditions.

And again another problem occurred. It's supposed to open 'Single' order but opened Two orders. Actually intended to open 'Three' orders but failed with '0' Error.

Your kind opinion is highly expected.

Regards

Test it an see if you get any more errors and if it places the orders properly .

A couple of things to remember, this is an EMA based EA and should do well in trending markets.

Any question about the code, ask. I will explain why I believe it's better that way.

Again, I run a test on AUDUSD M30 from 1-st of July 2013 with the settings in the EA and it gave some results.

Have a look.

Cheers

Files:
/ /12
To add comments, please log in or register