Forex
Google

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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

View Poll Results: What Data would help develop your system?
M5 4 44.44%
M15 0 0%
M30 1 11.11%
H1 2 22.22%
H4 0 0%
Other 2 22.22%
Voters: 9. You may not vote on this poll

Reply
 
LinkBack (14) Thread Tools Display Modes
  #401 (permalink)  
Old 05-16-2008, 06:56 AM
shanyang shanyang is offline
Junior Member
 
Join Date: Apr 2008
Posts: 17
shanyang is on a distinguished road
why optimization only test maximal 10496 cases

an EA has 4 inputs to be optimized, each input data ranges from 1 to 200, with step 1
in principle, it should generates 200*200*200*200=1600000000 cases
but metatrader only generated and optimized 10496 combination.
what's the problem? is there anything wrong with the optimization setting?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #402 (permalink)  
Old 05-18-2008, 02:51 PM
jumpman's Avatar
jumpman jumpman is offline
Junior Member
 
Join Date: May 2008
Posts: 14
jumpman is on a distinguished road
Mising part

please help me to find out, whats wrong with my chart just for usd/jpy,
there is a big gap i mean missing, how can i load the 2 years tim period?

thanks
Attached Images
File Type: jpg aaa.JPG (45.2 KB, 181 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #403 (permalink)  
Old 05-19-2008, 03:08 AM
Linuxser's Avatar
Linuxser Linuxser is offline
Moderator
 
Join Date: May 2006
Location: Helliconia (Autumn)
Posts: 2,165
Linuxser has disabled reputation
Quote:
Originally Posted by jumpman View Post
please help me to find out, whats wrong with my chart just for usd/jpy,
there is a big gap i mean missing, how can i load the 2 years tim period?

thanks
This is not a gap, you have missed the data. Delete this file USDJPY240.hst, restart MT4 and download the data again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #404 (permalink)  
Old 05-19-2008, 06:18 AM
jumpman's Avatar
jumpman jumpman is offline
Junior Member
 
Join Date: May 2008
Posts: 14
jumpman is on a distinguished road
ok, i deleted the file and restarted it again but there is the same situation,it doesn't update the file! or do i have to download by myself?

please help,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #405 (permalink)  
Old 05-19-2008, 06:29 AM
jumpman's Avatar
jumpman jumpman is offline
Junior Member
 
Join Date: May 2008
Posts: 14
jumpman is on a distinguished road
i did!!!

thanks linuxser

tools--) then f2 download the history of the pair, (the solution)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #406 (permalink)  
Old 05-19-2008, 11:10 AM
Linuxser's Avatar
Linuxser Linuxser is offline
Moderator
 
Join Date: May 2006
Location: Helliconia (Autumn)
Posts: 2,165
Linuxser has disabled reputation
Quote:
Originally Posted by jumpman View Post
i did!!!

thanks linuxser

tools--) then f2 download the history of the pair, (the solution)
Glad you could find the solution, but by deleting the data file you're forcing MT4 to re-download the data again. The way you've used to fix it is download data from Metaquotes, not from your borker.

If you have missing data it's because:

1.Your broker have a big problem.
2.Your platform is too old and because that the included data is old too and for some reason the software is not filing at all, maybe because your broker does not have that period of data.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #407 (permalink)  
Old 05-19-2008, 12:10 PM
jumpman's Avatar
jumpman jumpman is offline
Junior Member
 
Join Date: May 2008
Posts: 14
jumpman is on a distinguished road
i didin t have that problem before, when i reload my xp (format) i ve had this kind of problem since then.

Now it seems ok but i loads slower now.

we will see...
thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #408 (permalink)  
Old 05-23-2008, 12:35 AM
acfx acfx is offline
Junior Member
 
Join Date: Jan 2008
Posts: 2
acfx is on a distinguished road
Objective function for optimization

After using Metatrader for optimization of trading strategies for a few months I am not happy with it for a variety of reasons and thinking about writing my own tester/optimizer in Matlab and one of the most difficult questions I am facing is: what should the objective function look like? I have identified at least three parameters I would like to include into the objective function (fixed lot trading, no money management):
1) Maximum slope of the linear regression line of the equity curve (want equity curve to be as steep as possible)
2) Minimum sum of squared residuals of the linear regression line of the equity curve (want equity curve to be as linear as possible)
3) Maximum number of trades (want to trade as often as possible while not scalping)
However I am not sure what is the best way to combine them together to form the objective function for the optimizer. Should it be something like
(slope of linear regression) * (number of trades) / (sum of squared residuals) or some other combination of exp(), ^x, log() of these parameters (no Sharpe ratio please).
Should other parameters be included?
If anyone has experience developing objective functions for trading systems and feels like sharing it I would greatly appreciate your feedback.

