Optimize Experts

 

Need help optimizing EA. I followed all the instructions for optimizing an expert, but each pass produces the following results:


1 0.00 0 0.00 0.00 0.00 0.00%


No matter how many passes, the results show zero actual trades occurred. There is in excess of five years of historical data for testing. i use other experts with the same data and they function as expected. In back testing, the EA trades without a problem. Does anyone have an idea why the EA will not trade during optimization?
 
Show your code.
 
Add Print statements to the code, run it in Visual mode not optimize and watch the journal
Reason: