Thread: MQL4 Learning
View Single Post
  #146 (permalink)  
Old 07-30-2007, 12:11 PM
Shinigami Shinigami is offline
Senior Member
 
Join Date: Dec 2006
Location: Ukraine
Posts: 491
Shinigami is on a distinguished road
After you compiled EA and started testing it, its properties (settings) are written down into a file. You need to change them manually.
If you wrote TP = 400 in the EA, then it means you set default value to 400.
In order for the EA to use that value in strategy tester you need to set it in the EA settings. Or simply use default values (there is a button for that, but I have no idea what is it called, my MT4 is russian).
Anyway just change the value in the properties.
I also recommend you setting best values as default values - each time you compile an expert that is attached to a chart, default values are being used.

Quote:
Originally Posted by MQL4 View Post
Shinigami,

I need Your help:

Before, it was:
PHP Code:
extern double TakeProfit 20
Then, I changed it to

PHP Code:
extern double TakeProfit 400
And the parameters, the inputs for the EA still show 20!!!!!!!!!

What's the problem?


Thanks in advance.....


MQL4.
__________________
MQL4 programming is easy ^^
Reply With Quote