Discussion of article "Creating an Expert Advisor, which Trades on a Number of Instruments" - page 5

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
By Tnew[1] Invalid array range - it seems to be a range overrun. Don't forget that the numbering of array elements begins with the beginning of the array range.
no access to edit message from 2010.07.16 22:41 2010.07.16 22:41:25 2010.07.16 22:41:25 #
Replace:8.Why Exp_TEMA.mq5, when testing, opens trades inside a bar? by
8.Why Exp_TEMA.mq5, when testing, opens multiple trades in one bar?
no access to edit message from 2010.07.16 22:41 2010.07.16 22:41:25 2010.07.16 22:41:25 #
Posts can only be edited within 3 days of posting.
ias:
8.Why Exp_TEMA.mq5, when testing, opens multiple trades in one bar?
Interesting:
Логично будт предположить то, что там нет проверки наличия ранее открытых позиций и установленных отложников...
It would be logical to assume that there is no check of previously opened positions and set pending orders....
Pending orders are not used in Exp_TEMA.mq5. Previously opened positions are checked in:
Perhaps something is wrong, in:
or in:
Multiple trades in one bar when testing Exp_TEMA.mq5 on EURUSD, period D1
Why Exp_TEMA.mq5, when testing, opens trades inside the bar? on
Why Exp_TEMA.mq5, when testing, opens multiple trades in one bar?
The point is that in the context of this article, the goal was to implement a simple multicurrency Expert Advisor without cluttering the main idea with minor details that interfere with understanding the essence. And everyone has his own way of filling in details. In your situation, everything is solved elementary. Variables of trading signals are made as input for trading functions and are linked, and these variables are reset after a deal is executed inside trading functions.
ias:
Покажите, пожалустайста, на примере вышего эксперта Exp_TEMA.mq5, как это сделать.
In my opinion, learning and understanding a programming language consists in that an individual solves small tasks of rearranging the code for his own needs. Otherwise, why do you need this site and programming articles at all? To demonstrate the abilities of the authors of the articles? Those who don't want to understand it themselves can use the resource https://www.mql5.com/ru/job
For example, in MQL4 I have implemented this approach in its simplest form like this https://www.mql5.com/en/articles/1516. For MQL5, nothing changes and everything is done in the same way.
.
I have great respect for the author of the article "Creating an Expert Advisor that trades on different instruments".
1.The code of the Expert Advisor Exp_TEMA.mq5 presented in the article opens multiple trades in one bar during testing,
as reported earlier on this topic. This fact confirms the presence of an incorrect code or a bug in the Expert Advisor, which many site visitors are interested in eliminating.
2..Roche's reply on the topic "Expert Advisors:Multicast": "Besides, the function of determining a new bar can be implemented without using the function of time copying." - also confirms the possibility of a more rational writing of the IsNewBar() function in the Expert Advisor.
I would like to see how the author will professionally eliminate these defects, since everyone can make mistakes, and only professionals can correct them correctly.
If you look closely at the trading systems presented in the article, you can conclude that they are overturn systems. Stoploss in such systems plays a secondary role and is placed at a very decent distance from the entry, counted in several candles at least. Professionalism in the presentation of the material consists in unfolding the subject in the simplest possible form without cluttering it with additional gimmicks, and not on the basis of the public who do not want to think for themselves. Any textbook is always flawed in terms of the ideal. And this is considered acceptable and normal. In the future there will be such an order of detailed presentation of this detail of building trading systems, there will be a detailed review of the implementation, which is also not so simple.
As for time copying, I can say quite definitely, I myself did not see any significant difference from more rational writing of the IsNewBar() function in the Expert Advisor, although I measured it! I even wrote an article on this topic. It would be understandable then if there was a significant deterioration of the code's work.
And if I wanted to, I, for example, could tear any article from this site to pieces without any problems. But I appreciate information first of all because it is available, not because it corresponds to my ideas about the ideal.
So I am not going to eliminate far-fetched flaws and at the same time significantly clutter up the code, which is not so simple as it is, for quite understandable and quite professional reasons.