Issue #290: provide information about Period (Timeframe) in event Mt5TimeBar

This commit is contained in:
Viacheslav Demydiuk
2026-04-06 21:55:59 +03:00
parent 9d178280d0
commit 3699b73cf7
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -3546,7 +3546,7 @@ namespace MtApi5
var e = JsonConvert.DeserializeObject<OnLastTimeBarEvent>(payload);
if (e == null || string.IsNullOrEmpty(e.Instrument) || e.Rates == null)
return;
OnLastTimeBar?.Invoke(this, new Mt5TimeBarArgs(expertHandle, e.Instrument, e.Rates));
OnLastTimeBar?.Invoke(this, new Mt5TimeBarArgs(expertHandle, e.Instrument, e.Timeframe, e.Rates));
}
private void ReceivedOnLockTicksEvent(int expertHandle, string payload)