Framework

trader2009

Active Trader
Feb 2, 2009
1
0
32
change

Discuss Framework expert advisor. Framework is based on the three CCI indicators crosses. You can ask any questions about this expert advisor here.

Hello,

Can you change this EA as one of those 3 CCI reach a certain value to close all open trades.
 
Last edited by a moderator:

MANUBAJWA3000

Active Trader
Mar 3, 2010
2
0
32
Error

Have tested this EA on demo account and works great, can say about 99% +ve results. However every now and then, i hits a bug and starts opening one order on every new bar. May be unable to check if a trade is already open.

Could you pls correct the EA and thanks for the great work.
 

MANUBAJWA3000

Active Trader
Mar 3, 2010
2
0
32
SL

Hi,

Could you pls add a Trailing SL to the EA, as it seems the EX would touch the high's and revert back in some cases to close the trade at a loss.

T SL would some in handy in these cases.
 

user666

Active Trader
Jun 18, 2010
2
0
32
bad backtest results for 2008,2009,2010 years

Have tested this EA on demo account and works great, can say about 99% +ve results. However every now and then, i hits a bug and starts opening one order on every new bar. May be unable to check if a trade is already open.

Could you pls correct the EA and thanks for the great work.


I made backtests for EA for the same period from November 2006 to November 2007 and received 170% return annualy, it is simmilar results with publicated in www.earnforex.com But the same backtest with the same testing conditions showed loses in 2007-2008, 2008-2009, and 2009-2010 years. All tests was 90% quality. Where is error a how understand declaration that in the next year robot provide the same results with 200% annualy ?
 

smallpip

Trader
Feb 28, 2011
9
0
12
Hi,

I have tested this EA and it seems to be working great. I tested 2010-Jan to Dec on daily timeframe. It was profitable. But then I tested on hourly and it was extremely profitable. I have following question:
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.
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)?
 

smallpip

Trader
Feb 28, 2011
9
0
12
Hi,
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.

2011.02.27 18:10:19 2010.01.28 09:03 framework: stopped because of Stop Out
2011.02.27 18:10:19 2010.01.28 09:03 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:03 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:03 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:03 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:03 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:03 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:03 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:03 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:03 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:03 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:03 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:03 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:03 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:02 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:02 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:02 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:02 framework EURUSD,H1: -----NO MONEY
2011.02.27 18:10:19 2010.01.28 09:00 framework EURUSD,H1: open #188 sell 0.10 EURUSD at 1.40369 tp: 1.37819 ok
2011.02.27 18:10:19 2010.01.28 08:00 framework EURUSD,H1: open #187 sell 0.10 EURUSD at 1.40145 tp: 1.37595 ok
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,530
1,355
144
Odesa
www.earnforex.com
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.

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.
 

smallpip

Trader
Feb 28, 2011
9
0
12
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?
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,530
1,355
144
Odesa
www.earnforex.com
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.

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.

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.

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.
 

smallpip

Trader
Feb 28, 2011
9
0
12
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.
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,530
1,355
144
Odesa
www.earnforex.com
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.
 

smallpip

Trader
Feb 28, 2011
9
0
12
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?
 

gav_jonesuk

Trader
Jun 10, 2012
3
0
12
Framework EA on IBFX

Hi all,

I'm a novice to Forex in the sense that I have been demo trading for around a month, but reading around the whole subject for about a year.

I've opened a demo account on IBFX using MT4. I've also downloaded the Framework EA and turned on all the settings under IBFX's version of MT4 to enable the automatic placing of orders.

I've backtested the EA on the strategy tester and it is giving some good results on an hourly timeframe over the last month / year. But when I leave it sitting on the same currency pair waiting for it to open a trade, it doesn't do anything. I get a couple of trades a day on the strategy tester. None over a couple of days when I leave it waiting for it to automate a trade. What am I missing or doing wrong?

Thanks to anyone that can help to throw light on this.

Kind regards,
G