[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 284
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
UP. the principle of converting an EA into a script in a nutshell would be appreciated
UP. the principle of converting an EA into a script in a nutshell would be appreciated
I don't know exactly, but it seems that if you move the EA to scripts, it will work like a script.
UP. I would be grateful for the principle of converting an EA into a script in a nutshell
And what will the script do?
Usually the terminal is unplugged, a CSV file is written from a non-standard timeframe and then loaded instead of any symbol and period, on this period and tested. True at opening prices, but there are not much other options.
And what will the script do?
Usually the terminal is unplugged, a CSV file is written from a non-standard timeframe and then loaded instead of any symbol and period, this is the period on which testing is done. True at opening prices, but there are not really any other options.
Thanks to all who responded. I like the variant with TF substitution, I will try it. I was initially planning to open a non-standard TF standalone and unload trades into a file using an Expert Advisor script.
What is:
Maximum drawdown, % - maximum drawdown percentage;
You can specify such parameter in the strategy optimizer, but it's not clear what it means...
1) Is it the maximal decrease of the balance compared to the initial deposit?
2) Maximum difference between the equity maximum and minimum following each other?
3) The difference between the minimum and maximum margin?
Many other variants come to mind.
Please explain the exact meaning of (Maximum drawdown, %)
Started to understand your code. I'm surprised. What you have attached cannot work. You can see it's made up of bits and pieces, but at least the brackets are correct.
The code is two parts. This is my expert. Please take a look at it.
second part
Hello!
Running the EA on the tester. The server is four digits. When placing buy or sell order in the log says
2011.10.23 15:27:26 2010.12.16 06:16 test_sovetnik GBPUSD,H1: open #1 buy 0.10 GBPUSD at 1.5551 sl: 1.4551 tp: 1.5586 ok
But opens at 1.55512 ! At the five digits. Then the pending orders are placed at four digits and triggered at four digits as well. But OP_SELL and OP_BUY open only by five digits!
I do NormalizeDouble(Ask,Digits);
Nothing works! Please advise how to solve this issue?
You can, of course, ignore the last digit. The error doesn't occur, but for the sake of purity of the experiment, I need all my trades to be made in four digits.
Most likely your MT4 and server has a five digit quote, like mine. So, everything has to be multiplied by 10, as Digits = 5.
How do I delete a pending order if one of them triggered? There are two pending orders set in total.
You can do it manually. Right-click and then... :)
You can apply a script or an Expert Advisor. Which do you prefer? XD