Forex Forum - EarnForex
Serving Traders Since 2005
 

Go Back   Forex Forum - EarnForex > MetaTrader > MetaTrader Expert Advisors

MetaTrader Expert Advisors Post and discuss the MetaTrader expert advisors here.

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 28th February 2011, 12:27
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,542
Thanks: 18
Thanked 20 Times in 16 Posts
Default

Quote:
Originally Posted by smallpip View Post
1. I want to test it further. Where can I get quality historical data for MT4. I tried Alpari history center download. Somehow it does not seem to work and EA stops in the middle.
Try getting CSV data from http://www.dukascopy.com/freeApplets/exp/.

2. Currently the settings in code are Lots=0.1 and TP=255. I am assuming these are good for a $10K account. However since I am just starting new, I opened a mini account with $700. This is just for testing. If the EA is profitable then I plan to upgrade the account. Can I run this EA with Lots=0.01 and TP=25 (one tenth of the original settings)?[/QUOTE]

You should just reduce Lots to 0.01 and don't touch the TP. But your broker needs to support 0.01 lot trading.

Quote:
Originally Posted by smallpip View Post
When I test on H1 for 2010, it stops after some time. In my earlier run it did not stop and completed the whole year. Can someone please help.
That means that the EA lost all the balance. You've probably altered some settings or increased the lot size.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #12 (permalink)  
Old 1st March 2011, 04:07
Default Avatar
Junior Member
 
Join Date: Feb 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Enivid,

Thanks fro the reply. I did not make any change to the code. I unsitalled my MT4, and installed in a new folder. Then I downloaded M1 Data from Aplari using History Center. I downloaded framework EA again from this site and tested on H1. But same thing happens. In journals it says:
2011.02.28 20:01:49 2010.01.14 13:11 framework: stopped because of Stop Out
2011.02.28 20:01:49 2010.01.14 13:11 framework EURUSD,H1: -----NO MONEY

Curiously I tested it day before yesterday, and it finished the test for 2010. But now it does not. It does not finish the test for any year.

1.Can you please test it on your end for H1 EURUSD.
2.Is there a way we can put a limit on number of orders it pyramids when trending.
3.If it is running on a live account and it says No Money, what will happen? Will it close all the orders at a loss? or it will just stop taking new orders?

My guess is that it uses up all equity and if the order pyramid goes into loss, the tester just stops the testing. Is there a way to confirm this.

I really like this EA. Seems like it can be profitable in any market conditions. - What do you think?
Reply With Quote
  #13 (permalink)  
Old 1st March 2011, 04:11
Default Avatar
Junior Member
 
Join Date: Feb 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am testing at 90% modeling quality. I can upload my 2010 report also it that helps.
Reply With Quote
  #14 (permalink)  
Old 1st March 2011, 10:38
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,542
Thanks: 18
Thanked 20 Times in 16 Posts
Default

Quote:
Originally Posted by smallpip View Post
I did not make any change to the code. I unsitalled my MT4, and installed in a new folder. Then I downloaded M1 Data from Aplari using History Center. I downloaded framework EA again from this site and tested on H1. But same thing happens. In journals it says:
2011.02.28 20:01:49 2010.01.14 13:11 framework: stopped because of Stop Out
2011.02.28 20:01:49 2010.01.14 13:11 framework EURUSD,H1: -----NO MONEY
Did you change the input parameters (for example, Lots)? Because when I test it on EURUSD H1 on 2010 I get $4,566.07 net loss but not the stop out.

Quote:
Originally Posted by smallpip View Post
2.Is there a way we can put a limit on number of orders it pyramids when trending.
Increasing the Interval input parameter reduces the amount of orders it opens.

Quote:
Originally Posted by smallpip View Post
3.If it is running on a live account and it says No Money, what will happen? Will it close all the orders at a loss? or it will just stop taking new orders?
It just won't open any new orders but your existing ones will probably be closed by the broker due to margin call.

Quote:
Originally Posted by smallpip View Post
My guess is that it uses up all equity and if the order pyramid goes into loss, the tester just stops the testing. Is there a way to confirm this.
You can see the equity curve on the test Graph tab and also the details about each order in the Results tab.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #15 (permalink)  
Old 2nd March 2011, 04:17
Default Avatar
Junior Member
 
Join Date: Feb 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Enivid,

I figured out the problem. The problem lies with pyramid. It takes too many orders and the AccountFreeMargin becomes zero. Hence it is stopped out. I got it to work for 2010 H1 by adding following condition:

extern int OrdersToTake = 10;
extern double MinAccountFreeMargin = 5000;

....

if (itv >= Interval && AccountFreeMargin() > MinAccountFreeMargin)

it worked for 2010 and gave me 80K profit for 2010 on H1.

I tried to test it for 2009 but it again got stopped out.

The issue is that it does not have money management built into it. It keeps taking the orders with every new bar until free margin runs out.

Can you please build money management into so that it does not take more than 1 or 2% of account balance as risk.

Basically, based on the SL and %age of risk, it should calculate lot size.
Reply With Quote
  #16 (permalink)  
Old 2nd March 2011, 09:56
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,542
Thanks: 18
Thanked 20 Times in 16 Posts
Default

Quote:
Originally Posted by smallpip View Post
Can you please build money management into so that it does not take more than 1 or 2% of account balance as risk.

Basically, based on the SL and %age of risk, it should calculate lot size.
This EA wasn't created by me, so I am not very interested in developing it further. But on the other hand you could add such code and share with the rest of us.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
  #17 (permalink)  
Old 3rd March 2011, 06:56
Default Avatar
Junior Member
 
Join Date: Feb 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh,
I thought since you are admin of this forum, and I assume you are also owner of this site, it was developed by you.

I have made some changes to it and back tested till 2003. It does not stop out now, and gives roughly 5K profit for 10K account most years.

Can you please point me to the developer of framework?
Reply With Quote
  #18 (permalink)  
Old 3rd March 2011, 08:13
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,542
Thanks: 18
Thanked 20 Times in 16 Posts
Default

It was developed by Ron Thompson from http://www.forexmt4.com/.
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
Reply

Bookmarks

Tags
cci, expert advisor, metatrader, mt4


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On



All times are GMT. The time now is 02:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Inactive Reminders By Icora Web Design

SEO by vBSEO 3.3.2