Init() and DeInit() execution sequence - page 26

 
fxsaber:

Thanks, but there's the same limitation - there's no way to do it without shortname (and how do you know it?).

The second variant of the function doesn't require parameters.

Also use https://www.mql5.com/ru/docs/chart_operations/chartindicatorname. And don't rush to conclusions.

Документация по MQL5: Операции с графиками / ChartIndicatorName
Документация по MQL5: Операции с графиками / ChartIndicatorName
  • www.mql5.com
Операции с графиками / ChartIndicatorName - справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
 
Alexey Kozitsyn:

The second version of the function does not require parameters.

Also use https://www.mql5.com/ru/docs/chart_operations/chartindicatorname. And don't jump to conclusions.

But here you need to know sub_window. I.e. it gets that sub_window can be found out if you know ShortName. And ShortName - if you know sub_window.
 
fxsaber:
But here you need to know sub_window. I.e. it gets that sub_window can be found out if you know ShortName. And ShortName - if you know sub_window.
https://www.mql5.com/ru/docs/constants/chartconstants/charts_samples#chart_windows_total
Документация по MQL5: Стандартные константы, перечисления и структуры / Константы графиков / Примеры работы с графиком
Документация по MQL5: Стандартные константы, перечисления и структуры / Константы графиков / Примеры работы с графиком
  • www.mql5.com
Стандартные константы, перечисления и структуры / Константы графиков / Примеры работы с графиком - справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
 
Alexey Kozitsyn:
https://www.mql5.com/ru/docs/constants/chartconstants/charts_samples#chart_windows_total
I don't see how this can help.
 
fxsaber:
I don't see how this can help.
What is the task at hand?
 
Alexey Kozitsyn:
What is the task?
To get its own handle in the indicator. If there is only one indicator on the chart, no problem. If there are two variants (different input parameters) of the same indicator, we will not get the handle of the second variant. The documentation hints at the comparison of the results of IndicatorParameters with the values of input parameters. The problem is that we have to know the input parameters. And we need to write a universal
int GetMyHandle( void );
 
fxsaber:
Get its handle in the indicator. If there is only one indicator on the chart - no problem. If there are two variants (different input parameters) of the same indicator, the handle of the second variant cannot be obtained.

So what's the problem? I gave you the link, I even said to use the second option:

https://www.mql5.com/ru/docs/chart_operations/chartwindowfind

If you need to check the presence of duplicate indicators on the chart - go through the windows in sequence and search for the necessary indicators, and then request their input parameters.

Документация по MQL5: Операции с графиками / ChartWindowFind
Документация по MQL5: Операции с графиками / ChartWindowFind
  • www.mql5.com
Операции с графиками / ChartWindowFind - справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
 
Alexey Kozitsyn:

So what's the problem? I gave you the link, I even said to use the second option:

https://www.mql5.com/ru/docs/chart_operations/chartwindowfind

Suppose learned that both indicator variants are in the same sub_window (e.g. indicator_chart_window). Not yet clear how, but let's say I learned ShortName. But I get two variants of indicator have the same sub_window and ShortName. AndChartIndicatorGet will always return only handle of the first variant.
 
Alexey Kozitsyn:

Searching for desired indicators and then requesting their input parameters.

Forum on trading, automated trading systems and trading strategy testing

Sequence of execution of Init() and DeInit()

fxsaber, 2017.04.17 07:15

You need to know the input parameters. And you need to write a universal
int GetMyHandle( void );
 
fxsaber:

Then this:

https://www.mql5.com/ru/docs/series/indicatorparameters

Документация по MQL5: Доступ к таймсериям и индикаторам / IndicatorParameters
Документация по MQL5: Доступ к таймсериям и индикаторам / IndicatorParameters
  • www.mql5.com
Доступ к таймсериям и индикаторам / IndicatorParameters - справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5