Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
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?
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.
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.
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:
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).