EA Repetition

 

Hi

I have a problem with this EA , if somebody could help me.

This EA repeat the order and open the same position for many times after take profit and before the next line cross.

I want the orders that it can open not exceed 1 order per cross. Or a limit variable.

So, If somebody could modify the expert, I would be grateful.

Thanks in advance for any help and support.

 

Sure, I can take a look. Can you post this file AbsoluteStrength_v1.1_mtf? Is this file an mt4 indicator?

 

Hi matrixebiz

It's a indicator. Here it is:

 

OK, here try this.

There is code already in the EA for Stop and Limit orders, do you ever get those initiated? Should they be deleted once TP is hit, maybe ?? Can you give me more info on the system? What settings do you use?

So what I did was add;

extern string Remark6="No re-entry in Bars";

extern int No_ReEntry = 2;

So if a Buy was just opened and closed within the same bar, don't check for another Buy signal for 2 bars. Same for the Sell orders.

Let me know how you make out.

 

Thank you, matrixebiz, for the help.

I don't. I did not noticed the code for orders limit.

I'm using the parameters in the report below. But the drawdown is very high in big circles because these orders in succession.

I will do some backtests with your version and then publish the results here.

Hope it works.

Files:
big_cross.gif  6 kb
big_cross.htm  207 kb
 

Hi matrixebiz

It worked great...

The orders are not repeated if I put a variable big enough in No_ReEntry.

However, I'm receiving the following errors in the log:

Error Occured : function is not allowed in testing mode

Error Occured : no error

What can be?

Thank you for your attention.

 
nuozek:
Hi matrixebiz

It worked great...

The orders are not repeated if I put a variable big enough in No_ReEntry.

However, I'm receiving the following errors in the log:

Error Occured : function is not allowed in testing mode

Error Occured : no error

What can be?

Thank you for your attention.

Can you check with the original EA if you get the message.

Thanks