In MQL5 there is always room for an exploit ! ;) - page 4

 
Yurich:

Well no one on the feats to untwist :)

Then I propose another option - use subchart andChartSetString() andChartGetString() functions.

Wouldn't it be easier to use objects and OBJPROP_TOOLTIP? Subchart is too expensive in resources, I think.
 
sergeev:

Task:

- To pass an array of numbers from the Expert Advisor to the indicator.

Requirements.

Do not use
- chart events,
- files,
- global variables (also known as files),
- dll

Can't I use map files, too? The speed is about the same as over the channel. And there are no problems with the server, and there is no need to keep an eye on it. The only thing to do is to send a read command and/or requests through a chart event.
 
MetaDriver:
Wouldn't it be easier to use objects and OBJPROP_TOOLTIP? Subchart is expensive in terms of resources, I think.

That was just an option :)

You can pass data through other objects, but there are significant limitations on the string length.

Документация по MQL5: Основы языка / Типы данных / Тип string
Документация по MQL5: Основы языка / Типы данных / Тип string
  • www.mql5.com
Основы языка / Типы данных / Тип string - Документация по MQL5
 
Yurich:

There's no one to get anyone to do the deed :)

No way!
Files:
xonix.ex5  11706 kb
 
Resources can be used to transfer data.

Hmmm... or was that a quiz?
 
mql5:
Resources can be used to transfer data.

yeah, i've been thinking about that.

to create a fake pictureresource.

Документация по MQL5: Общие функции / ResourceCreate
Документация по MQL5: Общие функции / ResourceCreate
  • www.mql5.com
Общие функции / ResourceCreate - Документация по MQL5
 
MetaDriver:
Wouldn't it be easier to use objects and OBJPROP_TOOLTIP ? Subchart is expensive in terms of resources, I think.
String length cannot exceed 2045 characters
Документация по MQL5: Основы языка / Типы данных / Тип string
Документация по MQL5: Основы языка / Типы данных / Тип string
  • www.mql5.com
Основы языка / Типы данных / Тип string - Документация по MQL5
 
MetaDriver:
Can't you use map files as well? It's about the same speed as a channel. And there are no problems with the server, and there is no need to keep an eye on it. The only thing you need is to send a read command and/or requests through a chart event.
Well, it's a dll
 

In my opinion, graphical objects (e.g. OBJ_TEXT) are the best way to do this.

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

In my opinion, graphical objects (e.g. OBJ_TEXT) are the best way to do this.

I don't think so. You can't push megabytes of information through OBJ_TEXT.

the closest candidate is resources


Let me make it clear - if the indicator itself is a resource and an Expert Advisor creates it, will such an indicator be able to check the resources in the memory that were created by the Expert Advisor later?