mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-28 11:07:48 +00:00
30 lines
915 B
C#
Executable File
30 lines
915 B
C#
Executable File
using System;
|
|
|
|
namespace MtApi5
|
|
{
|
|
public class MqlTick
|
|
{
|
|
public MqlTick(DateTime time, double bid, double ask, double last, ulong volume)
|
|
{
|
|
MtTime = Mt5TimeConverter.ConvertToMtTime(time);
|
|
this.bid = bid;
|
|
this.ask = ask;
|
|
this.last = last;
|
|
this.volume = volume;
|
|
}
|
|
|
|
public MqlTick()
|
|
{
|
|
}
|
|
|
|
public long MtTime { get; set; } // Time of the last prices update
|
|
|
|
public double bid { get; set; } // Current Bid price
|
|
public double ask { get; set; } // Current Ask price
|
|
public double last { get; set; } // Price of the last deal (Last)
|
|
public ulong volume { get; set; } // Volume for the current Last price
|
|
|
|
public DateTime time => Mt5TimeConverter.ConvertFromMtTime(MtTime);
|
|
}
|
|
}
|