Last edited by acfx : 05-23-2008 at 02:00 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #409 (permalink)  
Old 05-23-2008, 12:09 PM
belea belea is offline
Junior Member
 
Join Date: Feb 2008
Posts: 3
belea is on a distinguished road
Exclamation Strategy Tester & current bar

Hi there,


If i try any EA.. with any indicators in it.. i will have different result from the chart and from the journal..

I pointed in RED.. the differents..

What can i do to have on chart and in the journal same value.. ?

Because when i make an EA.. i use the chart value.. and i am really confused..
Attached Images
File Type: jpg current line.JPG (711.8 KB, 103 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #410 (permalink)  
Old 05-23-2008, 12:35 PM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,223
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
I am not sure but I see the price for sell order and close order price on the chart and in journal and it is the same one. As to value of MACD indicator so just value in in the journal (in red) and you may see it on the chart in selarate window: it is not written but using mause it is possible).

I am not really sure but I think that standard MACD is using:

Code:
if(MacdCurrent>0 && MacdCurrent<SignalCurrent && MacdPrevious>SignalPrevious && MacdCurrent> (MACDOpenLevel*Point) && MaCurrent<MaPrevious)
It means the following:
- if MACD value of closed bar is above 0;
and
- MACD value of closed bar < Signal line value of same closed bar;
and
- MACD value of previous closed bar is above Signal line value of previous closed bar;
- MACD value of closed bar > MACDOpenLevel*Point (MACDOpenLevel is in the settings of the EA);
and so on
...

As I understand, MACD value of closed bar is value of MACD on previous bar. Because bar should be closed. Nearest close bar. Bar closed - order openes.
So, it is not the value of MACD on the same bar with your arrow on the chart. I think it is previous bar (nearest closed bar).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/expert-advisors-metatrader-4/1799-backtesting-optimization.html
Posted By For Type Date
FXforum • Téma megtekintése - Hogyan teszteljünk EA-t? This thread Refback 04-14-2008 01:38 PM
ßíÝíÉ ÑÝÚ Çá modeling quality Ýí ÇáãíÊÇ - ãäÊÏíÇÊ ÇáãÊÏÇæá ÇáÚÑÈí This thread Refback 03-27-2008 08:12 PM
ÇÓÊÝÓÇÑ ÈÎÕæÕ ÇáÇßÓÈÑÊÇÊ - ãäÊÏíÇÊ ÇáãÊÏÇæá ÇáÚÑÈí This thread Refback 03-09-2008 07:27 PM
FXforum • Téma megtekintése - Hogyan teszteljünk EA-t? This thread Refback 03-01-2008 09:33 AM
Metatrader Untuk This thread Refback 01-25-2008 12:42 AM
GoldenLine.pl: Dyskusja - czy gracie na systemach realnymi pieniedzmi? Post #111 Refback 12-27-2007 07:47 PM
trading-systematique : Weblog This thread Refback 12-17-2007 07:31 PM
¤ï¤é¤·¤ÙĹ¼Ô¤Ø¤ÎÆ» ¤Á¤ã¤ó¤È¤ä¤Ã¤Æ¤Þ¤¹¤è¡© This thread Refback 11-01-2007 11:56 AM
Forex Expert Advisor EA Indicator MT4 Message Forum OTCSmart This thread Refback 10-29-2007 10:32 AM
Tutorial pour Metatrader (Forex) - Trading Systématique This thread Refback 08-13-2007 11:01 PM
Portal khas untuk EA - Nogold.com This thread Refback 08-07-2007 01:16 PM
ÇÓÊÝÓÇÑ ÈÎÕæÕ ÇáÇßÓÈÑÊÇÊ - ãäÊÏíÇÊ ÇáãÊÏÇæá ÇáÚÑÈí This thread Refback 06-30-2007 08:26 PM
Trading Systématique This thread Refback 06-26-2007 09:21 PM
MT4 Tester jest OK - test porówn.z Amibroker.i Tradestation Post #91 Refback 06-21-2007 02:42 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Phoenix optimization Prankie Phoenix 173 10-17-2007 07:24 AM
Optimization cpu usage, need help Big Joe Indicators - Metatrader 4 4 08-16-2007 10:46 PM
Martingale Optimization pelele79 Expert Advisors - Metatrader 4 19 05-07-2007 10:27 AM
How do I use the optimization? huhenyo Metatrader 4 1 03-15-2007 08:39 AM
Optimization cardio Metatrader 4 1 01-25-2006 12:30 PM


All times are GMT. The time now is 05:07 AM.