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
I allocate memory to them, of course. To a depth no greater than that needed for calculations and debugging. In the given fragment it is 30, which is more than enough. If somewhere it will be necessary to calculate for example standard deviation of depth 50, then the cache should be increased. And it is only for the sake of speeding up the calculations.
There is nothing wrong with the outlook
Forum on trading, automated trading systems and trading strategies testing
Features of mql5 language, tips and tricks
fxsaber, 2018.02.15 11:48
I suggest you try writing a script in MQL5 with this kind of trading logic (MQL4-style just for quick sense display)
I won't show you the libraries. ex5 file is attached.
CloseBy was made on the scratch, so far there was no need in it, but thanks for the "weak", the only thing left is to make the changes in the positions after CloseBy
In the future, there will be one wrapper class for COrder and CPostion
I'll try to explain what's being done in words :-)
Suppose we need an Expert Advisor. First, we need the simplest one that trades by crossing of fractals and trailing stops by fractals. That is, in the terminal, it would look like this :
What is circled in BLACK is line 1 of the table. Those data that the Expert Advisor takes into account in its algorithms.
The purpose of the use-case that have been given is to describe as compactly as possible what lies in this area, how it is counted and what complements it with the Expert Advisor. What calculations are made on the basis of this data.
In my opinion, the easiest thing to do is to
1) list these fields by naming them, i.e. list them in the ENUM
2.) write a simple function, which by the name from the ENUM and the bar gives their values to the Expert Advisor.
For an ordinary programmer, there is a certain methodology (clearly marked steps) of development of simple Expert Advisors:
1. Define the Input
2. describe and complete Data by writing formulas; add columns as needed
3. Specify which data from the resulting table is used and where.
In order to store data there is a class DataFrame that stores data "by column" provides access by indexes, data caching and calculations on demand.
On this thin (there is not much code, only what is strictly necessary for the use-case), we can develop various Expert Advisors. The table is counting, the signals are received, and trades are opened.
Of course, it's not enough :-) So, the project has just been launched... And there is no ready-made solution, it's a project. It is a project that has just been born and is developing.
Thanks for the "weak".
So a script, not an EA. But even with an EA you have perfectly demonstrated the difference between MT4 and MT5. One of the variants has only one line. And the second one, unfortunately, failed.
So a script, not an EA. But even with an EA you have perfectly demonstrated the difference between MT4 and MT5. There is only one line in one of the variants.
Come on, CloseBy, in case you haven't noticed, I have: pos1.CloseBy(pos2), everything else is opening orders and checking operations. In mt4 you also need to open two positions first and provide a check for their opening. Maybe you will also post the working code on the studio, just for comparison's sake.
:I'll try to explain what's being done in words :-)
Suppose we need an Expert Advisor. First, we need the simplest one that trades by crossing of fractals and trailing stops by fractals. That is, in the terminal, it would look like this :
What is circled in BLACK is line 1 of the table. Those data that the Expert Advisor takes into account in its algorithms.
The purpose of the use-case that have been given is to describe as compactly as possible what lies in this area, how it is counted and what complements it with the Expert Advisor. What calculations are made on the basis of this data.
In my opinion, the easiest thing to do is to
1) list these fields by naming them, i.e. list them in the ENUM
2.) write a simple function, which by the name from the ENUM and the bar gives their values to the Expert Advisor.
For an ordinary programmer, there is a certain methodology (clearly marked steps) of development of simple Expert Advisors:
1. Define the Input
2. describe and complete Data by writing formulas; add columns as needed
3. Specify which data from the resulting table is used and where.
In order to store data there is a class DataFrame that stores data "by column" provides access by indexes, data caching and calculations on demand.
On this thin (there is not much code, only what is strictly necessary for the use-case), we can develop various Expert Advisors. The table is counting, the signals are received, and trades are opened.
Of course, it's not enough :-) So, the project has just been opened... And there is no ready-made solution, it's a project. It is a project that has just been born and is developing.
For general thinking, an example of a wrapper class for Ichimoku, but in mql4.
For general thinking, an example of a wrapper class for Ichimoku, but in mql4.
Which Ichimoku component do you want a wrapper for ? And most importantly why and what kind ?
just chatting ? you can, why not...
PS/ Have you seen Excel ? In the DataFrame view the Ishimocks will look the same... Just like all the others... Traders work with tables actually. A chart is just a partial representation (view) of a summary table. So this data should be treated like tables.
From the trader's point of view - what is a program object ? It is nothing. There are no such things in his practical life.
Come on, CloseBy, in case you haven't noticed, I have: pos1.CloseBy(pos2), everything else opening orders and checking operations.
That's not how it works.
In mt4 you also need to open two positions first and provide a check for their opening. Maybe you will also post the working code on the studio, just for comparison's sake.
It doesn't work like that.
I wrote that with controlling the opening of these very orders.