Feature Request: IndicatorSetDouble counterpart

 

I would like to ask for a feature in MQL5, basically a counterpart to the "IndicatorSetDouble" method that allows to get the values.

Ideally it would work like the "IndicatorParameters" method, so that one can pass an indicator handle and the double property values are returned accordingly:

Would be great if this request could be considered in a future release.

Documentation on MQL5: Constants, Enumerations and Structures / Indicator Constants / Custom Indicator Properties
Documentation on MQL5: Constants, Enumerations and Structures / Indicator Constants / Custom Indicator Properties
  • www.mql5.com
The number of indicator buffers that can be used in a custom indicator is unlimited. But for each array, which is designated as the indicator...
 

You will have a slightly better change at been considered if you post in the appropriate topic on the Russian forum.

However, chances are high that you will simply be ignored by the MetaQuotes development team.

 
Fernando Carreiro #:

You will have a slightly better change at been considered if you post in the appropriate topic on the Russian forum.

However, chances are high that you will simply be ignored by the MetaQuotes development team.

Thank you, Fernando. Let me try that.

 

Done here: https://www.mql5.com/ru/forum/475091

However, I cannot delete this topic here then as a duplicate.

Feature Request: IndicatorSetDouble counterpart
Feature Request: IndicatorSetDouble counterpart
  • 2024.10.21
  • Eric Emmrich
  • www.mql5.com
Hi all, I would like to ask for a feature in MQL5, basically a counterpart to the "IndicatorSetDouble" method that allows to get the values...
 
Eric Emmrich #: Done here: https://www.mql5.com/ru/forum/475091. However, I cannot delete this topic here then as a duplicate.

No, not done! I removed it. In the Russian forum you post in Russian, not in English.

And I stated post in the appropriate topic. You created a new one and even placed it in the wrong section. I moved it but then noticed that you had posted in English, so removed it.

Search for a good existing thread that is appropriate and post in Russian. Use the automated translator and link the Russian documentation.

 
Fernando Carreiro #:

No, not done! I removed it. In the Russian forum you post in Russian, not in English.

And I stated post in the appropriate topic. You created a new one and even placed it in the wrong section. I moved it but then noticed that you had posted in English, so removed it.

Search for a good existing thread that is appropriate and post in Russian. Use the automated translator and link the Russian documentation.

OK, I've now tried again: https://www.mql5.com/ru/forum/475118

Unfortunately I cannot tell whether the auto translation to Russian is actually correct. Let's see.

Запрос функции: IndicatorSetDouble аналог
Запрос функции: IndicatorSetDouble аналог
  • 2024.10.22
  • Eric Emmrich
  • www.mql5.com
Всем привет, Я хотел бы попросить добавить функцию в MQL5, по сути, аналог метода «IndicatorSetDouble», которая позволяет получать значения...
 
Eric Emmrich:

I would like to ask for a feature in MQL5, basically a counterpart to the "IndicatorSetDouble" method that allows to get the values.

Ideally it would work like the "IndicatorParameters" method, so that one can pass an indicator handle and the double property values are returned accordingly:

Would be great if this request could be considered in a future release.

Use cases ?

You have better chance to be heard if you explain why you want a feature. It's not obvious here, at least for me, why you want to get these properties from outside the indicator ?

 
Alain Verleyen #:

Use cases ?

You have better chance to be heard if you explain why you want a feature. It's not obvious here, at least for me, why you want to get these properties from outside the indicator ?

Hi Alain, fair point.

I have created an EA that places trades based on an indicator. This indicator has defined several (trade entry) levels and I would like to get them right from the indicator, rather than having to enter them again in the EA. This would also save me some time whenever I modify these levels.

I should also note that I don't have access to the source code of the indicator.

 
Eric Emmrich #:

Hi Alain, fair point.

I have created an EA that places trades based on an indicator. This indicator has defined several (trade entry) levels and I would like to get them right from the indicator, rather than having to enter them again in the EA. This would also save me some time whenever I modify these levels.

I see thanks. It's certainly a good idea.
 

For context, here are related queries by other users ...

Forum on trading, automated trading systems and testing trading strategies

Cutomze indicator, how to get indicator level value?

Wang Qi, 2016.10.15 10:55

For example, in a RSI indicator, we can use IndicatorSetDouble to set the levels to, e.g, 70 and 30, but how to retrieve the values from the code?

There is no IndicatorGetDouble...


Thanks

Forum on trading, automated trading systems and testing trading strategies

IndicatorGetInteger

Henrique Vilela, 2015.07.28 22:09

Hi,

I'm creating an indicator and on this creates some objects on the screen besides the buffers.

I would like that the color of this objets reflects the colors selected by the user for the buffers.

I see that there's no IndicatorGetInteger() to complement the IndicatorSetInteger(). There's an alternative?

 

The author of the MQL5 Book also expressed regret for the lack of this functionality ... MQL5 Book: Creating application programs / Creating custom indicators / Indicators in separate subwindows: sizes and levels

"For property setting functions, unfortunately, there are no inverses (IndicatorGetInteger, IndicatorGetDouble, IndicatorGetString). Among other things, this does not allow, for example, finding the number and values of horizontal levels if they have been changed by the user."

MQL5 Book: Creating application programs / Creating custom indicators / Indicators in separate subwindows: sizes and levels
MQL5 Book: Creating application programs / Creating custom indicators / Indicators in separate subwindows: sizes and levels
  • www.mql5.com
Until now, we have limited ourselves to indicators that work in the main chart window, that is, they have the directive #property...