Thread: EA Repetition
View Single Post
  #4 (permalink)  
Old 12-09-2008, 12:22 PM
matrixebiz's Avatar
matrixebiz matrixebiz is offline
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
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.
Attached Files
File Type: mq4 Absolute Strength Big Cross v1.2 EA.mq4 (36.0 KB, 45 views)

Last edited by matrixebiz; 12-10-2008 at 01:48 AM. Reason: Changed Re-Entry Code
Reply With Quote