This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community
Expert Advisor optimizationBack to topics list | 1 2 |
|
Vooch
2005.07.03 02:02
It should be something like this:
extern int optimize;
int start{
...
double macd0 = iMACD(NULL,Period(),12,optimize,9,PRICE_TYPICAL,MODE_SIGNAL,0);
...
}
|
|
JannikKristensen
2005.07.03 02:05
It should be something like this:
extern optimize;
int start{
double macd0 = iMACD(NULL,Period(),12,optimize,9,PRICE_TYPICAL,MODE_SIGNAL,0);
}
HEHEHE i have to modify in the in current macd sample? im so bad to programing ill try it out and see if i can figure it out thanks for your help :-) |
|
FrankC
2005.07.03 05:53
Just wonder what is the limitation on the number of input parameters that you can optimize. I was running an optimaztion on 8 extern variables, and after 30 minutes, I had to end its task and restart my computer!
|
|
Vooch
2005.07.03 05:53
ooopps...
It should be: extern int optimize; NOT extern optimize; |
|
MartinCooney
2005.07.03 06:37
FrankC,
I think you've only got to think about the number of passes as well as the timeframe for the passes to give you an idea on the amount of time and resources MT4 is going to have to go through. 8 extern variables by number of steps by timeframe of each pass - pretty big job. Martin |
|
JannikKristensen
2005.07.03 13:58
vooch can you give an example where to put it on the current macd samle damn i have to learn programming
:-) thanks anyway |
|
Vooch
2005.07.03 18:57
> 8 extern variables by number of steps by timeframe of each pass - pretty big job
I tried doing 7 extern variables last night while I slept. Unfortunately, it didn't complete the job because I got 6 hours of sleep instead of the required 59,699 hours needed to do the job. And, it was on formula #332 of 2,772,000 possibilities. Maybe that's what Rip Van Winkle was doing when he went to sleep for 20 years. lol |
|
FrankC
2005.07.03 23:57
I think I have to reduce the number of optimized parameters to perhaps no more than 3 extern parameter. And also take Martin's advise to pay attention to number of passes and its timeframe.
|
Back to topics list
| 1 2
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets
