Optimizer won't optimize anything...

 
Hi there,

I wrote my own EA and I'm testing it with MetaTrader Optimizer..

On simple testing it's okay, I got the report and graph.

But when I want to optimize the 2 main vars of my EA, the 2 panels related to vars optimization stay blank.

Here is how my vars are coded, out of any function:

Code:
extern int stop_loss;      // (10)
extern int take_profit; // Gross PIP Profit (has to remove spread) (6)
I set up Initial Value, Step, and Stop in the Optimizer. Still no report and graph. ..

What did I miss?

MT4build210
 
I think it should be like this

extern int stop_loss=10;      // (10)
extern int take_profit=6;     // Gross PIP Profit (has to remove spread) (6)
 
I tried that too on the first time. It didn't work.
 
Select the "optimization results" panel, then bring up the right-click menu and untick "Skip Useless Results", and then try again....
 
richplank:
Select the "optimization results" panel, then bring up the right-click menu and untick "Skip Useless Results", and then try again....
I've been able to debug it now, thanks!