Wishes for the work of the mql5.com forum - page 8

 
antt:
If indicator_buffers is not set, the default value is one buffer of type INDICATOR_CALCULATIONS.
And if indicator_buffers 0 is set ???
 
Urain:
And if indicator_buffers 0 is set ???
Similarly. The hardwired minimum is 1.
 
antt:
Similarly. Hard-coded minimum is 1.

Can the CALCULATIONS buffer be downloaded from the client with CopyBuffer? :)

 
Yurich:

The Expert Advisor creates a subchart and runs itself on it. And now two versions of the same Expert Advisor are running, then it's a matter of technique, how to distribute tasks between these twin brothers.

zy. The subchart can have an area of 0 pixels and be in negative coordinates.

Could you elaborate on that. How exactly is the Expert Advisor launched on the subchart? And is it exactly running in another thread? Is it possible to split into four with the same technique (on the same general chart?)
 
MetaDriver:

Can the CALCULATIONS buffer be downloaded from the client with CopyBuffer ? :)

You can:

CopyBuffer

Gets data of a specified buffer in the specified quantity into buffer array.

In this case, specify zero buffer number.

Files:
test.mq5  2 kb
empty.mq5  2 kb
 
MetaDriver:
Can you elaborate on this. How exactly the Expert Advisor is launched on subchart? And does it exactly run in another thread? Is it possible to split into four by the same technique (on the same general chart?)

The expert saves a template of his/her chart before creating the subchart. Then creates a subchart and applies the saved template to it. This launches the same Expert Advisor on the subchart. You can create a subchart and apply the template to it, so we have three experts.

It is important to determine the Expert Advisor, i.e., the Expert Advisor to whom the new ones can be started. The timer shall help. It does not work on subchart, so the one who accepted the event by timer is the main one.

Документация по MQL5: Операции с графиками / ChartApplyTemplate
Документация по MQL5: Операции с графиками / ChartApplyTemplate
  • www.mql5.com
Операции с графиками / ChartApplyTemplate - Документация по MQL5
 
antt:

You can:

In this case, specify a buffer number of zero.

OK, got it, that's good to know.
 
Yurich:

The expert saves a template of his/her chart before creating the subchart. Then creates a subchart and applies the saved template to it. This launches the same Expert Advisor on the subchart. We can create a subchart and apply a template to it, and that will result in three experts.

Okay, the general scheme is clear at this point. We need to test the methodology. If questions arise later, I will consult with you.

It is important to determine which Expert Advisor is the main one, i.e., which one may start a new one. A timer will help with this. It does not work on subchart, so the one who accepted the timed event is the main one.

I probably won't bother with identical EAs. It's better to make two of them, one master and the other slave. With different (complementary) functionality.
 
Yurich:

The expert saves a template of his/her chart before creating the subchart. Then creates a subchart and applies the saved template to it. This launches the same Expert Advisor on the subchart. You can create a subchart and apply the template to it, so we have three experts.

It is important to determine the Expert Advisor, i.e., the Expert Advisor to whom the new ones can be started. The timer shall help. It does not work on subchart, so the one who accepted the event by timer is the main one.

What do you mean by "subchart"?

An object chart or

a full-fledged chart opened from an EA

 
antt:

What is the priority of Tick,Timer,Trade,Event events?

In principle, if you know the priorities, you can change the scheme so that you can organize interruptions.

For example Tick and Timer will send user events and Event will handle it all.

Документация по MQL5: Стандартные константы, перечисления и структуры / Константы графиков / Типы событий графика
Документация по MQL5: Стандартные константы, перечисления и структуры / Константы графиков / Типы событий графика
  • www.mql5.com
Стандартные константы, перечисления и структуры / Константы графиков / Типы событий графика - Документация по MQL5