Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1113

 
Andrey Sokolov:

1. Look at the other objects to see if these parts of the name match. - That's good enough for me.

2. Does it print the time in seconds? How often do the ticks occur? - There is no noticeable delay, you can see for yourself, the code is minimal.

How can this be enough? If your task is to read the occurrence of a123 tag and you get a tag named a122 or even a1, you must have a bar number or time in the tag name. You are very much mistaken.

What do you consider to be a noticeable delay if the aim was to process on a single tick. And it may be one millisecond or several ticks in one millisecond between ticks. If you don't care about the delay, why bother with such a mess if it's easier to read the mark on the next tick after it is created?

 
Alexey Viktorov:

How can that be enough? ... explain the logic behind it? That wasn't the question at all.

What do you consider a noticeable delay if the goal is to process on a single tick. .... - as much as possible, it's unlikely that the detection via OnChartEvent will be longer than when using timers.

 

The need to position the chart from the script has matured. For example, the script finds some state of an indicator superimposed on the chart and needs to "scroll" the chart to that location and issue a request to confirm the found state.

If possible, where to dig?

 

What is the difference between ...

limit_price and price ? (maybe slippage, as it is not in the function parameters)

Документация по MQL5: Стандартная библиотека / Торговые классы / CTrade / OrderOpen
Документация по MQL5: Стандартная библиотека / Торговые классы / CTrade / OrderOpen
  • www.mql5.com
Успешное окончание работы метода OrderOpen(...) не всегда означает успешное совершение торговой операции. Необходимо проверять результат выполнения торгового запроса (код возврата торгового сервера) вызовом метода ResultRetcode(), а также значение, возвращаемое методом ResultOrder().
 
Alexandr Sokolov:

What is the difference between ...

limit_price and price ? (maybe a slippage, as it is not in the function parameters)

price - price of pending order of the Limit or Stop type.

limit_price - price - price at which the respective StopLimit order with the StopLimit type will be set after the price touches the value set in price.

Read about StopLimit orders.

 
Сергей Таболин:

The need to position the chart from the script has matured. For example, the script finds some state of an indicator superimposed on the chart and needs to "scroll" the chart to that location and issue a request to confirm the found state.

If possible, where to dig?

ChartNavigate()

Документация по MQL5: Операции с графиками / ChartNavigate
Документация по MQL5: Операции с графиками / ChartNavigate
  • www.mql5.com
[in]  Количество баров, на которое необходимо сместить график. Положительное значение означает смещение вправо (к концу графика), отрицательное значение означает смещение влево (к началу графика). Нулевое смещение имеет смысл, когда производится навигация к началу или концу графика.
 
Is it possible to hide the trading history in my signals?
 
Dmitry Ivanov:
Can I hide the trading history in my signals?

No, you cannot. Exception for paid signals: the current history (for the day or so) is hidden and whoever is not subscribed sees the message:Paid signal: part of the information is hidden and only available by subscription.

 
Artyom Trishkin:

ChartNavigate()

Thank you.

 

Hi! Can you tell me if it is possible to parse data from herehttps://www1.oanda.com/lang/ru/forex-trading/analysis/forex-order-book


so that the data can be collected in Excel for further calculations?

Книга заявок Форекс | Открытые заявки | Открытые позиции | Купить и продать валюту | OANDA
  • www1.oanda.com
Сравните OANDA, открытые заявки и открытые позиции по любой паре основных валют. Чтобы посмотреть изменение статистических данных за последние 24 часа, воспользуйтесь ползунком на графике валютных курсов.
Reason: