|
|||||||
| 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 | |||
|
|
LinkBack (14) | Thread Tools |
|
|
|||
|
|||
|
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? ![]() |
|
|
||||
|
||||
|
This is not a gap, you have missed the data. Delete this file USDJPY240.hst, restart MT4 and download the data again.
__________________
|
|
|
||||
|
||||
|
Quote:
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.
__________________
|
|
|
|||
|
|||
|
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. |
|
|
|||
|
|||
|
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.. |
|
|
|||
|
|||
|
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) - 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). |
| Thread Tools | |
|
|
|
|
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 |