KM
Post the list of externs at the top of the EA code
-BB-
Hey BB here they are:
extern double StopLoss = 30; //SL for an opened order
extern double Takeprofit = 60; //TP for an opened OrderClose
extern double Lots = 0.1; //Strictly set amount of lots
extern double Prots = 0.1; //percent of free margin
extern int Period_ma_23 = 23; //period for ma
bool Work = true; //EA will work
string symb; //Security name
I'm not too sure why they are of interest but I'll certainly take all the help I can get.
Thanks
keith
Keith
I did wonder if they were all bool, but clearly not :)
I'd either wait for Rosh/Stringo to drop by or what I'd do is download another installation of MT from another source and give it a go.
If the PC has had a hang or crash, the DLLs of MT can get damaged and the resulting ex4 may compile but not be functional...?
I had one installation like this that would compile & optimise but would not fire its start() function when attached to a chart...
Recompiled it in another installation, copied it back to the first one & off it went :)
Download from:-
http://www.metaquotes.net/terminal/
--
https://alpari.com/en/metatrader4/
--
-BB-
Hi BB
Thanks for the thoughts. I have the identical problem on two different demo accounts, different brokers and downloads. So I don't hink it is a faulty file. I'm beginning to suspect that the brokers may have blocked optimization on demo acounts.
I'll fire off an email to their support. Kind of strange that they would both use the same method to block optimizing.
Kind of strange that no one else here has had this problem with a demo account.
Anyhow onwards and upwards and thanks again.
Keith
Double click on the Start value cell, then change it, then press enter key
Double click on the Step value cell, change, enter
Double click on the Stop value cell, change, enter
OK button
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all
The nice thing about MQL4 is that it encourages humility. No matter how hard I try I cannot optimize my EA. Checked optimization box, opened experts properties, open inputs tab----cannot input anything. As I click on each line for variables it turns solid blue and for step and stop there are zeros and I cannot change them.
I am sure that I'm missing something really basic and simple but I am baffled.
The EA is loaded and working, chart is loaded, help!!!
thanks
Keith