optimization let You change input parameters. set appropriate start step and stop values in the expert properties and turn on optimization button
How do I "set appropriate start step and stop values in the expert properties"?
By using an extern variable in my script?
Let's say for example, that I want to test for the best EMA:
double emastuff = iMA(NULL,Period(),xxxxx,0,MODE_EMA,PRICE_CLOSE,0);
where 'xxxxx' is the part I want to optimize
By using an extern variable in my script?
Let's say for example, that I want to test for the best EMA:
double emastuff = iMA(NULL,Period(),xxxxx,0,MODE_EMA,PRICE_CLOSE,0);
where 'xxxxx' is the part I want to optimize
How do I "set appropriate start step and stop values in the expert properties"?
By using an extern variable in my script?
Let's say for example, that I want to test for the best EMA:
double emastuff = iMA(NULL,Period(),xxxxx,0,MODE_EMA,PRICE_CLOSE,0);
where 'xxxxx' is the part I want to optimize
By using an extern variable in my script?
Let's say for example, that I want to test for the best EMA:
double emastuff = iMA(NULL,Period(),xxxxx,0,MODE_EMA,PRICE_CLOSE,0);
where 'xxxxx' is the part I want to optimize
of course. set external int xxxxx=13; (or so on) and set in the properties it's start step and stop
OK Great!
I got it working now.
Thanks!
;)
I got it working now.
Thanks!
;)
why dos some values dont work on the strategy tester for example on the macd sample
Slawa,
On the optimizer, I have:
extern int optimize;
start
{
...
TakeProfit = optimize;
...
}
and I set optimize to start=10, step=10, stop=100
it loops through 10 times and it shows 2 results and discards 8.
The 2 that is shows, in the Pass column, it shows 1 and 2, which makes me think 10 and 20 are the best TakeProfit values to use.
Yet, when I set TakeProfit to 50 manually, I get a better net profit with that than when I have it set to 10 manually.
On the optimizer, I have:
extern int optimize;
start
{
...
TakeProfit = optimize;
...
}
and I set optimize to start=10, step=10, stop=100
it loops through 10 times and it shows 2 results and discards 8.
The 2 that is shows, in the Pass column, it shows 1 and 2, which makes me think 10 and 20 are the best TakeProfit values to use.
Yet, when I set TakeProfit to 50 manually, I get a better net profit with that than when I have it set to 10 manually.
ahhhh...
If I rest my mouse on the profit line of the "Optimization Graph", it'll tell me what the value of optimize is.
:)
If I rest my mouse on the profit line of the "Optimization Graph", it'll tell me what the value of optimize is.
:)
I can also rest my mouse on the grey dot of the "Optimization Results" tab to get my best optimize value.
to Vooch
What does your macd code look like?
- Vooch [/quote]
i like to use 200 or greater in movingaveragetrend period example 200/55/34 on 5 min charts
What does your macd code look like?
- Vooch [/quote]
i like to use 200 or greater in movingaveragetrend period example 200/55/34 on 5 min charts

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
What code do I need in my Expert Advisor to turn that feature ON?
Let's say for example, that I want to test for the best EMA:
double emastuff = iMA(NULL,Period(),xxxxx,0,MODE_EMA,PRICE_CLOSE,0);
where 'xxxxx' is the part I want to optimize