Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4






Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-08-2008, 07:38 PM
Junior Member
 
Join Date: Nov 2007
Posts: 15
nuozek is on a distinguished road
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.
Attached Files
File Type: mq4 Absolute Strength Big Cross EA.mq4 (34.5 KB, 42 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 12-09-2008, 01:25 AM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,215
matrixebiz is on a distinguished road
Sure, I can take a look. Can you post this file AbsoluteStrength_v1.1_mtf? Is this file an mt4 indicator?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 12-09-2008, 03:54 AM
Junior Member
 
Join Date: Nov 2007
Posts: 15
nuozek is on a distinguished road
Hi matrixebiz

It's a indicator. Here it is:
Attached Files
File Type: mq4 AbsoluteStrength_v1.1_mtf.mq4 (8.5 KB, 44 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 12-09-2008, 12:22 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,215
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 12-10-2008, 04:59 PM
Junior Member
 
Join Date: Nov 2007
Posts: 15
nuozek is on a distinguished road
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.
Attached Images
File Type: gif Big cross.gif (6.0 KB, 256 views)
Attached Files
File Type: htm Big cross.htm (206.3 KB, 12 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 12-13-2008, 05:17 PM
Junior Member
 
Join Date: Nov 2007
Posts: 15
nuozek is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 12-15-2008, 05:19 AM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,215
matrixebiz is on a distinguished road
Quote:
Originally Posted by nuozek View Post
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to stop nagging pop up alert repetition mpforex Metatrader 4 0 07-20-2007 11:11 AM


All times are GMT. The time now is 08:07 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.