Discussion of article "A Few Tips for First-Time Customers"

 

New article A Few Tips for First-Time Customers is published:

A proverbial wisdom often attributed to various famous people says: "He who makes no mistakes never makes anything." Unless you consider idleness itself a mistake, this statement is hard to argue with. But you can always analyze the past mistakes (your own and of others) to minimize the number of your future mistakes. We are going to attempt to review possible situations arising when executing jobs in the same-name service.


Author: Dmitriy Skub

 

After the algorithm has been worked out, you can order a refinement for a real account. It will not cost too much.

I disagree on the cost. Expert Advisor for real and demo accounts differs in its internal organisation, global variables for saving the state, etc. etc. - all this permeates the algorithm through and through. That's why the cost of an Expert Advisor for demo and for real is significantly different and must be different. To redesign an Expert Advisor for real is sometimes a complete rewriting of the algorithm.

Документация по MQL5: Основы языка / Переменные / Глобальные переменные
Документация по MQL5: Основы языка / Переменные / Глобальные переменные
  • www.mql5.com
Основы языка / Переменные / Глобальные переменные - Документация по MQL5
 
abolk:

After the algorithm has been worked out, you can order a refinement for a real account. It will not cost too much.

I disagree on the cost. Expert Advisor for real and demo accounts differs in its internal organisation, global variables for saving the state, etc. etc. - all this permeates the algorithm through and through. That's why the cost of an Expert Advisor for demo and for real is significantly different and must be different. To redesign an Expert Advisor for real is sometimes a complete rewriting of the algorithm.

I wonder what kind of crap was written for demos then
 
Mischek:
I wonder what kind of crap was written for the demo then

The one, which then misses signals in the real world, does not fully and with a different result works closing (especially chains of orders).

 
abolk:

The one that then in real life misses signals, not to the end and with a different result works closing (especially chains of orders).

Demo - one result

Real - another result.

Well, why do you need such a thing?

 

Популярно также совмещение нескольких индикаторов с различными масштабами (иногда различающимися на несколько порядков) в одном индикаторном окне и поиск сигналов пересечений между ними. Этим "грешат" и не только форекс-новички.

All attempts to explain that it cannot be implemented are met with persistent misunderstanding and abstract references to some programmer who did it very easily, etc.

Indeed, a couple of times such a thing was ordered.

But I managed to explain that it is self-deception and implement it in the code (but I want to!).

And one time it was even trickier - the customer used a MT4 feature that allows an indicator intended for drawing in a subwindow to be drawn on a price chart (run it on the chart, change the property, compile it). The signals were the intersection of the indicator with the price ;)

 

Еще раз исправим наше ТЗ: когда предыдущее значение цены находится ниже заданного внешним параметром значения минус дельта, а текущее в пределах заданного внешним параметром значения плюс/минус дельта и временной интервал между ними не больше заданного, то открываем позицию на покупку. Теперь все правильно.

Why so complicated, why use delta? And it's not quite correct, as far as I'm concerned....

Opening when a given level is crossed (emulation of an order, in fact) is a simple enough task.

If the previous price was < level, and the current one >= level (or vice versa, depending on the basic location of price and level), then we open.

Additionally, you can specify the maximum slippage. Well, and check the tick time, of course.

==============

In general, the article is quite good.

It is only a pity that it will be read mainly by programmers....

 
komposter:

In general, it is quite a good article.

It is only a pity that it will be read mainly by programmers....

Yes, the article is very useful. Thank you to the author! It should be included into the list of must-reads...

I would also like to add this.

Always want the performer that the TOR was for him as clear as possible. Then he will catch the customer's idea and quickly write the code. And he will save time and earn something... It happens, but rarely. When one programmer orders work from another. For example, to save time. Although even here both of them may "misunderstand" each other....

But, as a rule, those who act as a customer do not know the capabilities of the language, especially MQL5, at such a level as the developer does. And God forbid that the customer clearly formulates his trading idea....

Thus, the programmer most often has to deal not only with the "how" question, but also with the "what" question. Naturally, this imposes additional costs on time resources.

 

the article is excellent.

 3. Что за ошибки возникают при компиляции файла эксперта/индикатора - Function 'xxxxxx' is not referenced and will be removed from exp-file?

This is not an error. The message says that the 'xxxxxx' function is not used (a specific function name is specified in place of 'xxxxxx') and it will not be present in the compiled file. You can ignore this message - the presence of such an "extra" function does not affect the work of an Expert Advisor or indicator in any way.

+100500, I can't count how many times I've been asked this question ))
 

MrGold166: 

+100500, I can't count how many times I've been asked this question ))

Yes, there is such a problem when using universal libraries. I got tired of answering it too, so I did it that way:

if ( false ) { func1(); func2(0,0,0); func3("",0); }

The only drawback is the size of ex4. But it only affects mail traffic )

 

good article, but it's a pity that MT5 has existed for a year, and still they offer to test the strategy in the tester in MT4:

Либо в визуальном режиме тестера с использованием существующих экспертов для открытия/закрытия сделок, например, Торговый ТРЕНАЖЕР 2 или использовать специализированные программы для тестирования.

although further links for MT5:".... visual mode of the tester. .... ","..... the latest available version. ....."