-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The timeframe of the received bar #209
Comments
I think that is not necessary. Line 1894 in 9a5acac
LastTimeBarEvent TimeFrame = CurrentPeriod Does that fit. If it does, it only makes sense in ExpertInit as a response.
|
I agree with Christian that there is no reason to load events with additional information that can be easy received by calling function ChartPeriod() once. I will close the issue as non-relevant. |
прелесно а как по полученному бару узнать из какого графика(chartId) он пришёл? |
@ackem Постараюсь добавить в следующий релиз метод ChartId, который будет выдавать нужное значение по ExpertHandle. PS: просьба в следующий раз оставляйте коментарии на английском языке. |
The function ChartPeriod() returns with ID = 0 the TF of the current chart. So it is possible to get the TimeFrame without the real Chart ID |
There might be a small error in the MtApi5 test client. The result is CURRENT but the Client get H1
|
@KptKuck |
@ackem The TimeFrame for the Chart(MtApi5Client) is fixed. |
@KptKuck @ackem |
@vdemydiuk
With real ChartID the responded timeframe is correct |
Another way to get specific chart id or timeframe is using several instances of MtApi5Client (multiple mode) when each client will connect to expert with defined timeframe. Each experts must have different port for connection. |
@vdemydiuk You're my new best friend! :) |
Hello Bro!
The MtApi5Client.OnLastTimeBar event is a good idea, but how can we identify the timeframe of the received bar?
Can you add any property in the Mt5TimeBarArgs class for this?
Thanks)
The text was updated successfully, but these errors were encountered: