[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 455
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
Hello! Can magicnumber value in order search apply Empty_value?
Clearly no one wants to answer. It's just that apparently it's a shame for someone to leave one comment.
You probably overslept this point)).
rlx20.06.2011 20:12
https://docs.mql4.com/ru/constants/special
EMPTY_VALUE == 0x7FFFFFFFF ---- integer 2147483647.
IMHO it can.
Hi all, help for a newbie...
I want to trawl all orders, e.g. sell - but only the last order is trawled and the log generates error 1 - attempts to replace the values already set with the same values (it is clear that EA is again trying to set the same values to the last order)
How can I get it to go to the next one and modify it... any tips...
Hi all, help for a newbie...
I want to trawl all orders, e.g. sell - but only the last order is trawled and the log generates error 1 - attempts to replace the values already set with the same values (it is clear that EA is again trying to set the same values to the last order)
How can I get it to go to the next one and modify it... Please advise...
After (int i=0; i<orders; i++)
{
We need to select an order via OrderSelect
После for (int i=0; i<orders; i++)
{
You have to select an order via OrderSelect
Thanks, rlx - it's working, I'm so stupid... It says so in other functions, but I missed it here,
Well, I'm a beginner - what can I say...
Thank you very much...
Good day to you all!
Please help me with this question. If you want to know how to enter a criterion so that it starts trawling at least at breakeven, please enter a criterion.
Good day to you all!
Please help me with this question. I'd like to ask you how to enter a criterion so that the trawl starts at least at breakeven.
Look in the trailer - there is a whole trawl library by Yury Dzyuban - take a look - you will understand. Pay special attention to the parameter in the
trlinloss - whether to trawl in the loss area and its processing in the form of code - right from the first fractal trawl function (by fractals) and look how it is organized - trawl only at entry into profit, there is nothing complicated there.
As a continuation of the theme.
It takes practice to learn.
Do the following in the trading terminal:
1.A demo account must be opened.
Enter the account details into the trading terminal: File->Login->...
2.Use an open chart or open a new one:File->New_chart->...
3.Set the max in: Service->Settings->Charts->Max Bar Histories->250000
4.Set the one-minute timeframe: Charts->Period->M1_One_minute
5.Update: Charts->Refresh
6.Open Strategy Tester: View->Tester_strategies
Close all other windows, leave one window with a chart and the Strategy Tester window.
------------------
Then in the Strategy Tester in the settings:
7.Symbol: Select the symbol, which chart is open.
8.Model: By open prices (.....)
<<This model to use until there is no OrderSend() function in the program.
9.Use date: checkbox.
Date: _From:<Yesterday(except Saturday and Sunday)>, _to:Today
10.Visualization: remove tick if any.
11.Period: M1
12.Optimisation: remove tick if present.
---------------------
Then open MetaEditor:
13.In the trading terminal menu: Service->Editor_MetaQuotes_Language
14.Write a programme, for example:
//=====================
//=============================
15.In MetaEditor, in the menu: File->Save_as: give a file name, save the extension .mq4, the folder should be 'experts'.
16.In MetaEditor in the menu: File->Compile
---------------------------------------
Then in the tester in the settings:
17.Advisor: find and select the program file name.
18. Click the 'Start' button with your mouse.
19.
After checking Print() messages we see the result of the application operation.
-----------------------------------------
For easier viewing:
20. Right-click on any line in the log->Open
This will open logs folder with a *.log file, which you can open with any text editor, Notepad, Word, etc.
PS
If the file is too big and no text editor is able to open it, delete this file using the Windows features and restart the program by pressing the "Start" button in the trading terminal. Tester folder: "...\Installation_folder\tester\logs", not to be confused with another: "...\Installation_folder\logs"
PPS
To learn how to program, you need a programming language compiler which transforms the textual writing of the necessary actions into a "program" (human-readable), into a language of machine commands -- understandable to a computer. Without practice, it is impossible to learn. Mql4 doesn't create separate programs, *.mq4 turns into *.ex4, which is run from a program shell.
*.ex4 cannot be run directly, the algorithm described above bypasses this point.
Look in the trailer - there is a whole library of trawls from Yuri Dziuban - take a look - you'll get the hang of it. Pay special attention to the parameter in the
trlinloss - whether to trawl in the loss area and its processing in the form of code - right from the first fractal trawl function (by fractals) and look how it is organized - trawl only at entry into profit, there is nothing complicated there.
Hi all, I'm asking experienced traders to help with the question of correctly optimising an Expert Advisor. I wrote an Expert Advisor on two moving slides. On the first stage I fixed period of a long moving and by changing a value of a moving period with a small period I found optimal moving periods for maximum profit. I obtained the profitability of less than 1.5, and the drawdown within 10 percents. I tested using these parameters for the next time interval and obtained about 70 percents of profit, but with large drawdowns. Obviously, I could not work with drawdowns of 10 percent. At the second stage I have introduced ADX indicator for monitoring the trend change speed, moving averages and price levels control on different types of trends. As a result of optimization, I have got profitability not worse than 3.5 and the drawdown ratio not more than 3%. When testing based on optimal parameters, I got a complete absence of deals at very good optimal parameters and a loss of the account at worse optimal parameters. As I understand it, I have adjusted parameters of my Expert Advisor to statistical price parameters. I have looked through two dozens of Expert Advisors in Kodobase, looked through published articles and read a number of books on trading in my time, and the question of the correct methodology of expert optimization is missing everywhere. The problem: how to find the "golden mean" between optimizing parameters and fitting them on a specific timeframe? Maybe someone knows the right site, article or just share their practical experience in solving this issue?
Thank you for your attention, I hope for your help.