Исполнительная среда MQL4 основана на концепции безопасной "песочницы": чтение и запись средствами языка разрешены только в определенных папках. Это защищает пользователя MetaTrader 4 от потенциальной опасности испортить важные данные на жестком диске компьютера. Но иногда все же бывает необходимость покинуть безопасную зону. Как это сделать легко и правильно - об этом статья.
My question is about a custom indicator. I couldn't find in the help how to getindicator_handle of my indicators, especially at the time when they are not yet in the window.
It's possible that I wasn't looking hard enough. I would be extremely grateful for a link.
User_mt5: This great function requires indicator_handle
How to get this parameter for technical indicators I have found, namely: Each technical indicator has its own function, e.g. for MACD:
My question is about a custom indicator. I couldn't find in the help how to getindicator_handle of my indicators, especially at the time when they are not yet in the window.
It's possible that I wasn't looking hard enough. I would be extremely grateful for a link.
serg_V777: Greetings. I have a problem with horizontal lines in MQL5. A manually created horizontal line in the GAZP chart is also displayed in the SBER chart since their prices are similar. Please advise how to save the line and display it where it was created. *** neither in the first nor in the second variant does not want to work...
Pleaseinsert the codecorrectly: when editing a message, click on and paste your code in the popup window.
Вы недавно зарегистрировались и у вас возникли вопросы: Как вставить картинку в сообщение на форуме, как красиво оформить исходный код MQL5, где находятся ваши Личные сообщения? В этой статье мы подготовили для вас несколько практических советов, которые помогут быстрее освоиться на сайте MQL5.community и позволят в полной мере воспользоваться доступными функциональными возможностями.
I have a problem withhorizontal lines in MQL5. A manually created horizontal line in the GAZP chart is also displayed in the SBER chart since their prices are similar. Please advise how to save the line and display it in the place it was created. does not want to work with the first or the second option...
Типы объектов - Константы объектов - Константы, перечисления и структуры - Справочник MQL5 - Справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
I have a problem withhorizontal lines in MQL5. A manually created horizontal line in the GAZP chart is also displayed in the SBER chart since their prices are similar. Please advise how to save the line and display it in the place it was created. neither the first nor the second version does not want to work...
See the errors:
1. Always explicitly specify a graph symbol (yes, you can rely on documentation, but it's better to ALWAYS specify explicitly)
Through WinAPI you can, if it suits you.
there is a function in kernel32.dll
https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfiletime
There's something here
https://www.mql5.com/ru/articles/1540
There's something here
https://www.mql5.com/ru/articles/1540
Thank you!
There's no way to do it with the standard tools.
What's not good with ChartIndicatorAdd()?
How to get this parameter for technical indicators I have found, namely:
Each technical indicator has its own function, e.g. for MACD:
indicator_handle=iMACD(symbol,period,fast_ema_period,slow_ema_period,signal_period,apr);My question is about a custom indicator.
I couldn't find in the help how to getindicator_handle of my indicators, especially at the time when they are not yet in the window.
It's possible that I wasn't looking hard enough.
I would be extremely grateful for a link.
This great function requires indicator_handle
How to get this parameter for technical indicators I have found, namely:
Each technical indicator has its own function, e.g. for MACD:
My question is about a custom indicator.
I couldn't find in the help how to getindicator_handle of my indicators, especially at the time when they are not yet in the window.
It's possible that I wasn't looking hard enough.
I would be extremely grateful for a link.
iCustom()
And of course, where else should this function be but in the middle of the list of technical indicators...)
Greetings.
I have a problem with horizontal lines in MQL5.
A manually created horizontal line in the GAZP chart is also displayed in the SBER chart since their prices are similar. Please advise how to save the line and display it where it was created.
***
neither in the first nor in the second variant does not want to work...
I have a problem withhorizontal lines in MQL5.
A manually created horizontal line in the GAZP chart is also displayed in the SBER chart since their prices are similar. Please advise how to save the line and display it in the place it was created.
does not want to work with the first or the second option...
I have a problem withhorizontal lines in MQL5.
A manually created horizontal line in the GAZP chart is also displayed in the SBER chart since their prices are similar. Please advise how to save the line and display it in the place it was created.
neither the first nor the second version does not want to work...
See the errors:
1. Always explicitly specify a graph symbol (yes, you can rely on documentation, but it's better to ALWAYS specify explicitly)
2. String makes no sense - as preff+"hhh" will never equal Symbol()
Added: better to have this approach - always one line on the chart, just change the line price when you switch charts.